4.4. Creating an OpenShift Data Foundation cluster on managed clusters
In order to configure storage replication between the two OpenShift Container Platform clusters, create an OpenShift Data Foundation storage system after you install the OpenShift Data Foundation operator.
Refer to OpenShift Data Foundation deployment guides and instructions that are specific to your infrastructure (AWS, VMware, BM, Azure, etc.).
Procedure
Install and configure the latest OpenShift Data Foundation cluster on each of the managed clusters.
For information about the OpenShift Data Foundation deployment, refer to your infrastructure specific deployment guides (for example, AWS, VMware, Bare metal, Azure).
注意While creating the storage cluster, in the Data Protection step, you must select the Prepare cluster for disaster recovery (Regional-DR only) checkbox.
Validate the successful deployment of OpenShift Data Foundation on each managed cluster with the following command:
$ oc get storagecluster -n openshift-storage ocs-storagecluster -o jsonpath='{.status.phase}{"\n"}'For the Multicloud Gateway (MCG):
$ oc get noobaa -n openshift-storage noobaa -o jsonpath='{.status.phase}{"\n"}'If the status result is
Readyfor both queries on the Primary managed cluster and the Secondary managed cluster, then continue with the next step.-
In the OpenShift Web Console, navigate to Installed Operators
OpenShift Data Foundation Storage System ocs-storagecluster-storagesystemResources and verify that the Status of StorageClusterisReadyand has a green tick mark next to it. [Optional] If Globalnet was enabled when Submariner was installed, then edit the
StorageClusterafter the OpenShift Data Foundation install finishes.For Globalnet networks, manually edit the
StorageClusteryaml to add the clusterID and set enabled totrue. Replace <clustername> with your RHACM imported or newly created managed cluster name. Edit theStorageClusteron both the Primary managed cluster and the Secondary managed cluster.警告Do not make this change in the
StorageClusterunless you enabled Globalnet when Submariner was installed.$ oc edit storagecluster -o yaml -n openshift-storagespec: network: multiClusterService: clusterID: <clustername> enabled: trueAfter the above changes are made,
- Wait for the OSD pods to restart and OSD services to be created.
- Wait for all MONS to failover.
Ensure that the MONS and OSD services are exported.
$ oc get serviceexport -n openshift-storageNAME AGE rook-ceph-mon-d 4d14h rook-ceph-mon-e 4d14h rook-ceph-mon-f 4d14h rook-ceph-osd-0 4d14h rook-ceph-osd-1 4d14h rook-ceph-osd-2 4d14h-
Ensure that cluster is in a
Readystate and cluster health has a green tick indicatingHealth ok. Verify using step 3.