Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure Elastic SAN volume snapshots are incremental point-in-time backups of your volumes. The first snapshot you take doesn't occupy any space, and every subsequent snapshot consists only of the changes to the Elastic SAN volume since the last snapshot. This approach is different from a managed disk snapshot. The first snapshot you take for a managed disk is a full copy of the managed disk and each subsequent snapshot consists of only the changes to the disk since the last snapshot. Snapshots of your Elastic SAN volumes don't incur any separate billing. However, they reside in your Elastic SAN and consume the SAN's capacity. You can't use snapshots to change the state of an existing volume. You can only use them to either deploy a new volume or export the data to a managed disk snapshot.
You can take up to 200 snapshots per volume at a rate of seven snapshots every five minutes. Snapshots persist until either the volume itself is deleted or the snapshots are deleted. Snapshots don't persist after the volume is deleted. If you need your data to persist after deleting a volume, export your volume's snapshot to a managed disk snapshot. You can only export your volume snapshots to the same region via Elastic SAN. The redundancy type of the snapshot (LRS or ZRS) is determined by the redundancy type of the SAN.
General guidance
Use Elastic SAN volume snapshots when you want to restore volumes quickly, like when you have dev/test workloads. Volumes created from volume snapshots are available instantly for use, while the rehydration happens in the background. Don't consider volume snapshots when hardening your backups.
Use managed disk snapshots when you either want to create a managed disk from your Elastic SAN volume or if you want to keep a long term backup of your Elastic SAN volumes. Managed disk snapshots are useful when you require durable checkpoints or version control for your Elastic SAN volumes, and you don't need to restore a volume backup instantly. Volumes created from managed disk snapshots are available instantly, but it takes time for the rehydration to happen in the background, and you might experience slightly degraded performance. You can create volumes from volume snapshots or disk snapshots that were taken from a different volume group in the same SAN or even from within a different SAN as long as they are in the same region. You can't create a volume from a managed disk snapshot in a different region.
Take a stable snapshot
You can take a snapshot anytime. However, if you take snapshots while the VM is running, keep these things in mind:
When the VM is running, data is still streaming to the volumes. As a result, snapshots of a running VM might contain partial operations that are in flight. If several volumes are attached to a VM, snapshots of different volumes might occur at different times. In the described scenario, snapshots aren't coordinated. This lack of coordination is a problem for striped volumes whose files might be corrupted if changes were being made during a backup. So the backup process must implement the following steps:
- Freeze all the volumes.
- Flush all the pending writes.
- Create an incremental snapshot for each volume.
Some Windows applications, like SQL Server, provide a coordinated backup mechanism through a volume shadow service to create application-consistent backups. On Linux, you can use a tool like fsfreeze to coordinate disks. This tool provides file-consistent backups, not application-consistent snapshots.
Create a volume snapshot
You can create snapshots of your volumes using the Azure portal, the Azure PowerShell module, or the Azure CLI.
- Sign in to the Azure portal.
- Navigate to your elastic SAN and select Volume snapshots.
- Select Create a snapshot, and then fill in the fields.
Create a volume from a volume snapshot
You can use snapshots of elastic SAN volumes to create new volumes by using the Azure portal, the Azure PowerShell module, or the Azure CLI. You can't use snapshots to change the state of existing volumes.
- Navigate to your elastic SAN and select Volumes.
- Select + Create volume and enter the details.
- For Source type, select Volume snapshot and fill out the details, specifying the snapshot you want to use.
- Select Create.
Create a volume from a managed disk snapshot
You can use snapshots of managed disks to create new elastic SAN volumes by using the Azure portal, the Azure PowerShell module, or the Azure CLI.
- Navigate to your elastic SAN and select Volumes.
- Select + Create volume and enter the details.
- For Source type, select Disk snapshot and enter the details, specifying the snapshot you want to use.
- Select Create.
Delete volume snapshots
You can use the Azure portal, Azure PowerShell module, or Azure CLI to delete individual snapshots. Currently, you can't delete more than an individual snapshot at a time.
- Navigate to your elastic SAN and select Volume snapshots.
- Select a volume group, then select the snapshot you want to delete.
- Select Delete.
Export volume snapshot
Elastic SAN volume snapshots are automatically deleted when you delete the volume. To make your snapshot data persist beyond deletion, export the snapshots to managed disk snapshots. Exporting a volume snapshot to a managed disk snapshot takes time. How much time it takes depends on the size of the snapshot. You can check how much is left before completion by checking the CompletionPercentage property of the managed disk snapshot.
Limitations
If you resize a volume that you are taking incremental snapshots of, the snapshot after the resize will not be incremental, and exports could fail. So, if you are trying to export a volume snapshot after resizing the volume, it could fail.
Billing implications
Elastic SAN snapshots don't have any extra billing associated with them. They only consume your elastic SAN's capacity. Once you export an elastic SAN snapshot to a managed disk snapshot, the managed disk snapshot begins to incur billing charges.
- Navigate to your elastic SAN and select Volume snapshots.
- Select a volume group, and then select the snapshot you want to export.
- Select Export, enter the details, and then select Export.