Restoring a Cloud Pak for Data online backup on the target cluster with NetApp Astra Control Center

This information shows you how to restore a Cloud Pak for Data online backup to the target cluster with NetApp Astra Control Center.

Before you begin

If you previously tried to restore a backup unsuccessfully, delete all Cloud Pak for Data resources and projects (namespaces) before you attempt another restore. For details, see Restoring an online backup prerequisite tasks (NetApp Astra Control Center).

About this task

You cannot restore a backup to a different project of the Cloud Pak for Data instance.

Best practice: You can run the commands in this task exactly as written if you set up environment variables. For instructions, see Setting up installation environment variables.

Ensure that you source the environment variables before you run the commands in this task.

Procedure

  1. In NetApp Astra Control Center, select Applications.
  2. Select the ${PROJECT_CPD_INST_OPERATORS}-tenant application.
  3. From the Options menu in the Actions column for the application, select Restore.
  4. Select Restore new namespaces.
  5. Specify a name for the restored application.
  6. Choose the target cluster for the restore.
  7. Enter the ${PROJECT_CPD_INST_OPERATORS}-tenant source cluster project names (${PROJECT_CPD_INST_OPERATORS}, ${PROJECT_CPD_INST_OPERANDS}, and any tethered projects) as destination namespaces.
  8. Select Next.
  9. Select the application backup to restore from.
  10. Select Next.
  11. Choose Restore using original storage classes.
  12. Select Next.
  13. Select Restore all resources.
  14. Select Next.
  15. Select Restore.
  16. Add elasticsearch_backups_persistence_size to the Common core services custom resource.
    1. Log in to Red Hat® OpenShift® Container Platform as a cluster administrator.
      ${OC_LOGIN}
      Remember: OC_LOGIN is an alias for the oc login command.
    2. Get the size of the elastic-master-backups PVC.
      oc get pvc -n ${PROJECT_CPD_INST_OPERANDS} elasticsearch-master-backups -o yaml
      Under status.capacity.storage, note the size of the PVC.
    3. Edit the Common core services custom resource:
      oc edit -n ${PROJECT_CPD_INST_OPERANDS} ccs ccs-cr
    4. Add the following line after spec, specifying the size noted in step 15b:
      elasticsearch_backups_persistence_size: "<size>"
      For example, 30Gi.

Results

NetApp Astra Control Center does the following actions:

  1. Restores the ${PROJECT_CPD_INST_OPERATORS}-tenant application Persistent Volumes, PVCs, and cpdbr resources.
  2. Invokes post-restore execution hook.

    ${PROJECT_CPD_INST_OPERATORS}-tenant application resources are restored via OADP.