ESXi host log bundle may have one or more log files missing.
The error on the log bundle in file error.log mentions that the resource or device being accessed is busy.
error.log:77:Failed to add file <action cmd="copy"
options="IGNORE_MISSING" path="/var/run/log/*">: [Errno 16] Device or
resource busy: '/var/run/log/vmksummary.log'
The vmksummary.log file cannot be seen under the /var/log directory.
VMware vSphere ESXi
A lock held on the log file being collected by any other resources can cause the device/file to be identified as busy.
This can cause issues with stability of the ESXi host as multiple hosts could be trying to lock the same file due to an erroneous scratch configuration.
Steps to Verify :
vmksummary.log file in the /var/log directory with command : ls /var/log/ | grep vmksummaryls -l /var/log/ | grep vmksummary
lrwxrwxrwx 1 root root 27 Oct DD HH:MM vmksummary.log -> /scratch/log/vmksummary.log
ls /var/run/log | grep vmksummaryls -l /var/run/log/ | grep vmksummary
-rw------- 1 root root 4917 Oct DD HH:MM vmksummary.log
vmfsfilelockinfo -p /var/run/log/vmksummary.log
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocationvim-cmd hostsvc/advopt/view ScratchConfig.CurrentScratchLocationvim-cmd hostsvc/advopt/view Syslog.global.logDirUniqueIf the above command shows the same output for the 3 parameters , the scratch configuration on the ESXi host is problematic and needs to be rectified.
Steps to Fix :
Follow the below KB article to fix the scratch configuration :
Creating a persistent scratch location for ESXi 8.x/7.x/6.x .
Article for configuring the scratch partition correctly : Creating a persistent scratch location for ESXi 8.x/7.x/6.x .