Storage · Storage Troubleshooting
Ceph HEALTH_ERR
Cheat sheet · https://pcornel.dk/topic.php?topic=4405
Answer
Start from named health checks and affected pools/PGs, then inspect quorum/map availability, PG peering/state, OSD availability, failure domains, capacity and client I/O before force/repair operations.
Remember
- HEALTH_ERR ≠ automatic data loss.
- MON quorum ≠ data path healthy.
- Force/recovery commands ≠ first diagnostic step.
- PG active state ≠ clean/redundant state.
First checks
ceph health detail— errorsceph pg dump_stuck inactive— inactive PGsceph osd tree— down OSDs
Commands
ceph dfceph osd dfceph pg <pgid> queryceph pg repairceph osd set-full-ratio <ratio>ceph -sceph health detailsmartctl
Verify in this order
error → data at risk → recovery
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Storage Troubleshooting → Ceph HEALTH_ERR proof map
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Ceph HEALTH_ERR → named check → MON/map or PG state → acting OSDs/CRUSH → device/network/capacity → recovery/peering → client read/write verification | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | HEALTH_ERR proves a Ceph error-level health condition exists; it does not by itself prove permanent data loss, nor which recovery action is safe. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows error health checks resolved, required PGs available/redundant and client reads/writes verified without new inconsistency. | Close only after the original workload/recovery test and regression check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4405