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.
Resource.BlockStorageSnapshot.CREATEpermission- The block storage to snapshot must already exist
Creating a snapshot
Option 1: From the block storage detail page
- Pick the target volume in Block Storage > Block Storage.
- Click Create Snapshot on the detail page.
Option 2: From the Snapshots menu
- Go to Block Storage > Snapshots.
- Click the Create Snapshot button in the top right.
In the create form:
| Field | Description |
|---|---|
| Name | Identifier (keep the auto-generated snapshot-xxxxxx or edit it) |
| Zone | The zone the snapshot will be stored in |
| Source block storage | The volume to snapshot (only volumes in the selected zone are shown) |
- Click Create.
The snapshot transitions through Pending → Ready. Once Ready, it can be used.
Snapshot states
A snapshot moves through five states (ResourceBlockStorageSnapshotStatusEnum):
| State | Meaning |
|---|---|
| Pending | Queued (before the Ceph RBD is created) |
| Allocated | The storage agent picked up the job and is creating the snapshot RBD |
| Ready | Snapshot RBD created and usable |
| Deleting | Deletion in progress |
| Deleted | Deletion 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.
- Under Block Storage > Block Storage, click Create Block Storage.
- Set the disk type to Snapshot.
- Pick the snapshot to restore in the Snapshot ID field.
- 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 snapshot's detail page lists every volume restored from it under Block storages created from snapshot.
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
On the snapshot detail page:
- General info: name, size, zone, source volume, creation date
- Block storages created from snapshot: list of volumes restored from this snapshot
Deleting a snapshot
In Storage > Snapshots (list or detail page):
- Choose Delete from the target snapshot's menu.
- Confirm in the dialog.
After deletion, you can no longer create new volumes from that point in time. Volumes that were already created from the snapshot are unaffected.
To save cost, regularly delete old snapshots you no longer need. For automatic cleanup, use the retention policy in the Snapshot scheduler.
Next steps
- Snapshot scheduler: automatic backups with a retention policy
- Block storage: creating, attaching, and resizing disks