Pcornel
Storage

Ceph

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

Back to the Topic

Answer

Ceph is distributed storage: data is stored as objects in pools, split into placement groups, and spread by the CRUSH algorithm over OSDs — one per disk — on different hosts. Monitors keep the cluster map; clients talk directly to the OSDs.

Remember

active+clean is the normal placement group state. Degraded means fewer copies but data available; inactive, down or incomplete means requests hang. An OSD at 95 % blocks writes — plan to stay under about 75 %. Monitors need a majority.

First checks

  • ceph -s — overall status
  • ceph health detail — warnings explained
  • ceph df — raw and pool usage

Commands

ceph orch ps [--daemon-type <type>]
Display cephadm daemon placement/state.
ceph -s
Local state
ceph health detail
ceph osd tree
ceph df

Verify in this order

client → MON maps → CRUSH → PG → OSDs → disks

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 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 boundaryA green summary proves only current checks are not reporting a warning; it does not prove every client path, object, replica, device, failure domain or backup is healthy.Correlate Ceph, host, device and network evidence in the same time window
AcceptanceHealthy evidence: monitors have quorum, expected daemons are present, PGs are available with intended redundancy, capacity is below risk thresholds and a representative client read/write/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=393

Confirmation

Confirm action

Continue?