Creating a VRC

Learn how to manually create a VolumeReplicationClass (VRC) for a disaster recovery policy (DRPolicy).

About this task

Do this procedure if you created a DRPolicy with a schedule other than the default replication interval of 5 minutes (such as 10 or 15 minutes).

Procedure

  1. Get the VRC details from one of the managed clusters associated with the DRPolicy.
    For example:
    oc get vrc
    The output displays both flatten and normal mode VRCs of the managed cluster.
    NAME                                            PROVISIONER
    rbd-flatten-volumereplicationclass-1625360775   openshift-storage.rbd.csi.ceph.com
    rbd-volumereplicationclass-1625360775           openshift-storage.rbd.csi.ceph.com
  2. Copy the contents of both VRCs into YAML files.
    For example:
    oc get vrc rbd-volumereplicationclass-1625360775 -o yaml > ~/vrc_change.yaml
    oc get vrc rbd-flatten-volumereplicationclass-1625360775 -o yaml  > ~/vrc_change_flatten.yaml
  3. Replace the value of the schedulingInterval with the required value, as follows:
    1. Open the YAML file.
      For example:
      vi ~/vrc_change.yaml
    2. Replace the schedulingInterval: 5m with the required value schedulingInterval: 15m.
    3. Replace the rbd-volumereplicationclass-1625360775 with a new name, rbd-volumereplicationclass-15.
    4. Repeat the same steps for the vrc_change_flatten.yaml file.
  4. Create both the VRCs.
    For example:
    oc create -f ~/vrc_change.yaml
    oc create -f ~/vrc_change_flatten.yaml
  5. Repeat the same steps for the other managed cluster.