Find the VMware ESXi that owns the VMDK lock or other file lock on a VMFS datastore
FIND THE ESXI THAT OWNS THE VMDK LOCK OR OTHER FILE LOCK ON A VMFS DATASTORE
Unfortunately from time to time you can end up in a situation where your virtual machine is not reacting anymore on operations like vMotion, power-on or releasing a snapshot.
The cause is very often a locked VMDK file or CBT file (changed block tracking used by backup software) by a different ESXi than the one running your virtual machine and the corresponding process. That can be a leftover from purple screens, SAN connection failures or complete power outage.
Taking the example of powering on the virtual machine, the host the virtual machine is registered on tries to lock the VM files and start the VM runtime. As the locking doesn’t work because the file/s are already locked by a ESXi Host (typically the ESXi host the VM used to run before) the operation throws an error.
Read the entire article here, Find the ESXi that owns the VMDK lock or other file lock on a VMFS datastore