10-Nov-2015 16:15

Vmware consolidating disks

That MAC Address represents the MAC of a network adapter of the ESXi Host that the problem VM lock originates from. the Host holding the lock on the problem VM’s vmdk.

I recently came a cross a disk failure on our server and got the disk replaced.Due to this disk failure there were certain issues which raised and now its going up and down.What my problem is that, on our ESXi we've set-up ghetto VCB script to backup all our VM's.Very recently due this disk degrade, few of our VM's shows an error as .It did…at least just this particular problem VM in the backup job. v Center again returned an error: This was better information because it let me know the explicit disk (the parent vmdk & not any of its subsequent deltas) that was locked.I then specifically looked at the error for this VM in the backup job (“Error: Failed to open VDDK disk datastore-name] VM-directory/VM-name-000014.vmdk] ( is read-only mode – [true] ) Failed to open virtual disk Logon attempt with parameters [VC/ESX: [vcenter-name]; Port: 443; Login: [domain\user]; VMX Spec: [moref=vm-101]; Snapshot mor: [snapshot-17944]; Transports: [nbd]; Read Only: [true failed because of the following errors: Failed to open disk for read. After a bit more digging through Google and some VMware KB’s (specifically, these 2 posts – and ), I was able to lock down what object/device had a lock on the VM.

To find the lock, open an SSH session to the ESXi Host the problem VM currently resides on then run this command: vmkfstools -D /vmfs/volumes/48fbd8e5-c04f6d90-1edb-001cc46b7a18/VM-directory/, gen 336, links 1, type reg, flags 0x0, uid 0, gid 0, mode 100600 Take note of the text after the word “owner”, specifically the red highlighted text above.

Those 12 digits represent a MAC Address and that is the key.

Haven’t you ever attempted some operation on a v Sphere VM – VMotion, disk consolidation, etc.

and received a v Center error stating the operation failed because of some lock on the VM’s vmdk?

After receiving an email from my backup software (Veeam) that one of my VMs needed disk consolidation, I went into v Center & attempted to do so.

Upon performing the task, v Center returned an error: An error occurred while consolidating disks: msg.snapshot.error-DISKLOCKED Or, something like this error, as well: I then went into Veeam to see if the backup job this VM was in failed. I next went into the Datastore this problem VM was on & looked at the VM’s directory. (hence why I received a notification this problem VM needed consolidated) Well, I couldn’t consolidate as noted above due to a file lock, so to try to remove the lock I attempted a VMotion of this problem VM.

Profile for vmware consolidating disks:

vmware consolidating disks-73vmware consolidating disks-67vmware consolidating disks-8

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “vmware consolidating disks”