VMware

Knorrhane

Things that happens and is good to be remembered.

Previous Next
0

Snapshot problems

Posted by nikkar Dec 21, 2007


This document came from http://virtrix.blogspot.com/2007/06/vmware-dreadful-sticky-snapshot.html

Check this link also http://blog.scottlowe.org/2007/09/13/vmworld-2007-top-support-issues-session/

When working with VMware ESX's snapshot technology and/or VCB for a while, you will notice that sometimes a snapshot doesn't get committed correctly. This occurs when for instance an ESX host crashes or hangs during a VCB snapshot.

The problem here is that a redo file (or delta, snapshot file) is created, but never removed. When looking at the snapshot manager, no snapshots appear to be available. Snapshots are devastating for your datastore performance, so we must remove them as quickly as possible! In the worst case, the redo file and the vmware-x.log files will eat up all the remaining disk space on the infected datastore and a message will be displayed.

http://bp2.blogger.com/_meYqFij9XIU/Rm5NwUoVxDI/AAAAAAAAAHo/x_nryyO99rs/s400/NoMoreSpace.JPGhttp://bp2.blogger.com/_meYqFij9XIU/Rm5NwUoVxDI/AAAAAAAAAHo/x_nryyO99rs/s1600-h/NoMoreSpace.JPG

You will notice a number of <originaldiskname>-00000X.vmdk and <originaldiskname>-00000X-delta.vmdk files appear when browsing the datastore. When you look at your Virtual Machine disk properties (via Edit Settings) you will notice that your disk name will have changed from <originaldisk.vmdk> to <originaldisk>-00000X.vmdk, meaning a snapshot version is being used.

http://bp3.blogger.com/_meYqFij9XIU/Rm5N6koVxEI/AAAAAAAAAHw/4m5EVkFbd1A/s400/VCBSnapNotRemoved.GIFhttp://bp3.blogger.com/_meYqFij9XIU/Rm5N6koVxEI/AAAAAAAAAHw/4m5EVkFbd1A/s1600-h/VCBSnapNotRemoved.GIF

You can use 2 tricks to recover from this scenario:

  • Execute vmware-cmd /vmfs/volumes/<datastorename>/<vmname>/<vmname>.vmx removesnapshots on the Service Console. However, most of the time this will not work and you will have to revert to the method below.
  • Manually create a snapshot in the VI Client and remove it after it has been created. This will remove ALL existing snapshots and revert back to your <originaldisk>.vmdk. Great huh?

Tags: snapshot


There are no comments on this post

Click to view nikkar's profile Member since: Apr 12, 2005

Things that happens and is good to be remembered.

View nikkar's profile

Communities