Hi,
I currently have two VMs that for one reason or another had to be removed from inventory but now i am unable to add them back in due to a locked file. I know what host is locking the file (by running vmfsfilelockinfo -p /vmfs/volumes/DATASTORE/FILELOCATION) and i have tried to reboot the host/shutting it down but it still says its locked.
Is there a way to manually remove this locked file?
thanks in advance.
Hi,
the file .lck must be deleted from the virtual machine folder
or
How to remove vmx.lck file , Unable to poweron VM
Cause
Caution: Ensure the vmdk files are not in use by another virtual machine before performing these steps. Removing a valid .lck can cause instability.
To delete the .lck-xxxx file:
Note
: When the virtual machine is powered on, you see a new .lck-xxxx
file generated in the virtual machine folder. This is expected behavior.
ARomeo
Hi,
Thanks for this.
When i run rm VMNAME.vmx.lck
rm: can't remove 'VMNAME.vmx.lck': Device or resource busy
Hi
if you dont make any progress - send a 2gb headerdump and I try to figure out a patch
see Create a VMFS-Header-dump using an ESXi-Host in production | VM-Sickbay
Ulli