Setting up OpenShift Data Foundation storage

If you plan to use OpenShift® Data Foundation as your persistent storage, you must ensure that you create volume snapshot storage classes so that you can back up IBM® Software Hub.

Installation phase
  • You are not here. Setting up a client workstation
  • You are not here. Setting up a cluster
  • You are not here. Collecting required information
  • You are not here. Preparing to run installs in a restricted network
  • You are not here. Preparing to run installs from a private container registry
  • You are here icon. Preparing the cluster for IBM Software Hub
  • You are not here. Preparing to install an instance of IBM Software Hub
  • You are not here. Installing an instance of IBM Software Hub
  • You are not here. Setting up the control plane
  • You are not here. Installing solutions and services
Who needs to complete this task?
Cluster administrator A cluster administrator or storage administrator must set up complete this task.
When do you need to complete this task?

You must ensure that your persistent storage is configured before you install IBM Software Hub.

One-time setup Complete this task once per cluster where you plan to install IBM Software Hub.

About this task

When you install OpenShift Data Foundation, the storage classes that are required to install IBM Software Hub are created by default. However, you must create the storage classes that you need to back up IBM Software Hub.

IBM Software Hub uses two volume snapshot storage classes for backups:
  • ocs-storagecluster-rbdplugin-snapclass-velero
  • ocs-storagecluster-cephfsplugin-snapclass-velero

Procedure

  1. Log in to Red Hat® OpenShift Container Platform as a user with sufficient permissions to complete the task.
    ${OC_LOGIN}
    Remember: OC_LOGIN is an alias for the oc login command.
  2. Create the ocs-storagecluster-rbdplugin-snapclass-velero volume snapshot storage class.

    The command that you run depends on the backup and restore utility that you plan to use:

    OADP backup and restore utility
    cat << EOF | oc apply -f -
    apiVersion: snapshot.storage.k8s.io/v1
    deletionPolicy: Retain 
    driver: openshift-storage.rbd.csi.ceph.com 
    kind: VolumeSnapshotClass 
    metadata: 
      name: ocs-storagecluster-rbdplugin-snapclass-velero 
      labels: 
        velero.io/csi-volumesnapshot-class: "true" 
    parameters: 
      clusterID: openshift-storage 
      csi.storage.k8s.io/snapshotter-secret-name: rook-csi-rbd-provisioner 
      csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
    EOF
    IBM Fusion Backup & Restore service
    cat << EOF | oc apply -f -
    apiVersion: snapshot.storage.k8s.io/v1
    deletionPolicy: Delete 
    driver: openshift-storage.rbd.csi.ceph.com 
    kind: VolumeSnapshotClass 
    metadata: 
      name: ocs-storagecluster-rbdplugin-snapclass-velero 
      labels: 
        velero.io/csi-volumesnapshot-class: "true" 
    parameters: 
      clusterID: openshift-storage 
      csi.storage.k8s.io/snapshotter-secret-name: rook-csi-rbd-provisioner 
      csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
    EOF
  3. Create the ocs-storagecluster-cephfsplugin-snapclass-velero volume snapshot storage class:

    The command that you run depends on the backup and restore utility that you plan to use:

    OADP backup and restore utility
    cat << EOF | oc apply -f -
    apiVersion: snapshot.storage.k8s.io/v1
    deletionPolicy: Retain 
    driver: openshift-storage.cephfs.csi.ceph.com 
    kind: VolumeSnapshotClass 
    metadata: 
      name: ocs-storagecluster-cephfsplugin-snapclass-velero 
      labels: 
        velero.io/csi-volumesnapshot-class: "true" 
    parameters: 
      clusterID: openshift-storage 
      csi.storage.k8s.io/snapshotter-secret-name: rook-csi-cephfs-provisioner 
      csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
    EOF
    IBM Fusion Backup & Restore service
    cat << EOF | oc apply -f -
    apiVersion: snapshot.storage.k8s.io/v1
    deletionPolicy: Delete 
    driver: openshift-storage.cephfs.csi.ceph.com 
    kind: VolumeSnapshotClass 
    metadata: 
      name: ocs-storagecluster-cephfsplugin-snapclass-velero 
      labels: 
        velero.io/csi-volumesnapshot-class: "true" 
    parameters: 
      clusterID: openshift-storage 
      csi.storage.k8s.io/snapshotter-secret-name: rook-csi-cephfs-provisioner 
      csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
    EOF