VMFS unmount operation failed with error [An Error occurred while unmounting the Local Datastore as "Datastore is in use".]
Vmkernel.log :
2025-03-10T15:38:27.624Z Wa(180) vmkwarning: cpu0:2098962 opID=34ffa06c)WARNING: VC: 2445: unmounting opened volume ('########-########-####-############' '#######') with ref 4 is not allowed.
2025-03-10T15:38:27.624Z In(182) vmkernel: cpu0:2098962 opID=34ffa06c)FSS: 9834: File lls-dirLock, fhID: 460283, is opened by world: 000002098040 -
2025-03-10T15:38:27.625Z In(182) vmkernel: cpu0:2098962 opID=34ffa06c)VC: 2716: Unmount volume f532 28 2 ########-########-########-######## 4 1 0 0 0 0 0 : Busy
VMware ESXi 8.0 .x
The cause for the issue is due to the opened " lls-dirLock " File.
Run the below commands to disable SwapToSSD via vsish :
# vsish -e set /memory/llswap/dirs/0/sizeInBytes 0
# vsish -e set /memory/llswap/dirs/0/remove
After running the above commands, try to unmount the Datastore.