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
- Create a storage class by going to
and
clicking Create Storage Class. Fill in the form with the following
information:
- 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
- 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).
- 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.
- Select RBD or CephFS Provisioner, which is the plugin used for
provisioning the persistent volumes.
- Select a Storage system for your workloads.
- 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:
- Click Create New Pool.
- Enter Pool name.
- Select the Data Protection Policy, either 2-way-Replication or
3-way-Replication.
- 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.
- Click Create to create the new storage pool.
- Click Finish after the pool is created.
- Optional: Select Enable Encryption.
- Click Create Create to create the storage class
What to do next
Once the form is completed, click Create to create the storage
class.