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.
-
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?
-
Can the VM be running while I delete the snapshot?
-
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
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.
Since Hyper-V 2012.
In 2008/2008 R2, you need to shut down the VM for the merge process to start.
Good Catch! Forgot about that limitation on 2008.