OSD
Cheat sheet · https://pcornel.dk/topic.php?topic=399
Answer
An OSD is the Ceph daemon that stores data on one disk. It has two independent states: up or down (is it running?) and in or out (is data assigned to it?).
Remember
A down OSD is marked out after 10 minutes, and data starts moving. Before planned maintenance: ceph osd set noout — and unset it afterwards. Up does not mean healthy: a failing disk makes its OSD slow. One full OSD blocks writes to its pools.
First checks
ceph osd tree— OSDs per host and statusceph osd df tree— usage per OSDceph osd perf— commit/apply latency
Commands
ceph osd tree- Display CRUSH hierarchy and OSD up/in state.
ceph osd status- Compact OSD up/in, usage and PG view.
ceph osd df tree- Display per-OSD capacity/utilization.
ceph osd dfceph osd perfjournalctl -u ceph-osd@<id>ceph orch psceph osd safe-to-destroy <id>
Verify in this order
PG → acting OSDs → BlueStore → device
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 → OSD 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 | OSD state flags describe liveness/placement eligibility, not data completeness, media integrity or workload latency by themselves. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: expected OSDs are up/in, device and daemon latency are within baseline, capacity is safe, PGs using them are healthy and workload I/O 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=399