Uredi

Snapshot Azure Elastic SAN volumes

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.

Choose how to retain a snapshot

First, create an Elastic SAN volume snapshot. You can use that snapshot for fast volume recovery, or export it to a managed disk snapshot for independent retention. Use the following comparison to decide whether to keep only the volume snapshot or also export it to a managed disk snapshot.

Requirement Keep the Elastic SAN volume snapshot Export to a managed disk snapshot
Primary use Quickly restore development and test volumes Retain a long-term backup or create a managed disk
Availability of a new volume Available immediately while rehydration occurs in the background Available immediately, but performance might be reduced while rehydration occurs
Retention Deleted when you delete the source volume Persists independently of the source Elastic SAN volume
Billing No separate charge, but consumes Elastic SAN capacity Incurs managed disk snapshot charges
Region You can create a volume in any volume group in the same region, whether the volume group is in the same Azure Elastic SAN or a different one You can create a volume in a volume group only when its Azure Elastic SAN is in the same region as the managed disk snapshot

Elastic SAN volume snapshots aren't durable backups because deleting the source volume also deletes its snapshots. When you need to retain the backup, export the volume snapshot to a managed disk snapshot before deleting the source volume.

Take a stable snapshot

You can take an Elastic SAN volume snapshot at any time. However, a snapshot taken while a virtual machine (VM) is running might be only crash-consistent. Consider the following risks:

  • Data continues to stream to the volumes, so the snapshot might contain incomplete in-flight operations.
  • Snapshots of multiple volumes attached to one VM might occur at different times.
  • Uncoordinated snapshots can leave striped volumes or application data in an inconsistent state.

To create a file-consistent snapshot across multiple volumes:

  • Freeze all the volumes.
  • Flush all the pending writes.
  • Create an incremental snapshot for each volume.

Some Windows applications, such as SQL Server, use Volume Shadow Copy Service (VSS) to coordinate application-consistent backups. On Linux, you can use fsfreeze to coordinate disks and create file-consistent backups, fsfreeze doesn't create application-consistent snapshots.

Create a volume snapshot

You can create an Elastic SAN volume snapshot by using the Azure portal, Azure PowerShell, or Azure CLI. Before you begin, identify the source Elastic SAN volume.

  1. Sign in to the Azure portal.
  2. Go to your Azure Elastic SAN and select Volume snapshots.
  3. Select Create a snapshot.
  4. Select the source volume group and source volume, enter a snapshot name, and then select Create.

After the operation finishes, confirm that the snapshot appears under Volume snapshots for the source volume group.

Create a volume from a volume snapshot

You can use an Elastic SAN volume snapshot to create a new volume by using the Azure portal, Azure PowerShell, or Azure CLI. The snapshot and the Azure Elastic SAN where you create the new volume must be in the same region. You can't use snapshots to change the state of existing volumes.

  1. Go to the Azure Elastic SAN where you want to create the volume, and then select Volumes.
  2. Select + Create volume and enter the volume name, volume group, and size.
  3. For Source type, select Volume snapshot, and then select the source snapshot.
  4. Select Create.

After the operation finishes, confirm that the new volume appears under Volumes in the volume group where you created it.

Create a volume from a managed disk snapshot

You can use a managed disk snapshot to create a new Elastic SAN volume by using the Azure portal, Azure PowerShell, or Azure CLI. The managed disk snapshot and the Azure Elastic SAN where you create the new volume must be in the same region.

  1. Go to the Azure Elastic SAN where you want to create the volume, and then select Volumes.
  2. Select + Create volume and enter the volume name, volume group, and size.
  3. For Source type, select Disk snapshot, and then select the managed disk snapshot.
  4. Select Create.

After the operation finishes, confirm that the new volume appears under Volumes in the volume group where you created it.

Delete volume snapshots

You can use the Azure portal, Azure PowerShell, or Azure CLI to delete Elastic SAN volume snapshots. You can delete only one snapshot at a time.

  1. Go to your Azure Elastic SAN and select Volume snapshots.
  2. Select a volume group, and then select the snapshot that you want to delete.
  3. Select Delete.

After the operation finishes, confirm that the snapshot no longer appears under Volume snapshots for the volume group.

Export volume snapshot

Elastic SAN volume snapshots are automatically deleted when you delete the source volume. To retain the snapshot data independently, export an Elastic SAN volume snapshot to a managed disk snapshot. Export time depends on the snapshot size. Monitor the CompletionPercentage property of the managed disk snapshot to track the export.

Limitations

The first snapshot that you take after resizing a volume isn't incremental, and its export might fail.

Billing implications

Elastic SAN volume snapshots don't incur a separate charge, but they consume Azure Elastic SAN capacity. After you export an Elastic SAN volume snapshot, the resulting managed disk snapshot incurs managed disk snapshot charges.

  1. Go to your Azure Elastic SAN and select Volume snapshots.
  2. Select a volume group, and then select the snapshot you want to export.
  3. Select Export, enter a name and resource group for the managed disk snapshot, and then select Export.

After the export starts, confirm that the managed disk snapshot appears in the destination resource group. Monitor its CompletionPercentage property to track the export.