VMware: Unable to conslidate VM due to file locks (VDP)

Came across this issue after vdp backups ran last night…

Some VM’s had alerts on them complaining that they needed consolidation. Even though we don’t have any snapshots for these VMs:

Image

To clear this, you’d right click the VM, go to Snapshot > Consolidate. However this time, I was presented with the following error message:

lockerror

After a little investigation it became apparent that VDP mounts indvidual .vmdk files to run backups. For some reason, after the backups had finished, it didn’t umount the disks like it should have. I am yet to investigate why this has occurred… but to fix the problem, you can right click on your VDP appliance, click “Edit Settings” and you can see all of the mounted .vmdk files as hard drives. Find the one for the problematic VM and click remove. Be sure to only remove it from this VM and not the datastore!! You should then be able to consolidate.

Leave a comment