Removing a snap

sfletcher1959 used Ask the Experts™
I am running esxi 5.5 on a vsphere client (not web).  It is in our test lab.

I was updating our PSQL database from 10 to 13.  I took a snapshot prior to the upgrade.  Installed the upgraded software and it performed poorly.  We decided to abandon that upgrade option and wait for 14.

I opened the snapshot manager and clicked GoTo Snap to roll back to the previous server state.  Worked perfectly.

However, I assumed that once I rolled back, the snap would be removed.  It was not.  So now if I delete the snap, I suppose it will write the changes and I'll end up on 13 again.  How do I delete the snap without writing the changes.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
When you Revert, you just change the pointer as to where you are in the Snapshot history, they do not disappear.

select DELETE. (you'll then stay where you currently are, e.g. rolled back).

e.g. it will just discard the snapshot you don't need.
So that is where I am not understanding the concept.

example :
Server A is on OS 2008R2.  I take a snap shot (Upgrade 2012).
Server A is upgraded to 2012R2
If I delete the snapshot above (Upgrade 2012), the VM will stay on 2012R2 and the snapshot disappears from the manager.  Done this many times.

If I "Go To" the snapshot above, the VM reverts to when it was on 2008R2.  Never done this before.  However, it doesn't remove the snap, so if I forget and do a delete of the snapshot, I am back on 2012R2 which is not where I wanted to be at that point.

If I want to leave on 2008R2 the snapshot I
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
The location of the "you are here" point is critical here.... and it moves...based on what Snapshot the VM is running on..

What your missing is where the current pointer is pointing....

when you've reverted, and rolled back.... you are now here...

delete the snapshot then just does a discard (delete).

So just complete a DELETE ALL, this then removes all the snapshots and leaves you where you currently are, (e.g. rolled back all snapshots gone)

If you don't feel confident, then I would encourage you to test on a machine you experiment with, OR...

you could use CLONE to CLONE the existing VM to a new VM (which will have no snapshots attached), and once done and started, delete the old VM.

We generally do not recommend the use of Snapshots and Reverting...

1. because performance is poor running on a snapshot, upgrades take longer.
2. Admins get confused as to what to do..
3. Reverting can cause issues with Servers Domain Joined, Active Directory, and SQL, Exchange Servers will go bad on reverting..
4. Datastore runs out of storage and VM gets corrupted.
5. Admin forgets the VM is running on a snapshot.
6. Deleting the final snapshot causes performance issues.

I could go on and on and on, and write a Book, called "Snapshot Hell"

We actually recommend, Backup before any production changes, or use CLONE before you make changes to a VM, this creates a copy, which if all goes wrong and you need to revert....

just delete the upgraded VM, rename the CLONE and restart!
Success in ‘20 With a Profitable Pricing Strategy

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!

Thanks Andrew!

Since this was in a lab (test servers and test SAN), we knew nothing was critical.  I expected that if you revert back to the original vm, the snap would go away, not just report to the "where you are".

As always, you are a wealth of knowledge and can't possibly understand how vital you are to the community.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Thanks for your kind words.....

You can have multiple snapshots, and move and revert all over, and go to different snapshots...and then take more snapshots, the chain can get very complicated.
snapshot manager
This was what I was referring to:
At the highest level was AppTest2012
Below that was the snapshot I took
Below that was the you are here, which looks like it is running under the snapshot.

When I clicked on the Go To button, nothing changed in this view.  However, when I went into the server it was operating with the original version of PSQL.  Not the version installed after the snap.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
ah, you are here , there is a little link which is connected, Snap prior.....

it might show under, but there is a little link...pointing to you are here... (not underneath)

I think the Web Client does a better job of showing this...

You are here should show on the same line next to Snap prior....

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