That… Could Be A Problem…

11Apr/121

vDR – causing problems…

For those new to vSphere 5's GUI, there's a new column that's been added to the Virtual Machine view by the name of "Needs Consolidation".
Needs Consolidation

This option was put in due to the occasional problem when Snapshots did not delete properly and would leave the delta files remaining in the VM's folder while the Snapshot Manager would show no snapshots existing.

With this option added to the columns, you should also take note of the option within the Snapshot options for each VM which will now allow a user to select the "Consolidate" function
Consolidate Snapshot

As noticed with the first screenshot, we had a couple systems which were requiring some consolidation to them. So another admin went through and hit the consolidated button and got hit with a "Unable to access file since it is locked" error. Normally, you can go through and figure out which file is being locked with some command line work or by rebooting the host (via: VMware KB: 10051) however our VM is running so there's something else going on.
Locked File

I still decided to dive into the CLI and check it out. I was stunned...
Deltas!

18 deltas... 18! Regardless of the vmsn file in there, there was no record of there being any snapshots.

In this case, that system probably hasn't even been rebooted 18 times much less been snapshot that many times... Except, vDR (VMware Data Recovery) is setup on it to do daily snaps. So I checked the vDR appliance settings and I found 8 disks too many attached.
Locked File

After removing all of those extra hard disks, the consolidations would succeed. Note, it took a while, but they did succeed.
Locked File

Just another reminder of while vDR is a great tool to have on hand, it should definitely not be the one and only method of backup

Comments (1) Trackbacks (0)
  1. Also, if you let vDR run long enough (failing every night, creating lots of those delta files), you will get to a point where you vSphere 5 host will simply disappear from the cluster view (disconnected). While you can still manually connect to that specific vSphere host, you won’t be able to add it back to the cluster (in vCenter) as it will fail with “Unknown communication error with vpxa agent” – giving timeout errors in the logs.

    Finding which VMs has all those un-consolidated vmdk is left to the sysadmin, but your solution will fix it… I’ve also had to create and delete a snapshot for all of them to be gone from the disk, as I didn’t knew about consolidate option and I didn’t saw them in snapshot view. In my situation, they weren’t being used by the VM.


Leave a Reply

No trackbacks yet.