Roll back snapshots
Learn how to rollback a block device snapshot.
Note: Rolling back an image to a snapshot means overwriting the current version of the image with
data from a snapshot. The time it takes to run a rollback increases with the size of the image. It
is faster to clone from a snapshot than to rollback an image to a snapshot, and it is
the preferred method of returning to a pre-existing state.
Prerequisites
-
A running IBM Storage Ceph cluster.
-
Root-level access to the node.
Procedure
-
Specify the
snap rollbackoption, the pool name, the image name and the snap name:Syntax
rbd --pool POOL_NAME snap rollback --snap SNAP_NAME IMAGE_NAME rbd snap rollback POOL_NAME/IMAGE_NAME@SNAP_NAMEExample
[root@rbd-client ~]# rbd --pool pool1 snap rollback --snap snap1 image1 [root@rbd-client ~]# rbd snap rollback pool1/image1@snap1