Chapter 13. Backing up storage data
13.1. Backing up storage data from Amazon EBS
Red Hat recommends that you back up the data on your persistent volume claims (PVCs) regularly. Backing up your data is particularly important before deleting a user and before uninstalling OpenShift Data Science, as all PVCs are deleted when OpenShift Data Science is uninstalled.
Prerequisites
- You have credentials for OpenShift Cluster Manager (https://console.redhat.com/openshift/).
- You have administrator access to the OpenShift Dedicated cluster.
- You have credentials for the Amazon Web Services (AWS) account that the OpenShift Dedicated cluster is deployed under.
Procedure
Determine the IDs of the persistent volumes (PVs) that you want to back up.
- In the OpenShift Dedicated web console, change into the Administrator perspective.
-
Click Home
Projects. Click the rhods-notebooks project.
The Details page for the project opens.
Click the PersistentVolumeClaims in the Inventory section.
The PersistentVolumeClaims page opens.
Note the ID of the persistent volume (PV) that you want to back up.
NoteThe persistent volumes (PV) that you make a note of are required to identify the correct EBS volume to back up in your AWS instance.
Locate the EBS volume containing the PVs that you want to back up.
See Amazon Web Services documentation: Create Amazon EBS snapshots for more information.
- Log in to AWS (https://aws.amazon.com) and ensure that you are viewing the region that your OpenShift Dedicated cluster is deployed in.
- Click Services.
-
Click Compute
EC2. Click Elastic Block Storage
Volumes in the side navigation. The Volumes page opens.
In the search bar, enter the ID of the persistent volume (PV) that you made a note of earlier.
The Volumes page reloads to display the search results.
-
Click on the volume shown and verify that any
kubernetes.io/created-for/pvc/namespace
tags contain the valuerhods-notebooks
, and anykubernetes.io/created-for/pvc/name
tags match the name of the persistent volume that the EC2 volume is being used for, for example,jupyter-nb-user1-pvc
.
Back up the EBS volume that contains your persistent volume (PV).
Right-click on the volume that you want to back up and select Create Snapshot from the list.
The Create Snapshot page opens.
- Enter a Description for the volume.
Click Create Snapshot.
The snapshot of the volume is created.
- Click Close.
Verification
- The snapshot that you created is visible on the Snapshots page in AWS.
Additional resources
13.2. Backing up storage data from Google Persistent Disk
Red Hat recommends that you back up the data on your persistent volume claims (PVCs) regularly. Backing up your data is particularly important before deleting a user and before uninstalling OpenShift Data Science, as all PVCs are deleted when OpenShift Data Science is uninstalled.
Prerequisites
- You have credentials for OpenShift Cluster Manager (https://console.redhat.com/openshift/).
- You have administrator access to the OpenShift Dedicated cluster.
- You have credentials for the Google Cloud Platform (GCP) account that the OpenShift Dedicated cluster is deployed under.
Procedure
Determine the IDs of the persistent volumes (PVs) that you want to back up.
- In the OpenShift Dedicated web console, change into the Administrator perspective.
-
Click Home
Projects. Click the rhods-notebooks project.
The Details page for the project opens.
Click the PersistentVolumeClaims in the Inventory section.
The PersistentVolumeClaims page opens.
Note the ID of the persistent volume (PV) that you want to back up.
The persistent volume (PV) IDs are required to identify the correct persistent disk to back up in your GCP instance.
Locate the persistent disk containing the PVs that you want to back up.
- Log in to the Google Cloud console (https://console.cloud.google.com) and ensure that you are viewing the region that your OpenShift Dedicated cluster is deployed in.
- Click the navigation menu (≡) and then click Compute Engine.
From the side navigation, under Storage, click Disks.
The Disks page opens.
In the Filter query box, enter the ID of the persistent volume (PV) that you made a note of earlier.
The Disks page reloads to display the search results.
-
Click on the disk shown and verify that any
kubernetes.io/created-for/pvc/namespace
tags contain the valuerhods-notebooks
, and anykubernetes.io/created-for/pvc/name
tags match the name of the persistent volume that the persistent disk is being used for, for example,jupyterhub-nb-user1-pvc
.
Back up the persistent disk that contains your persistent volume (PV).
Select CREATE SNAPSHOT from the top navigation.
The Create a snapshot page opens.
- Enter a unique Name for the snapshot.
- Under Source disk, verify the persistent disk you want to back up is displayed.
- Change any optional settings as needed.
Click CREATE.
The snapshot of the persistent disk is created.
Verification
- The snapshot that you created is visible on the Snapshots page in GCP.
Additional resources