VMware vSphere ESXi 8.0.x
The issue occurs due to the scratch partition for affected hosts is configured to point to a shared directory. As a result, the partition becomes inaccessible, leading to the "resource or target busy" error during log access.
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
host Click Software --> Advanced Settings.
vim-cmd /hostsvc/maintenance_mode_enter
OR
Log in to vCenter, right-click the desired host, and select Maintenance Mode > Enter Maintenance Mode.
/vmfs/volumes/<DatastoreUUID>/.locker-<ESXHostname> vim-cmd /hostsvc/maintenance_mode_exit
OR
Log in to vCenter, right-click the desired host, and select Maintenance Mode > Exit Maintenance Mode.