Hub Storage¶
OpenShift Storage - Persistent Storage using LVMS
After installing the SNO hub cluster, configure storage before installing ACM. These examples are for environments without existing external storage on the hub node.
Install LVM Storage Operator¶
- Go to Ecosystem -> Software Catalog -> filter for "LVM Storage" -> click the tile
- Click Install
- Leave all the defaults and click Install
- Wait for the Operator to install
Label the node as a storage node only if you are installing OpenShift Data Foundation (see the optional section below). LVM Storage does not use this label.
Create LVM Storage¶
- Go to Ecosystem -> Installed Operators -> click "LVM Storage"
- Click on the "LVMCluster" tab and then click "Create LVMCluster"
-
Switch to YAML view and update the path for your data disk:
apiVersion: lvm.topolvm.io/v1alpha1 kind: LVMCluster metadata: name: local-storage-lvm-cluster namespace: openshift-storage spec: storage: deviceClasses: - name: local-storage default: true fstype: xfs deviceSelector: paths: - /dev/nvme0n1 thinPoolConfig: name: thin-pool-1 sizePercent: 90 overprovisionRatio: 10 chunkSizeCalculationPolicy: Static metadataSizeCalculationPolicy: Host -
Click Create
OPTIONAL - Install OpenShift Data Foundation - Object Storage¶
OpenShift Data Foundation Documentation
This is only needed if you are planning to use ODF as part of your OPP subscription. ODF is used here specifically for object storage required by MultiCluster Observability. If your storage provider does not offer object storage, you can deploy MinIO instead. See Using MinIO.
Label the hub node for ODF before creating the StorageCluster:
- Go to Ecosystem -> Software Catalog -> filter for "OpenShift Data Foundation" -> click the tile
- Click Install
- Leave all the defaults and click Install
- Wait for the Operator to install
- Go to Ecosystem -> Installed Operators -> click "OpenShift Data Foundation"
- Click on the "StorageCluster" tab and then click "Create StorageCluster"
-
Switch to YAML view and paste:
apiVersion: ocs.openshift.io/v1 kind: StorageCluster metadata: name: mcog-storagecluster namespace: openshift-storage spec: arbiter: {} encryption: keyRotation: schedule: '@weekly' kms: {} externalStorage: {} managedResources: cephObjectStoreUsers: {} cephCluster: {} cephBlockPools: {} cephNonResilientPools: {} cephObjectStores: {} cephFilesystems: {} cephRBDMirror: {} cephToolbox: {} cephDashboard: {} cephConfig: {} multiCloudGateway: dbStorageClassName: lvms-local-storage reconcileStrategy: standalone resourceProfile: balanced -
Click Create
Verify¶
oc get lvmcluster -n openshift-storage
oc get storagecluster -n openshift-storage
oc get storageclass
oc get pods -n openshift-storage
Ensure the LVM StorageClass is set as default: