This article provides an overview of virtual machine snapshots in vSphere.
Note: Snapshots should not be considered as a backup for any virtual disks associated with the VMs. Running a virtual machine on a snapshot for extended periods of time can cause instability and data loss. For more information, see Best practices for using snapshots in the vSphere environment
Snapshots can be used for development and testing purposes. It can be considered as a quick failsafe to be able to rollback before a patch performing tests on certain applications residing on VM.
For troubleshooting issues with snapshots see: Troubleshooting issues when creating or committing snapshots in VMware ESXi/ESX.
The below video provides the information about Virtual Machine Snapshots in VMware ESXi:
A snapshot preserves the state and data of a virtual machine at a specific point in time.
A virtual machine provides several operations for creating and managing snapshots and snapshot chains. These operations create snapshots, revert to any snapshot in the chain, and remove snapshots. Extensive snapshot trees can be created.
Configuring VMware vCenter Server to send alarms when virtual machines are running from snapshots (375439).
vSphere informs via the UI if the consolidation part of a Delete Snapshot or Delete All Snapshots operation has failed. The option Consolidate, is available via the Snapshot menu to consolidate the snapshots. For more information about Consolidating/Committing Snapshots in ESXi (316575)
Note: Considerations with VMware Snapshot and Oracle workloads
When creating a snapshot, there are several options that can be specified:
When a snapshot is created, it is comprised of these files:
-.vmdk
and --delta.vmdk
.vmdk
and -delta.vmdk
files for each virtual disk is connected to the virtual machine at the time of the snapshot. These files can be referred to as child disks or delta links. These child disks can later be considered parent disks for future child disks. From the original parent disk, each child constitutes a delta
pointing back from the present state of the virtual disk, one step at a time, to the original.2TB
in size, the delta
file is of --sesparse.vmdk
format.sesparse
regardless of the size..vmsd
.vmsd
file is a database of the virtual machine's snapshot information and the primary source of information for the Snapshot Manager. The file contains line entries which define the relationships between snapshots as well as the child disks for each snapshot.Snapshot.vmsn
.vmsn
file includes the current configuration and optionally the active state of the virtual machine. Capturing the memory state of the virtual machine allows reversion of a virtual machine in an online state. Non-memory snapshots can only revert to a turned off virtual machine state. Memory snapshots take longer to create than nonmemory snapshots.vmdk
files are stored in the same location as the virtual disks (which can be in a different directory to the working directory). To change this behavior, see Changing the location of snapshot delta files for virtual machines in ESXi (341547)It is important to note these points regarding the space utilization of child disks:
vmsn
files created.For more information on child disks and disk usage, see:
Generally, when a snapshot is created for the first time, the first child disk is created from the parent disk. Successive snapshots generate new child disks from the last child disk on the chain. The relationship can change if there are multiple branches in the snapshot chain.
This diagram is an example of a snapshot chain. Each square represents a block of data or a grain as described in the preceding section:
For more related information see: