GrepBoard/Manuals
605 manuals ·

Read Ceph OSD nearfull and full ratios and respond

·Tested on Ceph official docs (Tentacle) · 2026-10·Test scope ↓·7 steps

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.

console
# ceph health detail

The OSD troubleshooting page shows this output, with all three ratios exceeded:

output
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.

console
# ceph osd df

[3] Check the current ratios and what they mean. The values live in the OSDMap; this shows the full_ratio line.

console
# ceph osd dump | grep ratio
RatioDefaultWhen exceeded
nearfull0.85OSD_NEARFULL warning
backfillfull0.90OSD_BACKFILLFULL warning; backfill into that OSD is refused
full0.95OSD_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.

console
# 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-utilization and the ceph-mgr balancer module. Both move data, so if an OSD is already backfillfull, 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.

console
# 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.

console
# ceph osd set-full-ratio 0.95

For nearfull and backfillfull, the same form applies: ceph osd set-nearfull-ratio <ratio> and ceph osd set-backfillfull-ratio <ratio>.

#ceph#osd#capacity#health