Applying DRpolicy to an ApplicationSet-based application
Before you begin
Procedure
- On the Hub cluster, navigate to All Clusters > Applications.
- Click the Actions menu at the end of application to view the list of available actions.
- Click Manage disaster recovery.
- Click Enroll application.
- Select Policy name and click Next.
- Select an Application resource and then use PVC label
selector to select
PCV labelfor the selected resource.Note: You can select more than one PVC label for the selected application resources. - After adding all the application resources, click Next.
- In the Enroll managed application modal, review the policy configuration details and click Assign. The newly assigned Data policy details are displayed on the Manage disaster recovery modal.
- Verify that you can view the assigned policy details on the Applications page.
- On the Applications page, navigate to the DR Status column and
view the status.
The status can be any of the following:
- Protecting: Shown during initial DR setup before data synchronization begins
- Healthy: All volumes and Kubernetes resources are syncing normally
- Warning: Volumes or Kubernetes resources are syncing slower than usual
- Critical: Volumes or Kubernetes resources are not syncing
- Protection Error: An error occurred during application protection setup
You can click the status to view the last synced time for application volumes and the DR policy assigned.
Note: It may take a few minutes for the DR Status to move from Protecting to Healthy after disaster recovery is enabled. The DR status will show Protecting during initial setup, then automatically transition to health-based statuses (Healthy/Warning/Critical) once data synchronization begins. - Failover and relocate status can be viewed in the DR Status
column when initiated. These statuses can be clicked to view more details about the action.
DR Status shows either Protecting, Healthy, Warning, or Critical when failover or relocate is not taking place. During failover or relocate operations, the status will show the operation-specific status (FailingOver, Relocating, and so on).
- On the Applications page, navigate to the DR Status column and
view the status.
- In the user interface, verify the volume consistency groups:
- In the Overview tab, at the end of the protected application row from the action menu (⋮), select Manage disaster recovery.
- In the modal, verify Volume group replication is Enabled.
- In the same modal, select View volume groups.
- Verify the volume consistency groups have the correct volumes and a Synced status.
- Optional: For Rados block device (RBD), verify
volumereplication,volumereplicationgroup, andvolumegroupreplicationon the primary cluster.For
volumereplication:oc get volumereplication -AExample output:
NAMESPACE NAME AGE VOLUMEREPLICATIONCLASS SOURCEKIND SOURCENAME DESIREDSTATE CURRENTSTATE busybox-sample vr-bc4a166e-13bc-45cd-99f0-8bd516f7ffcc 112s rbd-volumereplicationclass-1625360775 VolumeGroupReplication vgr-07a0050bee1f25720f5cae8d5daa6230-busybox-placement-drpc primary PrimaryFor
volumereplicationgroup:oc get volumereplicationgroup -AExample output:
NAMESPACE NAME DESIREDSTATE CURRENTSTATE busybox-sample busybox-placement-drpc primary PrimaryFor
volumegroupreplication:oc get volumegroupreplication -AExample output:
NAMESPACE NAME VOLUMEGROUPREPLICATIONCLASS VOLUMEGROUPREPLICATIONCONTENT DESIREDSTATE CURRENTSTATE AGE busybox-sample vgr-07a0050bee1f25720f5cae8d5daa6230-busybox-placement-drpc rbd-volumegroupreplicationclass-1625360775-1602718344 vgrcontent-bc4a166e-13bc-45cd-99f0-8bd516f7ffcc primary Primary 114s - Optional: For CephFS, verify
ReplicationGroupSourceandReplicationSourceon the Primary cluster.For
ReplicationGroupSource:oc get ReplicationGroupSource -AExample output:
NAMESPACE NAME LAST SYNC DURATION NEXT SYNC SOURCE LAST SYNC START busybox-cephfs busybox-cephfs-bbd241b65b6589782fddaa82636e358d 2026-03-18T11:20:14Z 1m16.462467415s 2026-03-18T11:25:00Z {"matchLabels":{"ramendr.openshift.io/consistency-group":"busybox-cephfs-bbd241b65b6589782fddaa82636e358d"}}For
ReplicationSource:oc get ReplicationSource -AExample output:
NAMESPACE NAME SOURCE LAST SYNC DURATION NEXT SYNC busybox-cephfs busybox-pvc vs-busybox-pvc 2026-03-18T11:20:14Z 16.450725976s - Optional: For CephFS, verify
ReplicationGroupDestinationandReplicationDestinationon the Secondary cluster.For
ReplicationGroupDestination:oc get ReplicationGroupDestination -AExample output:
NAMESPACE NAME LAST SYNC DURATION LAST SYNC START busybox-cephfs busybox-cephfs-b1f2b5bac27b3d8805437424895d212c 2026-03-18T11:20:15Z 47.700328282s 2026-03-18T11:20:15ZFor
ReplicationDestination:oc get ReplicationDestination -AExample output:
NAMESPACE NAME LAST SYNC DURATION NEXT SYNC busybox-cephfs busybox-pvc 2026-03-18T11:20:15Z 47.401909636s