Pcornel
Storage · Ceph

Erasure Coding

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

Back to the Topic

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 — profiles
  • ceph osd erasure-code-profile get <profile> — k, m, failure domain
  • ceph 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 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 boundaryAn 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?