Delete all snapshots

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.

4 Responses to “ Delete all snapshots ”

  1. Goede TIP!

  2. [...] Delete all snapshots:  For those end users that don’t work with snapshots, this article is a must read. [...]

  3. [...] Another thing that people don’t know is the way “delete all” works, but I’ve already outlined that a while ago in a blog. [...]

  4. [...]  Yellow Bricks has a good little write about problems you could run into if you use a lot of snaps then delete all snapshots. Make sure you have a lot of extra disk space when you do it. [...]

Leave a Reply