Chapter 3. Block pools
The OpenShift Data Foundation operator installs a default set of storage pools depending on the platform in use. These default storage pools are owned and controlled by the operator and it cannot be deleted or modified. With OpenShift Container Platform, you can create multiple custom storage pools which map to storage classes that provide the following features:
- Enable applications with their own high availability to use persistent volumes with two replicas, potentially improving application performance.
- Save space for persistent volume claims using storage classes with compression enabled.
Multiple block pools are not supported for external mode OpenShift Data Foundation clusters.
3.1. Creating a block pool
Prerequisites
- You must be logged into the OpenShift Container Platform web console as an administrator.
Procedure
-
Click Storage
Data Foundation. - In the Storage systems tab, select the storage system and then click the BlockPools tab.
- Click Create Block Pool.
Enter Pool name.
NoteUsing 2-way replication data protection policy is not supported for the default pool. However, you can use 2-way replication if you are creating an additional pool.
-
Select Data protection policy as either
2-way Replication
or3-way Replication
. Optional: Select Enable compression checkbox if you need to compress the data.
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 is not compressed.
- Click Create.
3.2. Updating an existing pool
Prerequisites
- You must be logged into the OpenShift Container Platform web console as an administrator.
Procedure
-
Click Storage
Data Foundation. - In the Storage systems tab, select the storage system and then click BlockPools.
- Click the Action Menu (⋮) at the end the pool you want to update.
- Click Edit Block Pool.
Modify the form details as follows:
NoteUsing 2-way replication data protection policy is not supported for the default pool. However, you can use 2-way replication if you are creating an additional pool.
- Change the Data protection policy to either 2-way Replication or 3-way Replication.
Enable or disable the compression option.
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 is not compressed.
- Click Save.
3.3. Deleting a pool
Use this procedure to delete a pool in OpenShift Data Foundation.
Prerequisites
- You must be logged into the OpenShift Container Platform web console as an administrator.
Procedure
-
. Click Storage
Data Foundation. - In the Storage systems tab, select the storage system and then click the BlockPools tab.
- Click the Action Menu (⋮) at the end the pool you want to delete.
- Click Delete Block Pool.
- Click Delete to confirm the removal of the Pool.
A pool cannot be deleted when it is bound to a PVC. You must detach all the resources before performing this activity.