Best practices for using snapshots in vsphere environment

From Notes_Wiki

Home > VMWare platform > VMWare vSphere or ESXi > Best practices for using snapshots in vsphere environment

Snapshots are good way of creating a quick recovery point in case the changes to be performed in immediate future cause VM to crash. However, there are best practices for using snapshots such as:

  • We should not use snapshots as backups. There should be separate backup mechanism for backup.
  • We should not use more than 2 or 3 snapshots in a chain.
  • It is not ideal to keep snapshot for more than 2-3 days. As soon as activity is over and VM is stable, snapshots should be deleted
  • If snapshots are used for backup process, then after backup is complete the snapshot should be deleted
  • We should delete snapshots before increasing VM disk space by increasing size of virtual RDM.

Refer:


Disk consolidation

At least till vSphere 6.5 deleting snapshots does not automatically improves performance as the snapshot deltas are left as it is until disk consolidation is performed. Disk consolidation is very important but slow process. The most important point related to disk consolidation is that virtual machine power state cannot be changed during consolidation. Hence, if we consolidate disks when guest is powered off, it cannot be powered on. Given that disk consolidation takes considerable time, it might lead to long down-time. Hence, if there is enough free space available live consolidation can be attempted with caution notice on VM stunning as mentioned in below links.

Useful links related to disk consolidation are:

Comprehensive FAQ. Clearly lists that once process is started it cannot be stopped and power operations also cannot be done. Difference between doing this when VM is powered on vs when VM is powered off is also listed.

Clear indication that if downtime is possible it is best to do consolidation in powered off state

VM stunning issue while consolidating VMs which are powered on. Official link related to VM stunning https://kb.vmware.com/s/article/1002836

Related to estimating how much time it would take for consolidation. It may not help much.

Discussion on deleting snapshot vs. consolidating.


Home > VMWare platform > VMWare vSphere or ESXi > Best practices for using snapshots in vsphere environment