Ceph
Cheat sheet · https://pcornel.dk/topic.php?topic=393
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 statusceph health detail— warnings explainedceph df— raw and pool usage
Commands
ceph orch ps [--daemon-type <type>]- Display cephadm daemon placement/state.
ceph -s- Local state
ceph health detailceph osd treeceph 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 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 | A 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 |
| Acceptance | Healthy 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