VMware Cloud Community
Kaustubhambulka
Enthusiast
Enthusiast

Revert Snapshot Error : msg.snapshot.error-duplicateddisk

Error while Reverting the Snapshot

pastedImage_0.png

Esxi 5.5.0.

No backup configured.

VM have around 20+ snapshot.

0 Kudos
3 Replies
SupreetK
Commander
Commander

With 20+ levels of snapshot, there are high chances of corrupt/missing vmsn/vmsd files that hold the details of the snapshot tree. If you are willing to merge the snapshot data to base disk and get rid of the snapshot, below steps can be followed -

1) Create a temporary folder under VM running datastore.

mkdir /vmfs/volumes/Datastore-name/Temp

2) Navigate to VM folder and backup snapshot state file and snapshot database file by moving to temp folder.

cd /vmfs/volumes/Datastore-name/VM-Folder

mv vmname-Snapshot#.vmsn /vmfs/volumes/Datastore-name/Temp

mv vmname.vmsd /vmfs/volumes/Datastore-name/Temp

3) Get virtual machine ID by using vim-cmd command.

vim-cmd vmsvc/getallvms

4) Reload the vmx file of the virtual machine with vmid.

vim-cmd vmsvc/reload vmid

5) Use snapshot manager 'Consolidate' option to consolidate the disks.

If you are reverting to the base disk and do not want any changes that were made to the VM post snapshot, move all the snapshot related files to a temp folder and edit the vmx file to boot from the base disk. Alternatively, create a new VM and attach the existing base disks.

Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

Cheers,

Supreet

0 Kudos
Kaustubhambulka
Enthusiast
Enthusiast

I am not willing to merge the snapshot data. Want to revert snapshot.

0 Kudos
dbalcaraz
Expert
Expert

It can be risky but if you point in the .vmx file, your hard disks to the flat files you should be able to restore the previous state.

You must power-off the VM of course and identify which flat file is the snapshot that you want.

-------------------------------------------------------- "I greet each challenge with expectation"
0 Kudos