Storage · Ceph
Failure Domains
Cheat sheet · https://pcornel.dk/topic.php?topic=4044
Answer
CRUSH buckets such as host, chassis, rack, row or datacenter represent failure domains only when they accurately reflect real shared-risk boundaries including power, network and enclosure dependencies.
Remember
- Multiple OSDs ≠ multiple failure domains.
- Different hosts ≠ independent racks/power automatically.
- Configured rack label ≠ physical validation.
- Replication count ≠ tolerated failures unless placement is independent.
First checks
ceph osd crush tree— bucketsceph osd crush rule dump <rule> | grep type— failure domain typeceph osd tree— hosts and OSDs
Verify in this order
replicas → separated by failure domain
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 → Failure Domains 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 | Logical distribution across CRUSH buckets proves resilience only if those buckets accurately represent independent real-world failure domains. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: every sampled acting set spans the required real failure domains and sufficient spare capacity exists to restore redundancy after a domain loss. | 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=4044