Restoring volume snapshots

When you restore a volume snapshot, a new Persistent Volume Claim (PVC) gets created. The restored PVC is independent of the volume snapshot and the parent PVC.

A volume snapshot can be restored either the Persistent Volume Claim page or the Volume Snapshots page.

Restoring volume snapshots from the Persistent Volume Claims page

Important: You can restore volume snapshot from the Persistent Volume Claims page only if the parent PVC is present.
  1. From the OpenShift Web Console go to Storage > Persistent Volume Claims.
  2. Click on the PVC name with the volume snapshot to restore a volume snapshot as a new PVC.
  3. In the Volume Snapshots tab, next to the volume snapshot you want to restore, click Action Menu > Restore as new PVC.
  4. Enter a name for the new PVC.
  5. Select the Storage Class name.
    Note: For RADOS Block Device (RBD), you must select a storage class with the same pool as that of the parent PVC. Restoring the snapshot of an encrypted PVC using a storage class where encryption is not enabled and vice versa is not supported.
  6. Select the Access Mode of your choice.
  7. For RBD, select Volume mode.
  8. Click Restore.

    You are redirected to the new PVC details page.

Restoring volume snapshots from the Volume Snapshots page

  1. From the OpenShift Web Console go to Storage > Volume Snapshots.
  2. In the Volume Snapshots tab, next to the volume snapshot you want to restore, click Action Menu > Restore as new PVC.
  3. Enter a name for the new PVC.
  4. Select the Storage Class name.
    Note: For RADOS Block Device (RBD), you must select a storage class with the same pool as that of the parent PVC. Restoring the snapshot of an encrypted PVC using a storage class where encryption is not enabled and vice versa is not supported.
  5. Select the Access Mode of your choice.
  6. For RBD, select Volume mode.
  7. Click Restore.

    You are redirected to the new PVC details page.

Verifying volume snapshot restoration

  • From the OpenShift Web Console go to Storage > Persistent Volume Claims. Verify that the new PVC is listed in the Persistent Volume Claims page.
  • Wait for the PVC to be in a Bound state.