VMWare partial snapshot recovery HowTo
The machine in question had a number of drives including a 100GB and a 200GB partition and the host machine had a 600GB partition to hold all this. After digging around a bit I discovered that the drives were performing snapshots. Which means that they main drive was frozen in time and all changes were written to another file.
This should have been an easy fix, tick a box in the admin to remove the snapshot. However, in the admin for the machine there were no snapshots registered and no way to remove them. A bit of hunting found a couple of articles on the subject:
- VMware: The dreadful sticky snapshot
- VMware Server how-to: Clean up snapshot files to free disk space
However, I used the following approach to fix the problem which seems to be simpler than the techniques documented above.
Note: make sure you have a backup before proceeding - my 600GB backup took 6 hours but was worth it.
- Step 1: Make a backup to another drive (internal or USB)
- Step 2: Check that you can boot your VM from the backup.
- Step 3: Identify and document all disk names and files
- Document all drives, paths and scsi/ide nodes
- Create a text file in the root of each drive - you can then check for this to ensure you have the correct snapshot.
- Step 4: Use the following command to convert a snapshotting disk to a new clean disk:
- Step 5: In VMWare remove the disk for this machine and then add back your new disk. Make sure you use the same SCSI/IDE node numbers.
Note 1: It is important to select the correct snapshot as the source disk. For example: sourceDisk.vmdk could have a number of snapshots, sourceDisk-000001.vmdk sourceDisk-000002.vmdk. Have a look at the timestamps to determine the active one.
Note 2: If you get the following error:
Note 3: It is also very helpful to edit the network settings for the VM to ensure that the network is Not Connected on boot. Particularly if there are mail services or similar running on the machine. This allows you to boot the machine safe in the knowledge that it is completely isolated from outside influence.
Resources
Another useful document which helped out what the file reference on the vmware site - What Files Make Up a Virtual Machine?Hope it helps. Cheers, Mark



