Este conteúdo não está disponível no idioma selecionado.
Chapter 14. Using 2-way replication with CephFS
To reduce storage overhead with CephFS when data resiliency is not a primary concern, you can opt for using 2-way replication (replica-2). This reduces the amount of storage space used and decreases the level of fault tolerance.
There are two ways to use replica-2 for CephFS:
14.1. Editing the existing default CephFS data pool to replica-2 Copiar o linkLink copiado para a área de transferência!
Use this procedure to edit the existing default CephFS pool to replica-2 and use it with the default CephFS storageclass.
Procedure
Patch the storagecluster to change default CephFS data pool to replica-2.
oc patch storagecluster ocs-storagecluster -n openshift-storage --type json --patch '[{ "op": "replace", "path": "/spec/managedResources/cephFilesystems/dataPoolSpec/replicated/size", "value": 2 }]'$ oc patch storagecluster ocs-storagecluster -n openshift-storage --type json --patch '[{ "op": "replace", "path": "/spec/managedResources/cephFilesystems/dataPoolSpec/replicated/size", "value": 2 }]' storagecluster.ocs.openshift.io/ocs-storagecluster patchedCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check the pool details.
ceph osd pool ls | grep filesystem
$ ceph osd pool ls | grep filesystem ocs-storagecluster-cephfilesystem-metadata ocs-storagecluster-cephfilesystem-data0Copy to Clipboard Copied! Toggle word wrap Toggle overflow
14.2. Adding an additional CephFS data pool with replica-2 Copiar o linkLink copiado para a área de transferência!
Use this procedure to add an additional CephFS data pool with replica-2.
Prerequisites
-
Ensure that you are logged into the OpenShift Container Platform web console and OpenShift Data Foundation cluster is in
Readystate.
Procedure
-
Click Storage
StorageClasses Create Storage Class. -
Select
CephFSProvisioner. Under Storage Pool, click Create new storage pool.
- Fill in the Create Storage Pool fields.
- Under Data protection policy, select 2-way Replication.
- Confirm Storage Pool creation
- In the Storage Class creation form, choose the newly created Storage Pool.
- Confirm the Storage Class creation.
Verification
-
Click Storage
Data Foundation. - In the Storage systems tab, select the new storage system.
- The Details tab of the storage system reflect the correct volume and device types you chose during creation