Creating and scheduling online backups of Cloud Pak for Data with IBM Storage Fusion
Create and schedule online backups of a Cloud Pak for Data deployment with IBM Storage Fusion.
Before you begin
Ensure that all backup prerequisite tasks are done.
If your Cloud Pak for Data deployment was upgraded from version 4.5.x or 4.6.x to 4.8.0 or later, and you used the IBM Storage Fusion 2.5.2 Backup & Restore (Legacy) service to create and schedule backups, stop the backup schedules and unassign the backup policies in the Backup & Restore (Legacy) service in IBM Storage Fusion Version 2.6.1 or later fixes. These backups are not supported by the Backup & Restore service in IBM Storage Fusion 2.6.x or later.
- Cloud Pak for Data operators
- Cloud Pak for Data instances
- IBM Storage Fusion project
- IBM Spectrum® Protect Plus catalog
After you have removed the backup schedules, uninstall the Backup & Restore (Legacy) service.
Do the following steps:
- In IBM Storage Fusion, click Applications and go to the Cloud Pak for Data operators application.
- In the Backups tab, under Backup policy, remove the policy by clicking and then clicking Remove.
- Repeat the previous step to unassign the policies for the Cloud Pak for Data instance and IBM Storage Fusion project applications.
- Validate that these policies were removed by running the following
commands:
export PROJECT_FUSION=<fusion-namespace>
The following output appears when all policies are removed:oc get policyassignments.data-protection.isf.ibm.com -n ${PROJECT_FUSION}
No resources found in ${PROJECT_FUSION} namespace.
- In IBM Spectrum Protect Plus, retrieve the
spp-connection
secret to find the IBM Spectrum Protect Plus URL and user interface
credentials:
oc extract secret/spp-connection --to=- -n ${PROJECT_FUSION}
- Log in to IBM Spectrum Protect Plus.
- Go to .
- To unassign the policy from the catalog backup, under SLA Policy, clear
the check box of the policy that is currently selected, and click
Save.
When no policy is associated with the catalog backup, under SLA Policy Status, the message No entries found. appears.
- Uninstall the Backup & Restore (Legacy) service.
For details, see the topic Uninstalling Backup & Restore (Legacy) in the IBM Storage Fusion documentation.
Important: You must uninstall the Backup & Restore (Legacy) service before you create backups with the Backup & Restore service. If both services are installed in the cluster, the cluster will have two OADP and Velero deployments, which will cause the Cloud Pak for Data backup precheck process to fail.
About this task
- The minimum deployment profile of IBM Cloud Pak foundational services is
Small
.For more information about sizing IBM Cloud Pak foundational services, see Hardware requirements and recommendations for foundational services.
- All services are installed at the same Cloud Pak for Data release.
You cannot back up and restore a deployment that is running service versions from different Cloud Pak for Data releases.
- The Cloud Pak for Data control plane is installed in a single project (namespace).
- The Cloud Pak for Data instance is installed in zero or more tethered projects.
- Cloud Pak for Data operators and the Cloud Pak for Data instance are in a good state. For more information, see Best practices for monitoring Cloud Pak for Data.
Only the IBM Storage Fusion Backup & Restore service is supported. You cannot use the Backup & Restore (Legacy) service.
You must be a cluster administrator or a similar role to create backups.
Procedure
Create IBM Storage Fusion backup and restore resources on the hub:
Back up Cloud Pak for Data applications
Monitoring backup jobs
What to do next
- Get the Cloud Pak for Data instance (tenant)
pod:
CPD_TENANT_POD=`oc get po -n ${PROJECT_CPD_INST_OPERATORS} -l component=cpdbr-tenant,icpdsupport/addOnId=cpdbr,icpdsupport/app=br-service | grep cpdbr-tenant-service | awk '{print $1}'` echo "cpd tenant pod: $CPD_TENANT_POD"
- Run backup
post-hooks:
oc exec -it -n ${PROJECT_CPD_INST_OPERATORS} $CPD_TENANT_POD -- /cpdbr-scripts/cpdbr/checkpoint_backup_posthooks.sh --tenant-operator-namespace=${PROJECT_CPD_INST_OPERATORS}
If you have services that connect to an external database, such as for business intelligence (BI) reporting, it is recommended that you also back up the database. Backing up the external database ensures data consistency if the Cloud Pak for Data backup is later restored. For example, you need to restore an older Cloud Pak for Data backup instead of the most recent backup. The external database is synchronized with the most recent Cloud Pak for Data backup, so it has data that is not in the backup that you want to restore. To maintain data consistency, you need to restore the external database backup that was taken at the same time as the Cloud Pak for Data backup.