Creating a disaster recovery policy on hub cluster

The disaster recovery policy (DRPolicy) defines an asynchronous replication schedule with a specified replication interval for the managed clusters. Use this policy to replicate and recover applications across those managed clusters.

Before you begin

Ensure that primary and secondary-managed clusters are imported to the hub cluster as instructed in step 5 of Configuring Regional-DR.

Procedure

  1. Log in to the OpenShift® Container Platform web console and select All clusters.
  2. From the Data Services menu, select the Disaster recovery tab.
  3. On the Overview tab of the Disaster recovery window, click Create a disaster recovery policy or go to the Policies tab and click Create DRPolicy.
  4. In the Policy name field, enter a policy name that is not already in use.
  5. Select two clusters from the list of managed clusters to associate with this new policy.
    The Replication policy field is automatically set with the value Asynchronous.
  6. Set the time in the Replication interval field.
    Important: For the first DRPolicy, select the default replication interval of 5 minutes.

    After creating the first DRPolicy with the default replication interval of 5 minutes, you can create more policies with different schedules (such as 10 or 15 minutes) for the same managed clusters.

    To create multiple policies with different schedules, select the same clusters for each policy, but specify a different value in the Replication interval field (in minutes, hours, or days). The minimum allowed interval is 1 minute. Give each policy a different name.

    For each policy that has a different schedule, you must manually create a corresponding VolumeReplicationClass (VRC) by following the instructions provided in Creating a VRC.

    Important: If you are creating a disaster recovery policy for VM workloads, enable flattening to ensure reliable and supported regional disaster recovery behavior. To enable flattening, follow step 7.
  7. Optional: Expand Advanced settings and select the Enable disaster recovery support for restored and cloned PersistentVolumeClaims (For Data Foundation only) checkbox.
    For more information on disaster recovery protection for cloned and restored RADOS Block Device (RBD) volumes, see Disaster recovery protection for cloned and restored RBD volumes.
    Important: Use this option only with discovered applications and if cloned and restored RADOS Block Device (RBD) volumes are available.
  8. Click Create.