Hyper-V VM backups – Deleting Snapshots

The pitfall of VM backup is that when it fails to work right, it is a disaster itself.  Many VM backup applications, whether on ESXi or Hyper-V, are using some sort snapshot technologies.  When VM backup works right, it will freeze the VMs and create snapshots of these VMs so it can backup the static files.  Once complete the grabbing of these static files, it will responsibly merge the still changing data with the previously frozen static files and thus remove the snapshots.  If this VM Backup application for some reason cannot complete the whole freezing-grabbing-merging cycle, it will leave the snapshots going.  Unlike manual snapshotting, human operators or monitoring software may not be aware the “bastard” snapshots and this will eat up the disk storage very fast, especially when there were a lot of half-baked VM backups.  At a client, there were seven “bastard” snapshots and ate up 271GB of disk space in less than 2 days and rendered the whole Hyper-V host inoperative :

Hyper-V manager

Because these VM Backups are not done by Windows, in Hyper-V Manager, you don’t have the option to delete and merge the snapshots.

Hyper-V Checkpoints

You have to use PowerShell to do so:
get-VMsnapshot -VMNname nameofthevm -computername nameofthehypervhost| fl

PoweShell SnapShots

to remove the snapshot type:

get-VMsnapshot -VMNname nameofthevm -computername nameofthehyperhost| Remove-VMsnapshot

Hyper-V PoweShell SnapShots

Share the knowledge...Share on FacebookTweet about this on TwitterShare on LinkedInShare on Google+Share on RedditEmail this to someonePrint this page

More Hyper-V Tutorials

Nelson has written 180 tutorials

Hi there, my name is Nelson Amaya and I’m the author of this website. I am a motivated self-taught systems administrator with more than 12 years of experience in the IT field. I enjoy solving complex problems and learning as much as I can about new technologies. I write tutorials based on my work experience and other IT stuff I find interesting.

Please add me to your LinkedIn professional network or subscribe to my email list to get the latest updates.

BTW, If you are an IT Pro, and if you haven't read "The Phoenix Project" novel yet, I definitely recommend it to you. In my opinion, all IT books are sort of boring, but this novel is very entertaining, I didn't want stop reading it when I got the book. Check it out The Phoenix Project: A Novel for IT Professionals

Thank you,
Nelson.