Delete all snapshots

Posted by Duncan Epping in January 7th, 2008
Published in Server

Today I encountered an old misunderstood principle again. A customer had created several snapshots on a virtual machine. Several… well to be exact 15. All snapshots were larger than 20GB. When the VMFS volume, on which this VM was located, ran out of diskspace he decided to use the button “Delete All”, but within a couple of minutes the VMFS volume ran out of diskspace again. What happened?

Situation:
Snapshot 1 – 20GB
Snapshot 2 – 10GB
Snapshot 3 – 30GB

When you choose “delete all” the following will happen:

  1. Snapshot 2 will grow to 40GB at most
  2. Snapshot 1 will grow to 60GB at most
  3. Snapshot 1 will be committed to the original VMDK
  4. All snapshot files are deleted

In other words: Snapshot 3 is merged into Snapshot 2, Snapshot 2 is merged into Snapshot 1, Snapshot 1 is merged into the original flat.vmdk and afterwards all snapshot files are deleted. This means that if you want to delete all snapshots at once you will need around 130GB of free diskspace. So think twice when you press the “delete all” button.


11 user comments or pingbacks in this post

Follow-up this post comment rss or leave a trackback
2. dbirnie said,

You know you IT types are so out of touch with reality.
The reasons for searching databases like yours is to recover from program defects.
If you don’t want to give an answer, stop posting.
How helpful is it to say “think twice”.

3. Edoardo Fazzini said,

By the way i remeber also that deleting snapshot process (committing changes) in VC console, viewed below in status bar, generate a timeout error when it arrives at 95%.
This is not a problem, because on side Host the process continue its works and finish after sometimes (it depends on how many GB are going to commit.. maybe hours..). So don’t worry!!! Be patient!!!

4. lldmka said,

The author probably assumed a certain level of intelligence in his readers.

By ‘think twice’ he clearly means to think about whether you have enough free space on the volume to commit the snapshots.

5. Duncan Epping said,

Correct, think twice before you start deleting… My Article wasn’t about solving a problem, it was about explaining what happens in the background. It’s the way it’s been designed.

6. Oinkmaster said,

If you just start by deleting the oldest snapshot then you need no additional storage at all. It then just gets merged in the original vmdk-file.

Leave A Reply Below

Currently browsing Delete all snapshots

 Username (*required)

 Email Address (*private)

 Website (*optional)

Pingback and trackback

Link trail from various blogs:
Pingback on April 24th, 2009 at 14:54

Topics Search

Yellow-Bricks recommends:







VMware Fusion and VMware Workstation: Support Yellow-Bricks and get a 10% discount on select VMware products.

Train Signal:
Learn Virtualization technology with Train Signal. Support us and learn how to fully utilize VMware products at the same time! Click here for more info!

Advertisements

Recent Comments

Tags

Info