Skip to main content

Snapshots

Overview​

A snapshot is a point-in-time copy of a block storage volume. Use it to restore data or to create a new volume. For automatic backups, see the Snapshot scheduler.

Prerequisites
  • Resource.BlockStorageSnapshot.CREATE permission
  • The block storage to snapshot must already exist

Creating a snapshot​

Option 1: From the block storage detail page

  1. Pick the target volume in Block Storage > Block Storage.
  2. Click Create Snapshot on the detail page.

Option 2: From the Snapshots menu

  1. Go to Block Storage > Snapshot.
  2. Click the Create Snapshot button in the top right.

In the create form:

FieldDescription
NameIdentifier (keep the auto-generated snapshot-xxxxxx or edit it)
ZoneThe zone the snapshot will be stored in
Source Block StorageThe volume to snapshot (only volumes in the selected zone are shown)
  1. Click Create.

The snapshot transitions through Queued → Prepared. Once Prepared, it can be used.


Snapshot states​

A snapshot moves through five states (ResourceBlockStorageSnapshotStatusEnum):

StateMeaning
QueuedRegistered in the job queue (before the Ceph RBD is created)
AssignedThe storage agent picked up the job and is creating the snapshot RBD
PreparedSnapshot RBD created and usable
DeletingDeletion in progress
DeletedDeletion complete

Creating a new volume from a snapshot​

You can build a new block storage volume from a snapshot and attach it to a different VM. There is no dedicated "Clone" button; instead, you pick the snapshot in the block-storage create wizard.

  1. Under Block Storage > Block Storage, click Create Block Storage.
  2. Set the disk type to Snapshot.
  3. Pick the snapshot to restore in the Snapshot field.
  4. Enter the name, size, and zone, then click Create.

The new volume contains the data as of the snapshot point in time. The source snapshot is unchanged, and the Created block storages tab on the snapshot's detail page lists every volume restored from it.

The original volume is not affected

A volume created from a snapshot is a separate resource. The data in the original block storage is unchanged.


What you can see on the snapshot detail page​

The snapshot detail page has three tabs.

  • Overview: name, size, zone, source block storage, creation date
  • Created block storages: list of volumes restored from this snapshot
  • Settings: rename or delete the snapshot

Deleting a snapshot​

  1. Pick the target snapshot in Block Storage > Snapshot.
  2. At the bottom of the Settings tab on the detail page, click Delete.
  3. Click Delete in the confirmation dialog.

A snapshot cannot be deleted while block storages created from it remain. Delete those block storages first.

Deletion is irreversible

After deletion, you can no longer create new volumes from that point in time.

To save cost, regularly delete old snapshots you no longer need. For automatic cleanup, use the retention policy in the Snapshot scheduler.


Next steps​