Solved

Delete Vmwar snapshots

Posted on 2013-10-30
13
257 Views
Last Modified: 2013-11-01
That s what snapshot Manager is showing:

server.domain.com
server.domain.com_vm-2647_1
You are here


If I understand when I access the VM machine, I am accessing both the content the base machine and the delta file contents, I could be wrong, I might be accessing for now just the contents of the base machine: server.domain.com

My question if I delete the snapshot server.domain.com_vm-2647_1, would it merge with the base machine :server.domain.com ?

Thanks
0
Comment
Question by:jskfan
  • 7
  • 6
13 Comments
 
LVL 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39612679
Yes, if you delete snapshot server.domain.com_vm-2647_1, it will merge with the Parent disk.

see my EE Article for more details

HOW TO: VMware Snapshots :- Be Patient
0
 

Author Comment

by:jskfan
ID: 39613305
so how to revert back to server.domain.com, and get rid of the snapshot as it is not needed, and it is just taking extra space.
0
 
LVL 119
ID: 39613512
Highlight the server.domain.com snapshot in Snapshot Manager, and select Go To.

This will Revert you to server.domain.com, once reverted back to this time, you can then delete the snapshot you do not require.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:jskfan
ID: 39615848
But when I highlight server.domain.com, all the buttons like GoTo, delete,etc...are grayed out.

the buttons will show up enabled when I highlight :
server.domain.com_vm-2647_1
0
 

Author Comment

by:jskfan
ID: 39616364
I guess that s where the confusion is:

the base image is vm.vmdk

for instance,
1- I create the first snapshot and name it : beforefirstpatch110113
this will create Vm000001vmdk and start writing changes to it.

then starting deploying the patch and making changes, to my understanding all the changes will be written to vm00001.vmdk which is in fact the physical file of the "beforefirstpatch110113"

now if the patch did not work well, and start seeing issues on the VM, at this point are we going to select Delete to delete the beforefirstpatch110113 snapshot, or are we going to select Goto beforefirstpatch110113 ?

to my understand delete and Goto, both will merge the content of the snapshot to the base image. and we do not want Vm000001vmdk which is the physical file of (beforefirstpatch110113) to be merged to the base image.

how would we do that?

Thanks
0
 
LVL 119
ID: 39616410
Some of the Confusion, is because really the word DELETE should be called MERGE! (sometimes!).

I guess that s where the confusion is:

the base image is vm.vmdk

for instance,
1- I create the first snapshot and name it : beforefirstpatch110113
this will create Vm000001vmdk and start writing changes to it.

then starting deploying the patch and making changes, to my understanding all the changes will be written to vm00001.vmdk which is in fact the physical file of the "beforefirstpatch110113"

CORRECT.

now if the patch did not work well, and start seeing issues on the VM, at this point are we going to select Delete to delete the beforefirstpatch110113 snapshot, or are we going to select Goto beforefirstpatch110113 ?

If you DELETE the current snapshot, it will me MERGED with the parent disk. So your current machine will have all the broken patches.

You will need to REVERT (GoTo) the Previous Snapshot. You are here, is where you currently are! When you Revert (GoTo) it will state the Current State of Virtual Machine will be lost, unless it has been saved in a snapshot.

If you want to "travel" back and time between different states of a VM, before and after applying patches, create another Snapshot!
0
 

Author Comment

by:jskfan
ID: 39616453
I know you are Expert in Vmware, but I believe the first snapshot created and displayed in Snapshot Manager represents the VM.vmdk and not the VM000001.vmdk
because when you select GoTo the first snapshot, it will stay displayed in Snapshot Manager, but the vm000001.vmdk file will be deleted....

if you highlight the first snapshot and select delete, the snapshot will disappear from the snapshot manager , and the contents of VM00001.vmdk will merge with vm.vmdk file, and the vm00001.vmdk will be deleted

in one of the links you posted it talks about:  delta.vmdk file
I do not know if it is different than the vm00001.vmdk
0
 
LVL 119
ID: 39616466
Snapshot Manager only shows and links to Snapshots, which are...0001, 0002.vmdk etc If you look at the very top (root) this represent the VM without a snapshot. e.g. check a machine with no snapshots, You are Here....is the parent virtual machine disk (vmdk).

if you look at the virtual machine settings, and virtual hard disk, you can easily tell which snapshot is being written to by the VM. Because the snapshot appears as the disk

e.g. 0001, 0002.vmdk

see my EE Article on Snapshots above.

if you highlight the first snapshot and select delete, the snapshot will disappear from the snapshot manager , and the contents of VM00001.vmdk will merge with vm.vmdk file, and the vm00001.vmdk will be deleted

CORRECT

delta.vmdk is an old term, which acually means the 0001 files are the child delta files.
0
 

Author Comment

by:jskfan
ID: 39616482
Ok...hopefully this is my last comment before i close the thread.

when you have just one snapshot...then you Highlight it
if you select GoTo or delete....both ways will merge the changes to the original image?
0
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39616532
only DELETE will merge! (and delete the snapshot delta file!)

Try It!

Take a Single Snapshot, select GoTo?

Does it remove/delete the snapshot?
0
 

Author Comment

by:jskfan
ID: 39616665
I will set up the lab this week end and learn how snapshots work,,,,
0
 

Author Closing Comment

by:jskfan
ID: 39616670
Thank you
0
 
LVL 119
ID: 39616689
Be cautious about using Snapshots in Production, they can catch you out, and then can be EVIL!
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question