Preparing your environment for disaster recovery
Prepare your environment for disaster recovery. When the primary environment
cannot provide service, the secondary environment provides service.
For more information
about how to back up your environment, see Backing up your
environments.
Procedure
-
Set up your environment to support disaster recovery:
- Ensure that your primary environment is deployed successfully, by ensuring that the necessary operators and components are installed correctly. For more information about installed components, see Capabilities for production deployments.
- If you are using LDAP, configure the LDAP connection and configure the LDAP user to Zen.
- If you are using Db2, set up the IBM Db2® HADR primary node and secondary node across the primary environment and the secondary environment.
- Back up the custom resource (CR) definition that is used to deploy the primary environment.
- Back up the secure definition that is used to protect the configuration data in the primary environment.
- Back up the PV and persistent volume claim (PVC) definitions.
- Back up the content in your database. Remember to back up your database regularly.
- Prepare the secondary environment by following the installation procedure so that the secondary environment can be used to install the operator and other components.
- Apply the backup secure definition from the primary environment in the secondary environment.
- Use the backup PV and PVC definitions to create the PVs and PVCs that access the shared storage.
-
Prepare the CR definition for the secondary environment. The following hostnames might be
different between the primary environment and secondary environment. If they are, change the
hostname in CR definition to the hostname that is available in the secondary environment.
-
- Router hostname.
- NFS server hostname in PV definition.
- Redis server hostname.
- The folders and files were created with a specified user identifier (UID) in the primary environment. Update the shared_configuration.sc_run_as_user value in the CR definition to use the same UID as the primary environment. You must complete this step so that the secondary environment can reuse the folders and files.
-
-
Start the secondary environment:
- Use the Db2 secondary nodes to takeover the Db2 workload from the primary nodes.
- Deploy the secondary environment with the modified custom resource definition.
Note: Do not start the primary environment and secondary environment at the same time. - Complete disaster recovery preparation for the following components that you configured
in your environment.
- IBM Operational Decision Manager: Planning for ODM disaster recovery on OpenShift
- IBM Workflow Process Service: Preparing IBM Workflow Process Service in an OpenShift Container Platform for disaster recovery
- Resource Registry: Enabling Resource Registry for disaster recovery