Ceph Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4061
Answer
Start from the exact workload symptom and timestamp, then use ceph status and health detail only as broad triage. Narrow to affected service, pool/PG and acting OSDs before any force, repair, reweight, out/in or destructive replacement operation.
Remember
- Symptom ≠ root cause.
- HEALTH_WARN/ERR ≠ diagnosis.
- OSD down ≠ failed disk automatically.
- Temporary recovery ≠ durable fix.
First checks
ceph health detail— firstceph -w— live logceph daemon osd.<id> dump_historic_slow_ops— slow ops detail
Commands
ceph -s- Compact Ceph health/status summary.
ceph health detail- Show detailed Ceph health checks.
ceph osd perfceph pg dump_stuckceph pg <pgid> queryceph dfceph osd df
Verify in this order
symptom → health detail → component → fix
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 → Ceph Troubleshooting 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 | Troubleshooting is complete only when the first failed boundary and causal mechanism are explained and the original workload plus redundancy checks succeed; a green health summary or restarted daemon alone is not root-cause proof. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: the original failing workload succeeds, health state is explained, PG redundancy is restored as intended and no regression appears on adjacent clients/services. | 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=4061