Ref: https://github.com/harvester/harvester/issues/2722
Verify Steps:
- Install Harvester with any nodes
- Login to console, execute
sysctl -a | grep aio
, the value offs.aio-max-nr
should be1048576
- Update the value by executing:
mkdir -p /usr/local/lib/sysctl.d/
cat > /usr/local/lib/sysctl.d/harvester.conf <<EOF
fs.aio-max-nr = 61440
EOF
sysctl --system
- Execute
sysctl -a | grep aio
, the value offs.aio-max-nr
should be61440
- Reboot the node then execute
sysctl -a | grep aio
, the value offs.aio-max-nr
should still be61440
- Create an image for VM creation
- Create 60 VMs and schedule on the node which updated
fs.aio-max-nr
- Update
fs.aio-max-nr
to1048576
in/usr/local/lib/sysctl.d/harvester.conf
and executesysctl --system
- VMs should started successfully or Stopping with error message
Too many pods