Pcornel
Storage · Ceph

OSD

Cheat sheet · https://pcornel.dk/topic.php?topic=399

Back to the Topic

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 status
  • ceph osd df tree — usage per OSD
  • ceph 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 df
ceph osd perf
journalctl -u ceph-osd@<id>
ceph orch ps
ceph 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 boundaryWhat to verifyProof limit
Control / placementMON/map/auth, pool, PG and CRUSH context for the exact workloadCluster visibility or one healthy daemon does not prove the data path
Data / redundancyActing OSD set, device/network state, capacity and replica/EC availabilityUp/in or active state alone does not prove clean redundancy or integrity
Failure boundaryOSD 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?