This is a known issue affecting ESXi 6.0.Issue fixed in 6.0 Patch 5 and 6.5 Patch 1 or later version
Caution: There will be no impact to the environment if LUNs are not getting created and unmapped frequently, as the cron job is removing stale (no longer used) LUN entries associated with the ESXi host. Large number of stale entries can cause delayed boot times.
Notes:
- In some cases if an ESXi host is already in an unresponsive state, the host will need to be rebooted before the workaround can be applied.
- The workaround does not persist through ESXi host reboots.
To work around this issue, disable the cronjob that runs the localcli storage device purge command:
- Log in to ESXi host through SSH and root credentials.
Note: There will be no impact to the environment if you are not creating/unmapping a large cluster of LUNs periodically.
- Navigate to the /var/spool/cron/crontabs/ folder.
- Backup the root file with this command:
cp root ./root.bak
- Open the root file using a text editor:
vi root
- Comment the line:
00 1 * * * localcli storage core device purge:
The line should look similar to:
#00 1 * * * localcli storage core device purge
- Save and close the file.
- Restart the crond service by running the following command:
cat /var/run/crond.pid
The value returned from the command will be the PID that you use for the command below
kill <PID>
/usr/lib/vmware/busybox/bin/busybox crond
The changes take effect immediately and the localcli commnad will be skipped at the next scheduled time.