VMware Cloud Community
ranjitcool
Hot Shot
Hot Shot

Consolidate snapshots

Hey Guys,

I forgot the command to be able to consolidate all snapshots in esx 4.1

For instance, I once had a issue where my snapshot pointer file got messed up and UI had a stale snapshot lying around.

VM was up but data missing. So support used a command and added the snapshot file name in the end and it consolidated the vmdk.

What was that command (I did not take notes eh).

Please let me know

Thanks

RJ

Please award points if you find my answers helpful Thanks RJ Visit www.rjapproves.com
Reply
0 Kudos
3 Replies
a_p_
Leadership
Leadership

Not sure, but usually you need to fix the snapshot chain in such situations to be able to clone the virtual disk using the vmkfstools command wit the "-i" option. Another command which comes into mind is vimsh.

André

Reply
0 Kudos
ranjitcool
Hot Shot
Hot Shot

Thanks Andre, so the command is vmktools -i .vmdkfile  snapshotfile??

RJ

Please award points if you find my answers helpful Thanks RJ Visit www.rjapproves.com
Reply
0 Kudos
a_p_
Leadership
Leadership

For this vmkfstools command you will need to specify the latest snapshot in the virtual disk's snapshot chain as the source and a new vmdk as the target. E.g. for a VM with vmname-000003.vmdk as the current snapshot:

vmkfstools -i vmname-000003.vmdk clone.vmdk

André

Reply
0 Kudos