Creating storage classes and pools

You can create a storage class using an existing pool or you can create a new pool for the storage class while creating it.

Before you begin

Ensure that you are logged into the OpenShift Container Platform web console and Fusion Data Foundation cluster is in Ready state.

Procedure

  1. Create a storage class by going to Storage > StorageClasses and clicking Create Storage Class. Fill in the form with the following information:
  2. Fill in the storage class Name and Description.
    Remember: The storage class name must not exceed 40 characters and must not match any of the following predefined storage classes:
    • ocs-storagecluster-cephfs
    • ocs-storagecluster-ceph-rbd
    • ocs-storagecluster-ceph-rgw
    • openshift-storage.noobaa.io
    • ocs-storagecluster-ceph-rbd-virtualization
  3. Use the default Relcaim Policy, Delete.
    Important: If you change the reclaim policy to Retain in the storage class, the persistent volume (PV) remains in Released state even after deleting the persistent volume claim (PVC).
  4. Set the Volume binding mode. The default is WaitForConsumer.
    Note: If you select Immediate option, then the PV gets created immediately when creating the PVC.
  5. Select RBD or CephFS Provisioner, which is the plugin used for provisioning the persistent volumes.
  6. Select a Storage system for your workloads.
  7. Select an existing Storage Pool from the list or create a new pool.
    Note:

    The 2-way replication data protection policy is only supported for the non-default RBD pool. 2-way replication can be used by creating an additional pool.

    To create a new pool:
    1. Click Create New Pool.
    2. Enter Pool name.
    3. Select the Data Protection Policy, either 2-way-Replication or 3-way-Replication.
    4. Optional: If you need to compress the data, select Enable compression.
      Enabling compression can impact application performance and might prove ineffective when data to be written is already compressed or encrypted. Data written before enabling compression will not be compressed.
    5. Click Create to create the new storage pool.
    6. Click Finish after the pool is created.
  8. Optional: Select Enable Encryption.
  9. Click Create Create to create the storage class

What to do next

Once the form is completed, click Create to create the storage class.