Storage · Ceph
HEALTH_ERR
Cheat sheet · https://pcornel.dk/topic.php?topic=4058
Answer
Critical checks can include unavailable/incomplete PGs, severe capacity conditions, monitor/quorum issues or other states that require preserving evidence and prioritizing data availability over cosmetic cleanup.
Remember
- HEALTH_ERR ≠ proof of data loss.
- HEALTH_ERR ≠ permission to force PG/OSD state.
- Client outage ≠ every pool unavailable.
- Health clear after force operation ≠ integrity proof.
First checks
ceph health detail— errorsceph pg dump_stuck inactive— inactive PGsceph osd df | sort -k17 -n | tail— full OSDs
Commands
ceph pg deep-scrub <pgid>smartctlceph pg repair <pgid>ceph pg <pgid> queryceph pg <pgid> list_unfoundceph osd lostceph health detailceph pg <id> queryceph pg repair
Verify in this order
error → data at risk → urgent recovery
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
Ceph → HEALTH_ERR Ceph map
| Ceph boundary | What to verify | Proof limit |
|---|---|---|
| Control / placement | MON/map/auth, pool, PG and CRUSH context for the exact workload | Cluster visibility or one healthy daemon does not prove the data path |
| Data / redundancy | Acting OSD set, device/network state, capacity and replica/EC availability | Up/in or active state alone does not prove clean redundancy or integrity |
| Failure boundary | HEALTH_ERR proves Ceph detected a critical condition, not that a particular repair is safe or that data is irretrievably lost. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: critical checks are resolved through explained remediation, affected PGs/data are available with intended redundancy and application read-back succeeds. | Close only after original client operation plus redundancy/read-back verification |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4058