Loading Posts...

How To Identify The VMware Virtual Machine File Locks

I hope this is an useful article if you are working with VMware Virtual Machine snapshots or snapshot base backups, it is very common requirement to identifying the VMware Virtual Machine file locks when there is a failure of a host, storage or a snapshot. Disks or any other can be locked in such incidents and this is a quick and easy way to identify the owner of the file lock, which means who is not letting your to power up the Virtual Machine from a failure.

I used this method in vSphere 6.x environments and it saved my life a lot, and I hope the same for you.

You can use below command to easily identify the lock owner.

Let’s assume that you lost your vCenter connectivity and you need to find the Virtual Machine file location, use easy find command

Then execute the vmfsfilelockinfo -p command along with the obtained output (full path to the file)

See my below output, I had to blurred few places due to some reasons

VMware Virtual Machine File Locks identify owner

Of course, you can use the vmkfstools -D /vmfs/[path_to_the_file] command, but in few situations it didn’t gave the output as I expected. But this vmfsfilelockinfo perfectly worked!

This might be just a small post, but I hope it’s a useful tip to all of my fellow readers and followers.

Click to rate this post!
[Total: 8 Average: 5]

Aruna Lakmal

Associate Technical Specialist at Pearson, Sri Lanka. Technology junky, enthusiast, a VMware vExpert and a blogger with more than 7 years of Experience in Information Technology more focusing on VMware Virtualization, Microsoft and Datacenter Technologies.

Get Updates Directly To Your Inbox!

   

Leave a Reply

Loading Posts...