Erasure Coding
Cheat sheet · https://pcornel.dk/topic.php?topic=4046
Answer
Objects are encoded into shards distributed across OSDs/failure domains. Erasure coding trades compute, network and small-I/O/write behavior for better raw-capacity efficiency than full replication; client-service support and EC features depend on Ceph release and pool settings.
Remember
- k+m width ≠ number of independent failure domains automatically.
- m coding chunks ≠ backup.
- EC capacity efficiency ≠ universally better performance.
- EC pool usable ≠ every client type supports every overwrite/layout mode.
First checks
ceph osd erasure-code-profile ls— profilesceph osd erasure-code-profile get <profile>— k, m, failure domainceph osd pool ls detail | grep erasure— EC pools
Verify in this order
object → k data + m parity chunks → OSDs
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 → Erasure Coding 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 | An EC profile defines coding intent; durability still depends on independent shard placement, available shards, compatible operations and healthy recovery paths. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: EC profile and failure domain fit the workload, all required shards are present, PGs are clean and workload read/write behavior meets baseline. | 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=4046