Deleting SnapShots

cgeorgeisaac
cgeorgeisaac used Ask the Experts™
on
What is the best way to delete SnapShots in vSphere 5.5?
Is there any step by step procedure or guide that I could be provided? Either thru GUI or CLI.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Scott CSenior Engineer
Commented:
Very easy.

Delete a Snapshot in the vSphere Client

http://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.vm_admin.doc%2FGUID-1DC05EAD-7EF1-4CE5-8BA0-307C1E9F9317.html


1 Select Inventory > Virtual Machine > Snapshot > Snapshot Manager.
 
2 In the Snapshot Manager, click a snapshot to select it.

3 Select a delete option.

4 Click Yes.
Gaurav SinghSolutions Architect
Commented:
there are no specific steps to delete the snapshots. Its a simple process provided by VMware. Refer below link

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009666
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
It's not *SIMPLE* it needs some thought!

1. Is the VM ON.
2. Is there enough storage space on the datastore.
3. WHY is there a snapshot on the VM ?

Please see my EE Article

HOW TO: VMware Snapshots :- Be Patient

What *NONE* of the previous Experts have explained, is what happens, when it ALL GOES *SIMPLY* tits (WRONG) up in their SIMPLY terms.

1. If you delete a snapshot, do EXPECT it to appear as if it hangs at 90, 95 or 99% this is normal!

2. Depending upon how large the snapshot is, and it's worth checking, you do check your VMs every day for snapshots, snapshot growth can be 1GB an hour on an idle machine, if a snapshot fills up a datastore the VM will fail and stop!

3. if you have a large snapshot, it could take seconds, minutes, hours, days, or weeks to commit (delete!).

4. So BE VERY PATIENT.... do not cancel, restart the VM, stop the VM, reboot the host, you could corrupt the VM.

5. So Snapshots SIMPLE, no thy are not they need to be understood and respected, do not use them, and check daily for them!

Finally performance of any VM on a snapshot is POOR!
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

cgeorgeisaacSenior Engineer

Author

Commented:
Based on the comments, which I highly appreciate.  The  SnapShots exists for the VM which is ON and  the performance is very slow.  I know consolidation is going to take a long time, as experienced in the past.  Is there a proper way to delete multi-Snapshots using CLI.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Based on the comments, which I highly appreciate.  The  SnapShots exists for the VM which is ON and  the performance is very slow.

This is to be expected, writing to a snapshot child disk caused poor performance.


 know consolidation is going to take a long time, as experienced in the past.  Is there a proper way to delete multi-Snapshots using CLI.

Delete ALL the snapshots.
cgeorgeisaacSenior Engineer

Author

Commented:
Could you provide me the correct CLI command?
I have followed this link but a little confused as to which one I should run first.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026380
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
get-vm VMname* | get-snapshot | Remove-Snapshot -Confirm:$false

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial