ESXi quick tip: determine which VM is locking your file


Recently had an issue starting one of my VM’s up in the lab. Turns out one of the disks had a lock in play.

A lock on the .vmdk file can prevent a virtual machine from starting. However, since virtual machine disk files can be configured for use with any virtual machine, the file may be locked by another virtual machine that is currently running, in my case i had it running on a cloned box.

So quick scout on the web , found this command and resulted in me being able to determine:

# egrep -i DISKNAME.vmdk /vmfs/volumes/*/*/*.vmx

More details:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.