Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Guides > Implementation Guide—Red Hat OpenShift Container Platform 4.14 on AMD-powered Dell Infrastructure > CSM Replication
The CSM for replication project aims to bring the replication and disaster recovery capabilities of Dell storage arrays to Kubernetes clusters. The project helps you replicate groups of volumes using the native replication technology that is available on the storage array, and can provide a way to restart applications for both planned and unplanned migration.
The installation process consists of two steps:
Ensure that:
wget https://github.com/dell/csm-replication/releases/download/v1.5.0/repctl-linux-amd64
mv repctl-linux-amd64 repctl
chmod +x repctl
cp repctl /usr/bin/
To deploy CSM Replication, perform the following steps on the CSAH node:
git clone -b v1.8.0 https://github.com/dell/csm-replication.git
2. Add admin configs as clusters to repctl by running the following command:
repctl cluster add -f "<absolute path and name of the cluster kubeconfig file>" -n "cluster-1"
Verify that the cluster is added by running the following command:
repctl get cluster
3. Install the replication controller and CRDs by running the following command:
repctl create -f /root/replication1.5/csm-replication/deploy/replicationcrds.all.yaml
repctl create -f /root/replication1.5/csm-replication/deploy/controller.yaml
Note: The controller reports that the configmap is invalid. The message disappears after you inject the kubeconfigs in the next step.
4. Inject admin configs into clusters by running the following command:
repctl cluster inject
The invalid configmap message in the pods event disappears.
5. Create replication storage classes using the config file. Use the sample file to create the config file.
repctl create sc --from-config <config file name>
6. Verify that the storageclass is created by running the following command:
repctl get sc
To install the CSI driver:
oc create namespace isilon
2. Create secrets with credentials for both source and target PowerScale cluster. Use the sample file.
kubectl create secret generic isilon-creds -n isilon --from-file=config=<secret.yaml>
3. Create an empty secret using the sample file. Ensure that the replication module is enabled by running the following command:
oc create -f <yaml file>
Use the sample file for the CSI driver:
oc create -f <yaml file>
4. Create PowerScale values that create a storage class. Use the sample file\’
repctl create sc --from-config /root/replication/powerscale_values.yaml
5. Create a pvc using the replication storage class. Use the sample file\’
oc create -f <yaml file>
6. Verify that the policy is created on the source PowerScale instance, as shown in the following figure:
Figure 26. Policy on the source PowerScale instance
7. Verify that the the policy is created on the target cluster.
Figure 27. Policy on the target PowerScale instance
Data on the source pvc is replicated to the target PowerScale instance.