r/HyperV•
Protoman111

Deleting Snapshots

I've got a VM that's running a production SQL server that has a single snapshot from several weeks ago. We no longer need this snapshot and would like to remove it so we can re-claim the disk space. I'm primarily a VMWare guy, so I have few questions related to this procedure.

  1. If I remove this snapshot, will this affect the running state of the VM? I'm not at risk of losing any of the current data right?

  2. Can the VM be running while I delete the snapshot?

  3. The snapshot itself is about 250Gb. If I do have to power off the VM to remove the snapshot, how much downtime should I expect to have?

Thanks for the advice!

Posted Apr 6, 2015, 8:42 PM UTC

15
maestrojv•

Deleting a snapshot can be done whilst the VM is running, and with regard to affecting performance, it will mean a high amount of disk activity as it checks /merges the differences.

When doing this, the hyper-v manager will show a % progress entry next to the VMs entry next to uptime & memory usage stats.

Of course with this being production, scheduling downtime won't hurt, a snapshot that big will take >2 hours to delete, so performance would be affected for all of that time.

2
FrenchFry77400•

Deleting a snapshot can be done whilst the VM is running,

Since Hyper-V 2012.

In 2008/2008 R2, you need to shut down the VM for the merge process to start.

2
maestrojv•

Good Catch! Forgot about that limitation on 2008.

1
JohnC53•

That's big. Merges CAN go wrong. I'd set aside downtime, create a backup, stop sql and any other production functions, then merge. And everything is spot on in the other comment: http://www.reddit.com/r/hyperv/comments/31o403/deleting_snapshots/cq3cnmj

2
winetime1144•

Is the VM running on 2012 or 2008? On 2008 you need to shut down or save the VM to merge the snapshot. If 2012 it will merge without shutting the VM down.

2