Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Why you would want to disable snapshots in a hypervisor

Since snapshots are essential to VM management, you might be wondering why anyone would want to disable them. In reality, unused and old snapshots can be a major drain on storage.

Snapshots are an integral part of virtual machine management, allowing administrators to capture complete instances...

of any VM at any point in time in order to preserve the VM's state and data. Snapshots can be taken while the VM is running normally, while the VM is suspended -- quiesced -- or even while the VM is powered off. Snapshots are most often used for protection, reverting a VM to an earlier state or restoring a failed or malfunctioning VM. But snapshots are not automatic or infallible, and there will inevitably be some instances when it's best to disable snapshots. Let's consider when snapshots should be disabled, and how to accomplish that under vSphere 6.

Why would I want to disable snapshots in a hypervisor like vSphere 6?

Considering the importance of virtual machine snapshots, it might seem counterintuitive to discuss how to disable snapshots. Yet there are some situations when reducing or disabling snapshots is entirely appropriate.

The most common motivation for reducing or disabling VM snapshots is to conserve storage capacity. To appreciate the storage implications, consider that snapshots are not complete copies of the original virtual machine disk (VMDK) files. Rather, snapshots only log and capture the changes -- delta -- between the original VM file and the VM's current state, so restoring a VM requires the original VMDK file along with all snapshots to that point. This is why snapshots are not considered as a viable backup, though they are sometimes used in that manner -- if the original VMDK file or any of the snapshot files are lost or damaged, snapshot restoration may be impossible.

The issue here is storage. Snapshot -- delta -- files can get to be as big as the original VMDK file. This is multiplied by the number of snapshots involved for that VM, and vSphere 6 supports up to 32 snapshots in a chain. It's not hard to see how storage demands for a large VM and lots of snapshots can take up a significant amount of storage, and a large number of snapshots in a chain can even impair VM performance. This can happen with startling speed on transactional systems like email or database servers. VMware suggests limiting snapshots to just two or three iterations as a best practice.

While lots of snapshots might seem to offer granular restoration potential, the truth is that most snapshots become useless to the business -- the snapshots just become too old and pose unacceptable amounts of data loss -- in anywhere from 24 to 72 hours. So maintaining lots of older snapshots -- which will almost certainly never be restored -- consumes storage but offers no tangible benefit to the business. Keep just enough snapshots to restore the last few hours or day of VM operation and save storage capacity.

There are three situations when it might be useful for an administrator to reduce or disable snapshots. First, snapshots may not be necessary for development VMs -- such as experimental or beta software releases for testing -- or VMs that experience little significant change in normal operation. Second, it might be worth reducing the number of snapshots for performance-sensitive VMs or host systems as a best-practice for optimizing workload or host performance. Third, it may be necessary to stop and delete existing snapshots for a VM before increasing the size of that corresponding VMDK file or virtual raw device mapping. Otherwise, a size change with snapshots present can corrupt those snapshots and lead to data loss.

Remember that controlling snapshots can be accomplished on a per-VM basis, so administrators can tailor snapshot activity in a way that best suits the needs of each workload's importance to the business. Some VMs, like critical transactional workloads, may continue with a large number of frequent snapshots, but storage and performance can be trimmed by reducing or stopping snapshots on less-important workloads.

Next Steps

Using snapshots for backup and recovery strategy

Keeping virtual machines snapshots in check

Rules for avoiding VM snapshot problems

This was last published in May 2016

Dig Deeper on Selecting storage and hardware for VMware environments

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Join the conversation

1 comment

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

What are some other potential benefits to disabling snapshots in vSphere 6?
Cancel

-ADS BY GOOGLE

SearchServerVirtualization

SearchVirtualDesktop

SearchDataCenter

SearchCloudComputing

Close