GrepBoard/Manuals
605 manuals ·

Ceph TOO_FEW_OSDS: check the OSD count and placement rule

·Tested on Ceph Tentacle documentation · v20.2.0 source · 2026-11·Test scope ↓·4 steps

Compare the OSD total with the threshold in the Ceph warning. Check each replicated pool's size and CRUSH failure domain before choosing where to add OSDs.

TOO_FEW_OSDS is a cluster-wide count check. With the check enabled, Ceph raises it when the number of OSDs in the map is below osd_pool_default_size. The warning includes both numbers used in the comparison. Tentacle health check · v20.2.0 comparison

[1] Match the count in the warning to the current OSD map.

console
$ ceph health detail$ ceph osd stat

Read the number after OSD count as the left operand and the number after osd_pool_default_size as the threshold. Compare the first number with the total in ceph osd stat. The adjacent up and in counts describe running OSDs and OSDs included in placement. Equality clears the numeric condition. Even if every OSD is up, a total below the threshold meets it. Monitoring OSDs

For example, with a total of 3 and a threshold of 3, a drop to 2 up OSDs alone does not trigger this warning. If the detail shows OSD_DOWN, follow the OSD checks in reading health detail.

[2] Select a replicated pool to check its protection requirements.

console
$ ceph osd pool ls detail

Find a pool marked replicated and substitute its name for mypool. Record its desired copy count (including the original) separately from the cluster warning threshold. This copy-count calculation applies to replicated pools. Erasure-coded pools place shards. Pool settings

console
$ pool='mypool'$ ceph osd pool get "$pool" size$ ceph osd pool get "$pool" crush_rule

[3] Inspect the locations eligible under the pool's CRUSH rule.

console
$ ceph osd crush rule dump$ ceph osd tree

Match the rule name from step 2. Identify its root, any device class restriction, and the failure domain used to separate copies. Count eligible locations in the tree. For example, a rule placing three copies on distinct hosts needs three eligible hosts. Three OSDs spread across two hosts can meet the cluster count threshold and still leave the third copy without a host. CRUSH rules

[4] Choose an addition that fills the missing placement. If the cluster needs more OSDs, select locations allowed by the pool's rule. After an approved deployment, repeat step 1 and check health detail for remaining placement problems such as PG_DEGRADED.

Lowering the threshold changes the comparison without adding any OSDs or failure domains. Lowering a pool's size changes its protection policy while leaving both operands of the warning unchanged.

#ceph#osd#crush