Read Ceph OSD nearfull and full ratios and respond
When OSD_NEARFULL or OSD_FULL appears, find the fullest OSD with ceph osd df, check the ratio order, then raise the full ratio briefly to restore writes.
HEALTH_ERR 1 full osd(s) means the cluster has stopped accepting writes. Knowing what each of the three ratios blocks tells you how urgent it is. Run the commands on a node with an admin keyring. Steps 1–4 only read; they change nothing.
[1] See which OSDs the warning names.
# ceph health detailThe OSD troubleshooting page shows this output, with all three ratios exceeded:
HEALTH_ERR 1 full osd(s); 1 backfillfull osd(s); 1 nearfull osd(s)osd.3 is full at 97%osd.4 is backfill full at 91%osd.2 is near full at 87%[2] Check utilization per OSD. One OSD over a threshold raises the warning, so look at the fullest OSD, not the cluster-wide percentage.
# ceph osd df[3] Check the current ratios and what they mean. The values live in the OSDMap; this shows the full_ratio line.
# ceph osd dump | grep ratio| Ratio | Default | When exceeded |
|---|---|---|
nearfull | 0.85 | OSD_NEARFULL warning |
backfillfull | 0.90 | OSD_BACKFILLFULL warning; backfill into that OSD is refused |
full | 0.95 | OSD_FULL error; writes blocked |
The order must be nearfull < backfillfull < full < failsafe_full. If not, you get OSD_OUT_OF_ORDER_FULL.
[4] See which pools use the space.
# ceph df[5] The real fix is more capacity or less data. The docs list:
- Add OSDs in the appropriate CRUSH failure domains.
- Delete data you no longer need.
- If one OSD is an outlier, even out the distribution. The docs name
reweight-by-utilizationand theceph-mgrbalancer module. Both move data, so if an OSD is alreadybackfillfull, decide first whether you need step 6 to get writes back.
[6] Only if you must restore writes before new OSDs arrive, raise the full ratio by a small amount. The docs call this a short-term workaround. Write down the current value from step 3 first.
# ceph osd set-full-ratio <ratio><ratio> is a float from 0.0 to 1.0. Do not break the ascending order up to failsafe_full. Re-run the step 3 command to confirm the value, then check ceph health detail for OSD_FULL.
[7] Once there is room, put the ratio back. If you were on the default, that is 0.95.
# ceph osd set-full-ratio 0.95For nearfull and backfillfull, the same form applies: ceph osd set-nearfull-ratio <ratio> and ceph osd set-backfillfull-ratio <ratio>.