Solved

Delete Vmwar snapshots

Posted on 2013-10-30
13
248 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 118

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) 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 118
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
 

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 118
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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 118
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 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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 118
ID: 39616689
Be cautious about using Snapshots in Production, they can catch you out, and then can be EVIL!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now