Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The restoration of a volume snapshot can also be done in-place, or by creating a new volume. Irrespective of the method, one can restore a volume snapshot with To restore an existing volume from a snapshot, one needs to use the command

Code Block
openstack volume backup restore [--force] <snapshot> <volume>

where:

...

revert <snapshot>

where: <snapshot> : name or id of the snapshot to restore

...

In the case of an . Since in-place restoration replaces an existing volume, it is recommended necessary to detach the volume from the instance first and reattach it after the restoration. One can detach a volume from an instance with

Code Block
openstack server remove volume <server> <volume>

with <server> and <volume> the name or id of the instance or volume, respectively. And it can be reattached after restoration , but that restriction can be bypassed with the optional flag --force with

Code Block
openstack server add volume <server> <volume>

To restore a volume snapshot to a new volume, a new volume must be created, with the snapshot as the source. This can be done with the command

Code Block
openstack volume create --snapshot <snapshot> <name>

with <snapshot> the name or id of the snapshot to restore, and <name> the name of the new volume.

Restoration of Volume Backups
Anchor
RestoreVolumeBackups
RestoreVolumeBackups

...

  • --force : optional argument to force a restoration of an existing volume without detaching it first.
  • <snapshot> : name or id of the backup to restore
  • <volume> : name or id of the existing volume to replace, or the name of a new volume to create

In the case of an in-place restoration, it is recommended necessary to detach the volume first and reattach it after the restoration, but that restriction can be bypassed with the optional flag --force . Detaching and reattaching the volume to an instance can be done in the same way as for Volume Snapshots.

...