| Releasing Locked Files in a VMFS Volume |
|
|
|
When files are in use they are locked to prevent modifying by anything else. In a VMFS volume sometimes these files stay locked even when they are not in use (possibly when a VM was not stopped properly). This doesn't happen often, but it can be annoying when it does and you will get a busy, locked or in use error. To fix this you need to release the lock on the file.
Logon to the ESX Server that was last running the VM.
Dump the log information:
vmkfstools -D /vmfs/volumes/path/to/myvm1 Check the log:
The owner locking the file is on the line where it says owner "owner 2a3b5a3-cb2591a3e-b657-e18b9e6d24b6". Get the last part of that hex value "e18b9e6d24b6".
Find the system UUID of all the ESX Servers so you know which one is locking it:
esxcfg-info | grep -i 'system uuid' | awk -F '-' '{print $NF}' ps -elf | grep myvm1 /usr/lib/vmware/bin/vmkload_app /usr/lib/vmware/bin/vmware-vmx should have a lock on the VMs file.
Kill the master user world id (vmid):
Failing that crash the VM and get the logs (run in a directory with some space to spare):
vm-support -x
|




