IBM Software Hub online backup and restore to the same cluster with the OADP utility
A Red Hat® OpenShift® Container Platform cluster administrator can create an online backup and restore it to the same cluster with the IBM Software Hub OADP utility.
Before you begin
Do the following tasks before you back up and restore a IBM Software Hub deployment.
- Check whether the services that you are using support platform backup and
restore by reviewing Services that support backup and restore. You can also run the following
command:
cpd-cli oadp service-registry check \ --tenant-operator-namespace ${PROJECT_CPD_INST_OPERATORS} \ --verbose \ --log-level debug
If a service is not supported, check if one of the following alternatives is available:
- A service might have its own backup and restore process. In such cases, see the links that are provided in the Notes column in Services that support backup and restore.
- You might be able to migrate service data from one IBM Software Hub installation and to another IBM Software Hub installation with the data export and import utility. Review Services that support cpd-cli export-import.
- Install the software that is needed to back up and restore IBM Software Hub with the OADP utility.
For more information, see Installing backup and restore software.
- Check that your IBM Software Hub deployment meets the following requirements:
- 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 IBM Software Hub release.
You cannot back up and restore a deployment that is running service versions from different IBM Software Hub releases.
- The control plane is installed in a single project (namespace).
- The IBM Software Hub instance is installed in zero or more tethered projects.
- IBM Software Hub operators and the IBM Software Hub instance are in a good state.
- The minimum deployment profile of IBM Cloud Pak foundational services is
Overview
When an online backup is taken, Kubernetes resources are stored in object storage, and Container Storage Interface (CSI) volume snapshots of the data are stored locally on the cluster. As a result, the OADP backup and restore utility can restore online backups only to the same cluster.
- Preparing to back up IBM Software Hub
- Creating an online backup
- Cleaning up the cluster before restoring IBM Software Hub
- Restoring IBM Software Hub
- Completing post-restore tasks
1. Preparing to back up IBM Software Hub
Complete the following prerequisite tasks before you create an online backup. Some tasks are service-specific, and need to be done only when those services are installed.
1.1 Creating environment variables
Create the following environment variables so that you can copy commands from the documentation and run them without making any changes.
Environment variable | Description |
---|---|
OC_LOGIN |
Shortcut for the oc login command. |
CPDM_OC_LOGIN |
Shortcut for the cpd-cli manage login-to-ocp command. |
PROJECT_CPD_INST_OPERATORS |
The project (namespace) where the IBM Software Hub instance operators are installed. |
PROJECT_CPD_INST_OPERANDS |
The project where IBM Software Hub control plane and services are installed. |
PROJECT_SCHEDULING_SERVICE |
The project where the scheduling service is installed. This environment variable is needed only when the scheduling service is installed. |
PROJECT_CPD_INSTANCE_TETHERED_LIST |
The list of tethered projects. This environment variable is needed only when some services are installed in tethered projects. |
PROJECT_CPD_INSTANCE_TETHERED |
The tethered project where a service is installed. This environment variable is needed only when a service is installed in a tethered project. |
PRIVATE_REGISTRY_LOCATION |
If your cluster is in a restricted network, the private container registry where the
ubi-minimal image is mirrored. Tip: The
ubi-minimal image is needed to run backup and restore commands.
|
OADP_PROJECT |
The project where the OADP operator is installed. |
TENANT_BACKUP_NAME |
The name that you want to use for the backup. |
PROJECT_IBM_APP_CONNECT |
The project where App Connect is installed. This environment variable is needed only when watsonx™ Orchestrate is installed. |
APP_CONNECT_BACKUP_NAME |
The name that you want to use for the backup of App Connect. This environment variable is needed only when watsonx Orchestrate is installed. |
1.2 Checking the version of OADP utility components
- Check that the OADP operator version is
1.4.x:
oc get csv -A | grep "OADP Operator"
- Check that the cpd-cli oadp version is
5.1.0:
cpd-cli oadp version
1.3 Optional: Estimating how much storage to allocate for backups
You can estimate the amount of storage that you need to allocate for backups.
To use this feature, you must install the cpdbr-agent
in the Red Hat
OpenShift cluster. The cpdbr-agent
deploys the node agents to the cluster. The node agents must be run in privileged mode.
- Log in to Red Hat
OpenShift Container Platform as a cluster
administrator:
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - Install the
cpdbr-agent
by running the following command:cpd-cli oadp install --component=cpdbr-agent --namespace=${OADP_PROJECT} --cpd-namespace=${PROJECT_CPD_INST_OPERANDS}
- Export the following environment
variable:
export CPDBR_ENABLE_FEATURES=volume-util
- Estimate how much storage you need to allocate to a backup by running the following
command:
cpd-cli oadp du-pv
1.4 Removing MongoDB-related ConfigMaps
oc delete cm zen-cs-aux-br-cm
oc delete cm zen-cs-aux-ckpt-cm
oc delete cm zen-cs-aux-qu-cm
oc delete cm zen-cs2-aux-ckpt-cm
1.5 Checking the primary instance of every PostgreSQL cluster is in sync with its replicas
The replicas for Cloud Native PostgreSQL and EDB Postgres clusters occasionally get out of sync with the primary node. To check whether this problem exists and to fix the problem, see the troubleshooting topic PostgreSQL cluster replicas get out of sync.
1.6 Updating the Common core services ConfigMap
5.1.0 You might need to update the cpd-ccs-maint-aux-ckpt-cm ConfigMap before you create a backup. Do the following steps:
- Check if any common core services download images
pod is in a
Running
state:oc get po -l icpdsupport/addOnId=ccs,icpdsupport/module=ccs-common,app=download-images -n ${PROJECT_CPD_INST_OPERANDS}
- If the output of the command shows one or more pods in a
Running
state, edit themanaged-resources
section in the cpd-ccs-maint-aux-ckpt-cm ConfigMap to ignore the pod:aux-meta: managed-resources: - resource-kind: pod labels: icpdsupport/addOnId=ccs,icpdsupport/module=ccs-common,app=download-images
1.7 Preparing IBM Knowledge Catalog
If large metadata enrichment jobs are running while an online backup operation is triggered, the Db2 pre-backup hooks might fail because the database cannot be put into a write-suspended state. It is recommended to have minimal enrichment workload while the online backup is scheduled.
1.8 Labeling the IBM Match 360 ConfigMap
mdm
label. Do the following steps:- Get the ID of the IBM
Match 360 instance:
- From the IBM Software Hub home page, go to .
- Click the link for the IBM Match 360 instance.
- Copy the value after mdm- in the URL.
For example, if the end of the URL is
mdm-1234567891123456
, the instance ID is1234567891123456
.
- Create the following environment
variable:
export INSTANCE_ID=<instance-id>
- Add the
mdm
label by running the following command:oc label cm mdm-operator-${INSTANCE_ID} icpdsupport/addOnId=mdm -n ${PROJECT_CPD_INST_OPERANDS}
1.9 Checking the status of installed services
Completed
. Do the following steps:-
Log the
cpd-cli
in to the Red Hat OpenShift Container Platform cluster:${CPDM_OC_LOGIN}
Remember:CPDM_OC_LOGIN
is an alias for thecpd-cli manage login-to-ocp
command. - Run the following command to get the status of all
services.
cpd-cli manage get-cr-status \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}
2. Creating an online backup
Create an online backup of a IBM Software Hub deployment by doing the following tasks.
2.1 Setting the mode in which to create backups
You can run the IBM Software Hub OADP backup and restore utility in Kubernetes mode or in REST mode.
By default, the IBM Software Hub OADP backup and restore utility runs in Kubernetes mode. In this mode, you must log in to your Red Hat OpenShift cluster and you must have Kubernetes cluster administrator privileges to use the utility.
If you installed the IBM Software Hub OADP backup REST service, you can run the utility in REST mode to create backups. In REST mode, the utility runs as a REST client that communicates to a REST server. The REST service is configured to work with a specific IBM Software Hub instance. You do not have to log in to the cluster, and IBM Software Hub users with the Administrator role can run backup and checkpoint commands on their own IBM Software Hub instances, based on the specified control plane and any tethered projects.
Running the utility in REST mode is useful when you are generally creating backups only, or when backups take a long time to complete. For backups that take a long time to complete, running the utility in REST mode avoids the problem of the Red Hat OpenShift user session token expiring before the backup process completes. If the session token expires, you must log back in to the cluster and reset the utility.
- Log in to Red Hat
OpenShift Container Platform as a cluster
administrator:
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - To create backups in REST mode, run the following
command:
cpd-cli oadp client config set runtime-mode=rest-client
- To change the IBM Software Hub
OADP backup and restore utility back to the
Kubernetes mode, run the following
command:
cpd-cli oadp client config set runtime-mode=
Related topic: Unable to run an online backup or restore operation
2.2 Backing up the scheduling service
If the IBM Software Hub scheduling service is installed, create a backup of the service.
Backups that are created in IBM Cloud Pak for Data 5.0 cannot be restored in IBM Software Hub 5.1.0. You must take new backups in 5.1.0.
Check the Known issues and limitations for IBM Software Hub page for any workarounds that you might need to do before you create a backup.
- If you are running the backup and restore utility in Kubernetes mode, log in to Red Hat
OpenShift Container Platform as a cluster
administrator:
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - Configure the OADP client to set the IBM Software Hub project to the scheduling service
project:
cpd-cli oadp client config set cpd-namespace=${PROJECT_SCHEDULING_SERVICE}
- Configure the OADP client to set the OADP project to the project where the OADP operator is
installed:
cpd-cli oadp client config set namespace=${OADP_PROJECT}
- Run service backup
prechecks:
- IBM Software Hub 5.1.0
-
cpd-cli oadp backup precheck \ --include-namespaces=${PROJECT_SCHEDULING_SERVICE} \ --exclude-checks ValidVolumeSnapshotClass \ --hook-kind=checkpoint \ --log-level=debug \ --verbose
- IBM Software Hub 5.1.1 and later
-
cpd-cli oadp backup precheck \ --backup-type singleton \ --include-namespaces=${PROJECT_SCHEDULING_SERVICE} \ --exclude-checks ValidVolumeSnapshotClass \ --hook-kind=checkpoint \ --log-level=debug \ --verbose
- Back up the IBM Software Hub scheduling service:
- IBM Software Hub 5.1.0
-
cpd-cli oadp backup create ${PROJECT_SCHEDULING_SERVICE}-online \ --include-namespaces=${PROJECT_SCHEDULING_SERVICE} \ --include-resources='operatorgroups,configmaps,catalogsources.operators.coreos.com,subscriptions.operators.coreos.com,customresourcedefinitions.apiextensions.k8s.io,scheduling.scheduler.spectrumcomputing.ibm.com' \ --prehooks=false \ --posthooks=false \ --with-checkpoint \ --log-level=debug \ --verbose \ --hook-kind=checkpoint \ --selector 'icpdsupport/ignore-on-nd-backup notin (true)'
- IBM Software Hub 5.1.1 and later
-
cpd-cli oadp backup create ${PROJECT_SCHEDULING_SERVICE}-online \ --backup-type singleton \ --include-namespaces=${PROJECT_SCHEDULING_SERVICE} \ --include-resources='operatorgroups,configmaps,catalogsources.operators.coreos.com,subscriptions.operators.coreos.com,customresourcedefinitions.apiextensions.k8s.io,scheduling.scheduler.spectrumcomputing.ibm.com' \ --prehooks=false \ --posthooks=false \ --with-checkpoint \ --log-level=debug \ --verbose \ --hook-kind=checkpoint \ --selector 'icpdsupport/ignore-on-nd-backup notin (true)'
- Validate the backup:
- IBM Software Hub 5.1.0
-
cpd-cli oadp backup validate \ --include-namespaces=${PROJECT_SCHEDULING_SERVICE} \ --backup-names ${PROJECT_SCHEDULING_SERVICE}-online \ --log-level trace \ --verbose \ --hook-kind checkpoint
- IBM Software Hub 5.1.1 and later
-
cpd-cli oadp backup validate \ --backup-type singleton \ --include-namespaces=${PROJECT_SCHEDULING_SERVICE} \ --backup-names ${PROJECT_SCHEDULING_SERVICE}-online \ --log-level trace \ --verbose \ --hook-kind checkpoint
2.3 Backing up an IBM Software Hub instance
Create an online backup of each IBM Software Hub instance, or tenant, in your environment by doing the following steps.
-
If the IBM Knowledge Catalog service is installed, and a lineage data import job is running at the same time as you are creating a backup, the job might fail. In this case, rerun the job.
-
If service-related custom resources are manually placed into maintenance mode prior to creating an online backup, those custom resources will remain in the same state if the backup is restored. Taking these services out of maintenance mode must be done manually after the restore.
- The storage provider that you use to store backups might limit the number of snapshots that you can take per volume. For more information, consult your storage provider documentation.
- For s390x clusters (IBM Z and LinuxONE), you must run the backup and restore commands from an x86_64 workstation.
- This section shows you how to create a backup by using the IBM Software Hub 5.1.0 command. You can still create a backup by using the IBM Cloud Pak for Data 5.0 backup commands instead. For details, see Creating an online backup with the IBM Cloud Pak for Data OADP backup and restore utility in the IBM Cloud Pak for Data 5.0 documentation.
Check the Known issues and limitations for IBM Software Hub page for any workarounds that you might need to do before you create a backup.
- If you are running the backup and restore utility in Kubernetes mode, log in to Red Hat
OpenShift Container Platform as a cluster
administrator:
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - 5.1.0
Ensure that the expected
EDB Postgres replica PVCs are included in
the
backup:
oc label pvc,pods -l k8s.enterprisedb.io/cluster,velero.io/exclude-from-backup=true velero.io/exclude-from-backup- -n ${PROJECT_CPD_INST_OPERANDS}
- Create a
backup:
cpd-cli oadp tenant-backup create ${TENANT_BACKUP_NAME} \ --tenant-operator-namespace ${PROJECT_CPD_INST_OPERATORS} \ --log-level=debug \ --verbose
- 5.1.0-5.1.2If watsonx Orchestrate is installed, back up App Connect resources.
- Download the backup-script.zip file that is needed to back up App Connect.
For details on downloading and extracting the contents of this file, see Backing up and restoring your IBM App Connect resources and persistent volumes on Red Hat OpenShift.
- Open the backup-script.sh file in an editor.
- Change
spec.storageLocation
to the object storage where you are storing your IBM Software Hub backups. - If you logged out of the Red Hat OpenShift Container Platform, log back in as a cluster administrator.
- Run the following command, specifying a name for the
backup:
./backup-script.sh ${PROJECT_IBM_APP_CONNECT} ${APP_CONNECT_BACKUP_NAME}
- Download the backup-script.zip file that is needed to back up App Connect.
- Confirm that the tenant backup was created and has a
Completed
status:cpd-cli oadp tenant-backup list
- To view the detailed status of the backup, run the following
command:
cpd-cli oadp tenant-backup status ${TENANT_BACKUP_NAME} \ --details
The command shows the following sub-backups:Backup Description cpd-tenant-xxx Backup that contains Kubernetes resources. cpd-tenant-vol-yyy Backup that contains volume data. Tip: If you need more information, listed in the status details are sub-backups (of typegroup
). You can view more information about these sub-backups by running the following command:cpd-cli oadp backup status <SUB_BACKUP_NAME> \ --details
- To view logs of the tenant backup and all sub-backups, run the
following
command:
cpd-cli oadp tenant-backup log ${TENANT_BACKUP_NAME}
3. Cleaning up the cluster before a restore
Before you can restore a IBM Software Hub deployment to the same cluster, you must delete the existing IBM Software Hub instance projects.
Resources in the IBM Software Hub instance are watched and managed by operators and controllers that run in other projects. To prevent corruption or out of sync operators and resources when you delete a IBM Software Hub instance, Kubernetes resources that have finalizers specified in metadata must be located, and those finalizers must be deleted before you can delete the IBM Software Hub instance.
-
Log in to Red Hat OpenShift Container Platform as an instance administrator.
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - Download the cpd-pre-restore-cleanup.sh script from https://github.com/IBM/cpd-cli/tree/master/cpdops/files.
- If the tenant operator project exists and has the
common-service
NamespaceScope
custom resource that identifies all the tenant projects, run the following command:./cpd-pre-restore-cleanup.sh --tenant-operator-namespace="${PROJECT_CPD_INST_OPERATORS}"
- If the tenant operator project does not exist or specific IBM Software Hub projects need to be deleted, run the
following command.
If the common-service
NamespaceScope
custom resource is not available and additional projects, such as tethered projects, need to be deleted, modify the list of comma-separated projects in the--additional-namespaces
option as necessary../cpd-pre-restore-cleanup.sh --additional-namespaces="${PROJECT_CPD_INST_OPERATORS},${PROJECT_CPD_INST_OPERANDS}"
4. Restoring IBM Software Hub to the same cluster
Restore an online backup of a IBM Software Hub deployment to the same cluster by doing the following tasks.
4.1 Optional: Restoring the scheduling service
If the IBM Software Hub scheduling service is installed on the cluster, you can restore it if you are experiencing problems with the service.
Check the Known issues and limitations for IBM Software Hub page for any workarounds that you might need to do before you restore a backup.
- Log in to Red Hat
OpenShift Container Platform as a cluster
administrator:
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - Configure the OADP client to set the IBM Software Hub project to the scheduling service
project:
cpd-cli oadp client config set cpd-namespace=${PROJECT_SCHEDULING_SERVICE}
- Restore an online
backup:
cpd-cli oadp restore create ${PROJECT_SCHEDULING_SERVICE}-{restore} \ --from-backup=${PROJECT_SCHEDULING_SERVICE}-online \ --include-resources='operatorgroups,configmaps,catalogsources.operators.coreos.com,subscriptions.operators.coreos.com,customresourcedefinitions.apiextensions.k8s.io,scheduling.scheduler.spectrumcomputing.ibm.com' \ --include-cluster-resources=true \ --skip-hooks \ --log-level=debug \ --verbose
4.2 Restoring an IBM Software Hub instance
Restore an IBM Software Hub instance by doing the following steps.
-
Check the Known issues and limitations for IBM Software Hub page for any workarounds that you might need to do before you restore a backup.
-
You cannot restore a backup to a different project of the IBM Software Hub instance.
-
If service-related custom resources are manually placed into maintenance mode prior to creating an online backup, those custom resources will remain in the same state if the backup is restored. Taking these services out of maintenance mode must be done manually after the restore.
- For s390x clusters (IBM Z and LinuxONE), you must run the backup and restore commands from an x86_64 workstation
-
If running a restore command produces a
Failed
orPartiallyFailed
error, you must clean up the IBM Software Hub instance and restart the restore process.
- Log in to Red Hat
OpenShift Container Platform as a cluster
administrator:
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - 5.1.0-5.1.2If watsonx Orchestrate is installed, restore App Connect resources.
- Log in to Red Hat
OpenShift Container Platform as an instance
administrator.
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - Download the restore-script.zip file that is needed to restore App Connect.
For details on downloading and extracting the contents of this file, see Backing up and restoring your IBM App Connect resources and persistent volumes on Red Hat OpenShift.
- Extract the restore-script.sh file.
- Restore App Connect
resources:
./restore-script.sh <appconnect_backup_name>
- Log in to Red Hat
OpenShift Container Platform as an instance
administrator.
- Restore IBM Software Hub:
cpd-cli oadp tenant-restore create ${TENANT_BACKUP_NAME}-restore \ --from-tenant-backup ${TENANT_BACKUP_NAME} \ --verbose \ --log-level=debug &> ${TENANT_BACKUP_NAME}-restore.log&
- Get the status of the installed components:
-
Log the
cpd-cli
in to the Red Hat OpenShift Container Platform cluster:${CPDM_OC_LOGIN}
Remember:CPDM_OC_LOGIN
is an alias for thecpd-cli manage login-to-ocp
command. - Run the appropriate command for your environment:
- Installations with tethered projects
-
cpd-cli manage get-cr-status \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --tethered_instance_ns=${PROJECT_CPD_INSTANCE_TETHERED_LIST}
- Installations without tethered projects
-
cpd-cli manage get-cr-status \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}
- Ensure that the status of all of the services is
Completed
orSucceeded
.
-
- To view a list of restores, run the following
command:
cpd-cli oadp tenant-restore list
- To view the detailed status of the restore, run the following
command:
cpd-cli oadp tenant-restore status ${TENANT_BACKUP_NAME}-restore \ --details
The command shows a varying number of sub-restores in the following form:cpd-tenant-r-xxx
Tip: If you need more information, listed in the status details are sub-restores (of typegroup
). You can view more information about these sub-restores by running the following command:cpd-cli oadp restore status <SUB_RESTORE_NAME> \ --details
- To view logs of the tenant restore, run the following
command:
cpd-cli oadp tenant-restore log ${TENANT_BACKUP_NAME}-restore
5. Completing post-restore tasks
Complete additional tasks for the control plane and for some services after you restore a IBM Software Hub deployment.
5.1 Applying cluster HTTP proxy settings or other RSI patches to the control plane
cpd-cli manage apply-rsi-patches --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} -vvv
5.2 Patching Cognos Analytics instances
- Patch the content store and audit database ports in the Cognos
Analytics service instance by running the following
script:
#!/usr/bin/env bash #----------------------------------------------------------------------------- #Licensed Materials - Property of IBM #IBM Cognos Products: ca #(C) Copyright IBM Corp. 2024 #US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule #----------------------------------------------------------------------------- set -e #set -x function usage { echo $0: usage: $0 [-h] -t tethered_namespace -a audit_db_port_number -c cs_db_port_number [-v] } function help { usage echo "-h prints help to the console" echo "-t tethered namespace (required)" echo "-a Audit DB port number" echo "-c CS DB port number" echo "-v turn on verbose mode" echo "" exit 0 } while getopts ":ht:a:c:v" opt; do case ${opt} in h) help ;; t) tethered_namespace=$OPTARG ;; a) audit_db_port_number=$OPTARG ;; c) cs_db_port_number=$OPTARG ;; v) verbose_flag="true" ;; ?) usage exit 0 ;; esac done if [[ -z ${tethered_namespace} ]]; then echo "A tethered namespace must be provided" help fi echo "Get CAServiceInstance Name" cr_name=$(oc -n ${tethered_namespace} get caserviceinstance --no-headers -o custom-columns=NAME:.metadata.name) if [[ -z ${cr_name} ]]; then echo "Unable to find CAServiceInstance CR for namespace: ${tethered_namespace}" help fi if [[ ! -z ${cs_db_port_number} ]]; then echo "Updating CS Database Port Number in the Custom Resource ${cr_name}..." oc patch caserviceinstance ${cr_name} --type merge -p "{\"spec\":{\"cs\":{\"database_port\":\"${cs_db_port_number}\"}}}" -n ${tethered_namespace} fi if [[ ! -z ${audit_db_port_number} ]]; then echo "Updating Audit Database Port Number in the Custom Resource ${cr_name}..." oc patch caserviceinstance ${cr_name} --type merge -p "{\"spec\":{\"audit\":{\"database_port\":\"${audit_db_port_number}\" }}}" -n ${tethered_namespace} fi sleep 20 check_status="Completed"
- Check the status of the Cognos
Analytics reconcile
action:
for i in {1..240};do caStatus=$(oc get caserviceinstance ${cr_name} -o jsonpath="{.status.caStatus}" -n ${tethered_namespace}) if [[ ${caStatus} == ${check_status} ]];then echo "ca ${check_status} Successfully" break elif [[ ${caStatus} == "Failed" ]];then echo "ca ${caStatus}!" exit 1 fi echo "ca Status: ${caStatus}" sleep 30 done
5.3 Restarting Data Replication replications
- Connect to the restored IBM Software Hub instance.
- Go to the restored replications and stop them.
- Restart the replications.
5.4 Restarting IBM Knowledge Catalog metadata import jobs
Running
, even though the actual import job isn't running. The job must be canceled
and manually restarted. You can cancel and restart a job in IBM Knowledge Catalog or by using an API call.- Cancel and restart a job in IBM Knowledge Catalog
-
- Go to a Jobs page, either the general one or the one for the project that contains the metadata import asset.
- Look for the job and cancel it.
- Restart the job.
- Cancel and restart a job by using an API call
-
Note: You must have the Admin role to use this API call.
post /v2/metadata_imports/recover_task
The request payload must look like the following example. For
recovery_date
, specify the date when IBM Knowledge Catalog was restored from the backup image. Any jobs that were started before the specified date are restarted automatically.{ "recovery_date": "2022-05-05T01:00:00Z", "pending_type": "running" }
5.5 Restarting IBM Knowledge Catalog metadata enrichment jobs
After IBM Software Hub is restored, running metadata enrichment jobs might not complete successfully. Such jobs must be manually restarted.
- In IBM Knowledge Catalog, open the project that contains the metadata enrichment asset.
- Select the asset.
- Click the
button of the asset and then click Enrich to start a new enrichment job.
5.6 Rerunning IBM Knowledge Catalog lineage data import jobs
If a lineage data import job is running at the same time that an online
backup is taken, the job is in a Complete
state when the backup is restored.
However, users cannot see lineage data in the catalog. Rerun the lineage import job.
5.7 Restarting IBM Knowledge Catalog lineage pods
- wkc-data-lineage-service-xxx
- wdp-kg-ingestion-service-xxx
- Log in to Red Hat
OpenShift Container Platform as a cluster
administrator:
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. - Restart the wkc-data-lineage-service-xxx
pod:
oc delete -n ${PROJECT_CPD_INST_OPERANDS} "$(oc get pods -o name -n ${PROJECT_CPD_INST_OPERANDS} | grep wkc-data-lineage-service)"
- Restart the wdp-kg-ingestion-service-xxx
pod:
oc delete -n ${PROJECT_CPD_INST_OPERANDS} "$(oc get pods -o name -n ${PROJECT_CPD_INST_OPERANDS} | grep wdp-kg-ingestion-service)"
5.8 Resetting status of ongoing Watson OpenScale model evaluations
When a Watson OpenScale instance is restored, some of its features, such as scheduled or on-demand model evaluations, might not function properly. You must reset the status of ongoing model evaluations. For details, see Resetting status of ongoing Watson OpenScale model evaluations.
5.9 Retraining existing watsonx Assistant skills
After restoring the watsonx Assistant backup, it is necessary to retrain the existing skills. This involves modifying a skill, to trigger training. The training process for a skill typically requires less than 10 minutes to complete. For more information, see the Retraining your backend model section in the IBM Cloud documentation.
5.10 Restoring services that do not support online backup and restore
- Data Gate
- Data Gate synchronizes Db2 for z/OS data in real time. After IBM Software Hub is restored, data might be out of sync from Db2 for z/OS. It is recommended that you re-add tables after IBM Software Hub foundational services are restored.
- MANTA Automated Data Lineage
- The service is functional and data can be re-imported. For information about importing data, see Managing existing metadata imports (IBM Knowledge Catalog).
- MongoDB
- The service must be deleted and reinstalled. Recreate the instance as a new instance, and then restore the data with MongoDB tools. For more information, see Installing the MongoDB service and Back Up and Restore with MongoDB Tools.