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
-
Get the VRC details from one of the managed clusters associated with the
DRPolicy.
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
- 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
- Replace the value of the
schedulingInterval
with the required value, as
follows:
- Open the YAML file.
For example:
vi ~/vrc_change.yaml
- Replace the
schedulingInterval: 5m
with the required value
schedulingInterval: 15m
.
- Replace the
rbd-volumereplicationclass-1625360775
with a new name,
rbd-volumereplicationclass-15
.
- Repeat the same steps for the vrc_change_flatten.yaml
file.
- Create both the VRCs.
For
example:
oc create -f ~/vrc_change.yaml
oc create -f ~/vrc_change_flatten.yaml
- Repeat the same steps for the other managed cluster.