18.2. Setting Ceph OSD full thresholds by updating the StorageCluster CR
You can set Ceph OSD full thresholds by updating the StorageCluster CR. Use this procedure if you want to override the default settings.
Procedure
You can update the StorageCluster CR to change the settings for full, backfillfull, and nearfull.
full
Use this following command to update the Ceph OSD full ratio in case Ceph prevents the IO operation on OSDs that reached the specified capacity. The default is 0.85.
If the value is set too close to 1.0, the cluster becomes unrecoverable if the OSDs are full and there is nowhere to grow.
For example, to set Ceph OSD full ratio to 0.9:
$ oc patch storagecluster ocs-storagecluster -n openshift-storage --type json --patch '[{ "op": "replace", "path": "/spec/managedResources/cephCluster/fullRatio", "value": 0.90 }]'
backfillfull
Use the following command to set the Ceph OSDd backfillfull ratio in case Ceph denies backfilling to the OSD that reached the capacity specified. The default value is 0.80.
If the value is set too close to 1.0, the OSDs become full and the cluster is not able to backfill.
For example, set backfill full to 0.85:
$ oc patch storagecluster ocs-storagecluster -n openshift-storage --type json --patch '[{ "op": "replace", "path": "/spec/managedResources/cephCluster/backfillFullRatio", "value": 0.85 }]'
nearfull
Use the following command to set the Ceph OSD nearfull ratio in case Ceph returns the nearfull OSDs message when the cluster reaches the capacity specified. The default value is 0.75.
For example, set nearfull to 0.8:
$ oc patch storagecluster ocs-storagecluster -n openshift-storage --type json --patch '[{ "op": "replace", "path": "/spec/managedResources/cephCluster/nearFullRatio", "value": 0.8 }]'