• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

Deleting Snapshot

I know that Andrew Hanckok  posted articles about how to delete Snapshots that do not show up in Snapshot Manager as well as the snapshots that fail to delete when using Consolidation, by powering off the VM and  creating new snapshot and be Patient for a while, then delete the last snapshot, which will delete other snapshots in the chain and commit them to the Base Disk.

- Recently in our environment Veeam Backup Software created 4 separate Snapshots on a VM (Because it has 4 Hard Disk). The VM kept running on the snapshot and the Snapshot Manager showed empty.
VM Engineer tried the consolidation and Failed, he created new snapshot then deleted it, following Andrew steps, and it failed..
Later on, he fixed the issue..per his statement he moved the .ctk files to a different location while the VM was OFF, ran the snapshot consolidation which deleted the snapshots without error, then powered the VM back on .
Well..I want to know from the EE standpoint how this can be done.
another  option per some engineers, is cloning the VM to different datastore can delete the snapshots..(this is not clear)

Any EE to shade some lights on Deleting Snapshots Methods, if there are more that one ?
 

Thank you
0
jskfan
Asked:
jskfan
  • 4
  • 3
  • 2
  • +1
3 Solutions
 
Larrymey HawkinsCommented:
Have you tried recreating a new snapshot then using Delete all within the GUI?

If so

You could Use putty to ssh in and open each (namehere).vmdk descriptor files and look for the line
ddb.deletable = false Change that to true. Then use the comment to create a new snapshot

(namehere.vmx createsnapshot test) after that use the command to delete all snapshots

(name.vmx removesnapshots) and see if this works.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
There are many methods....for info, and I think I've mention this Consolidate option is for VMware Beginners, and rarely works!

1. Creating and Deleting the Snapshot.
2. VMware Converter, and create a new VM, (V2V)
3. CLONE option.

What do you want to know ?

It also depends on the error message, but a backup application leaving a VM running on a snapshot, needs further investigation as to WHY this is happening.

My Article is here

HOW TO: VMware Snapshots :- Be Patient
0
 
Luciano PatrãoICT Senior Infraestructure Engineer Commented:
Hi,

Andrew unfortunately now is more common that was before a Backup tool leave snapshots behind. Because of the several problems with CBT and also VMware Tools in ESXi with the Application-Aware many times Backup Tools(in this case Veeam) have issues when this is enable, and in the end cannot remove the snapshot that was created. I see lot of these after these issues.

Also if you a Veeam Proxy with NFS Direct, this well happen more times.

That is why I have a script that just runs in the vCenters every week and look for Veeam Snapshots that was left behind and delete them all.

Regarding the question,  if Andrew article and tips doenst work, you could try the ddb.deletable = true. Even this is for old versions, it still works.

Jail
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jskfanAuthor Commented:
Thank you Guys:

will the options below  allow you to make the VM get rid of the snapshots? I mean able to commit the snapshots to the Base Disk ? after the VM has been converted or cloned ?
. VMware Converter, and create a new VM, (V2V)
. CLONE option.
0
 
Luciano PatrãoICT Senior Infraestructure Engineer Commented:
Hi,

I only go for that options in a very extreme case. Don't think this extreme cases and can be removed easily with the options indicated above.

Jail
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
No, it will not commit the snapshot, it's a method of obtaining a VM without the snapshot.
0
 
jskfanAuthor Commented:
SSH in to the Datastore not to ESX host to edit the VMDK files. Correct ?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You must always access the datastore via the HOST.

It's not advisable to edit directly.

And not too sure what you mean by editing VMDK to fix a snapshot!
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You must always access the datastore via the HOST.

It's not advisable to edit directly.

And not too sure what you mean by editing VMDK to fix a snapshot!
0
 
jskfanAuthor Commented:
Thank you Guys!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now