Enrolling a sample discovered application for disaster recovery protection

This section guides you on how to apply an existing DR Policy to a discovered application from the Protected applications tab.

Before you begin

  • Ensure that Disaster Recovery has been configured and that at least one DR Policy has been created.

Procedure

  1. On RHACM console, navigate to Disaster recovery > Protected applications tab.
  2. Click Enroll application to start configuring existing applications for DR protection.
  3. Select ACM discovered applications.
  4. In the Namespace page, choose the DR cluster which is the name of the Primary managed cluster where busybox is installed.
  5. Select namespace where the application is installed. For example, busybox-discovered.
    Note: If you have workload spread across multiple namespaces then you can select all of those namespaces to DR protect.
  6. Choose a unique Name, for example busybox-rbd, for the discovered application and click Next.
  7. In the Configuration page, the Resource label is used to protect your resources where you can set which resources will be included in the kubernetes-object backup and what volume’s persistent data will be replicated. Resource label is selected by default.
  8. Provide Label expressions and PVC label selector. Choose the label appname=busybox for both the kubernetes-objects and for the PVC(s).
  9. Click Next.
  10. In the Replication page, select an existing DR Policy and the kubernetes-objects backup interval.
    Note: It is recommended to choose the same duration for the PVC data replication and kubernetes-object backup interval (for example: 5 minutes).
  11. Click Next.
  12. Review the configuration and click Save. Use the Back button to go back to the screen to correct any issues.
  13. Verify that the Application volumes (PVCs) and the Kubernetes-objects backup have a Healthy status before proceeding to DR Failover and Relocate testing. You can view the status of your Discovered applications on the Protected applications tab.
    1. To see the status of the DRPC, run the following command on the Hub cluster:
      oc get drpc {drpc_name} -o wide -n openshift-dr-ops

      The discovered applications store resources such as DRPlacementControl (DRPC) and Placement on the Hub cluster in a new namespace called openshift-dr-ops. The DRPC name can be identified by the unique Name configured in prior steps (i.e., busybox-rbd).

    2. To see the status of the VolumeReplicationGroup (VRG) for discovered applications, run the following command on the managed cluster where the busybox application was manually installed.
      oc get vrg {vrg_name} -n openshift-dr-ops

      The VRG resource is stored in the namespace openshift-dr-ops after a DR Policy is assigned to the discovered application. The VRG name can be identified by the unique Name configured in prior steps (i.e., busybox-rbd).