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:

https://kb.vmware.com/selfservice/microsites/microsite.do?cmd=displayKC&docType=kc&externalId=10051&sliceId=1&docTypeID=DT_KB_1_1

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s