Installing Red Hat OpenShift Container Storage

Use the IBM Cloud® UI to install Red Hat® OpenShift® Container Storage (OCS).

Procedure

  1. Install the OpenShift-data-foundation add-on with odfDeploy set to true.
    1. Login to the IBM Cloud UI.
    2. Select your Red Hat OpenShift cluster and verify that it is working correctly.
    3. On the cluster overview page, access the add-on section.
      cluster overview
    4. Click Install OpenShift-data-foundation to view the configuration list.
      OpenShift data foundation
    5. Verify that the value of odfDeploy is set to true and the storage capacity is configured for osdSize.
    6. Edit the workerNodes section and install OCS on dedicated Nodes with the following format. Select at least 3 worker nodes, such as 10.249.128.3,10.249.128.4,10.249.128.5. For more information, see Installing the OpenShift Data Foundation add-on from the console (https://cloud.ibm.com/docs/openshift?topic=openshift-deploy-odf-vpc#install-odf-console-vpc).
      worker nodes
  2. About 15-20 minutes after installation, run the following commands to verify that the Red Hat OpenShift Container Storage is installed successfully:
    1. $ oc get pods -n OpenShift-storage
      $ oc get pods -n OpenShift-storage   
      NAME                                                              READY   STATUS      RESTARTS   AGE
      csi-cephfsplugin-g7psd                                            3/3     Running     0          151m
      csi-cephfsplugin-gjbhv                                            3/3     Running     0          151m
      csi-cephfsplugin-jb46q                                            3/3     Running     0          151m
      csi-cephfsplugin-provisioner-54586c95b8-6k88r                     6/6     Running     0          151m
      csi-cephfsplugin-provisioner-54586c95b8-zxlgr                     6/6     Running     0          151m
      csi-cephfsplugin-stp9j                                            3/3     Running     0          151m
      csi-rbdplugin-provisioner-7df4456f4f-d8jhv                        6/6     Running     0          151m
      csi-rbdplugin-provisioner-7df4456f4f-rx8qk                        6/6     Running     0          151m
      csi-rbdplugin-tl7dv                                               3/3     Running     0          151m
      csi-rbdplugin-w7wsq                                               3/3     Running     0          151m
      csi-rbdplugin-wskkl                                               3/3     Running     0          151m
      csi-rbdplugin-zhgcw                                               3/3     Running     0          151m
      noobaa-core-0                                                     1/1     Running     0          137m
      noobaa-db-pg-0                                                    1/1     Running     0          137m
      noobaa-default-backing-store-noobaa-pod-cc7eec9e                  1/1     Running     0          135m
      noobaa-endpoint-56c69c557d-5pvcr                                  1/1     Running     0          136m
      noobaa-operator-77b849b4d-c7774                                   1/1     Running     0          151m
      ocs-metrics-exporter-5b47f5bc47-5r4ps                             1/1     Running     0          151m
      ocs-operator-5874d64bc4-fnh7d                                     1/1     Running     0          151m
      rook-ceph-crashcollector-10.240.1.6-647768dd85-zrlfd              1/1     Running     0          143m
      rook-ceph-crashcollector-10.240.1.8-d5c69575-knctm                1/1     Running     0          148m
      rook-ceph-crashcollector-10.240.129.4-6fff5fc8d8-xtzs6            1/1     Running     0          146m
      rook-ceph-mds-ocs-storagecluster-cephfilesystem-a-656db597tqvnj   2/2     Running     0          137m
      rook-ceph-mds-ocs-storagecluster-cephfilesystem-b-694bf74d5zd5m   2/2     Running     0          137m
      rook-ceph-mgr-a-77997d5b98-mhlsw                                  2/2     Running     0          142m
      rook-ceph-mon-a-6fc5b88cc-r7zp7                                   2/2     Running     0          148m
      rook-ceph-mon-b-5c7899c5bc-4spcx                                  2/2     Running     0          146m
      rook-ceph-mon-c-7b9cbdbfb5-9gtjt                                  2/2     Running     0          143m
      rook-ceph-operator-867c5f899c-wx2kh                               1/1     Running     0          151m
      rook-ceph-osd-0-77ccc7d777-z8vgh                                  2/2     Running     0          138m
      rook-ceph-osd-1-989cfb5c7-bvf8c                                   2/2     Running     0          138m
      rook-ceph-osd-2-55bd58f6bb-d5qfc                                  2/2     Running     0          137m
      rook-ceph-osd-prepare-ocs-deviceset-0-data-0sdr6m-xbs9j           0/1     Completed   0          142m
      rook-ceph-osd-prepare-ocs-deviceset-1-data-0m5thq-hl7fh           0/1     Completed   0          142m
      rook-ceph-osd-prepare-ocs-deviceset-2-data-0vc4q6-94gfk           0/1     Completed   0          142m
      rook-ceph-rgw-ocs-storagecluster-cephobjectstore-a-c8c6f69gsqpv   2/2     Running     0          137m
      
    2. $ oc get namespaces | grep storage
      $ oc get namespaces | grep storage
      openshift-cluster-storage-operator                 Active   4d1h
      openshift-kube-storage-version-migrator            Active   4d1h
      openshift-kube-storage-version-migrator-operator   Active   4d1h
      openshift-storage                                  Active   152m
      
    3. $ oc get ocscluster
      $ oc get ocscluster
      NAME              AGE
      ocscluster-auto   152m
      
    4. $ oc get nodes --show-labels
      $ oc get nodes --show-labels
  3. Go to OpenShift Console > Operators > Installed Operators > Openshift Container Storage. If the installation is successful, go to Openshift Container Storage > Storage Cluster and verify that it is in the ready/online state.