[OSError]
[Errno 22] Invalid argument: '/scratch/lifecycle'
Please refer to the log file for more details.
/var/run/log directory./var/log/boot file may have the below entries : YYYY-MM-DDT02:04:26.006Z cpu13:2097682)WARNING: FS3: 608: VMFS volume storage/58######-##43####-a###-##9######ed8 on naa.60######00####f3################f:8 has been detected corrupted
YYYY-MM-DDT02:04:25.396Z cpu12:2098415)WARNING: FS3: 608: VMFS volume OSDATA-64######-##24####-##3#-#c#########/64######-##24####-##3#-#c######### on naa.60######00####f3################f:7 has been detected corrupted
VMware vSphere ESXi
A problematic scratch directory causes the '/scratch/lifecycle' directory to be inaccessible on the ESXi hosts causing the error during a host upgrade task.
Confirm if the scratch directory is damaged :
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
You may workaround this error by changing the scratch directory to a healthy VMFS volume using the below article
Creating a persistent scratch location for ESXi 8.x/7.x