Creating Cloud Pak for Data volume snapshots
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.8 reaches end of support. For more information, see Upgrading from IBM Cloud Pak for Data Version 4.8 to IBM Software Hub Version 5.1.
If you are using Portworx storage, you can back up all persistent volumes (PVs) in your IBM Cloud Pak for Data deployment by creating volume snapshots with the Cloud Pak for Data volume backup and restore utility.
Before you begin
To create snapshots, the cpd-cli backup-restore command-line interface requires a cluster administrator or similar role that is able to create, read, write, and delete Stork CRDs and other Kubernetes resources, such as deployments, StatefulSets, cronjobs, jobs, replicasets, configmaps, secrets, pods, namespaces, persistent volume claims (PVCs), and PVs.
To run snapshot-related commands, your cluster must also meet the following requirements:
- The minimum version of Portworx that Cloud Pak for Data supports. For more information, see Storage considerations.
To check the Portworx version, run the following commands:
PX_POD=$(oc get pods -l name=portworx -n kube-system -o jsonpath='{.items[0].metadata.name}') oc exec -it $PX_POD -n kube-system -- /opt/pwx/bin/pxctl --version - Stork 2.3.3 or later.
To check the Stork version, run the following commands:
STORK_POD=$(oc get pods -n kube-system -l name=stork -o jsonpath='{.items[0].metadata.name}') oc exec -it $STORK_POD -n kube-system -- /storkctl/linux/storkctl version
About this task
The cpd-cli backup-restore command-line interface creates a snapshot of the Portworx PVCs in your system at a particular moment in time. The interface backs up and restores volume data in the same project and installation, and assumes that Kubernetes objects are still in place.
Ensure that you source the environment variables before you run the commands in this task.
For more information about the Cloud Pak for Data volume backup and restore utility, including a list of commands that you can run, see the cpd-cli backup-restore reference documentation.