Use it when configuring, checking or troubleshooting Erasure Coding in Ceph.
Erasure Coding · Ceph
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.
1. Erasure coding splits data into k data + m parity chunks.
2. Saves capacity (e.g. 4+2 = 1.5×).
3. Needs k+m failure domains.
4. Higher CPU and latency; good for RGW/CephFS data.
5. RBD on EC needs allow_ec_overwrites and replicated metadata pool.
object → k data + m parity chunks → OSDs
Context & applicabilityCommon mistakes · platform/version boundaries
An EC profile defines coding intent; durability still depends on independent shard placement, available shards, compatible operations and healthy recovery paths.
Suspicious evidence: insufficient failure domains, missing shards near tolerance limit, small-write amplification, incompatible overwrite assumptions or recovery constrained by network/capacity.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
object → encode k data + m coding shards → PG/CRUSH → independent OSDs → reconstruct on read/recovery when required
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.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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
ReferenceImportant terms & boundaries2 sections · depth on demand
Placement and what the checks show
An EC profile defines coding intent; durability still depends on independent shard placement, available shards, compatible operations and healthy recovery paths.
In depth
Erasure-coded pools split each object into k data and m coding chunks across k + m OSDs (in different failure domains). Overhead is (k + m) / k.
| Profile | Overhead | Tolerates | Minimum failure domains |
|---|---|---|---|
| 4+2 | 1.5× | 2 | 6 |
| 8+3 | 1.375× | 3 | 11 |
| 3 replicas | 3× | 2 | 3 |
ceph osd erasure-code-profile set ec42 k=4 m=2 crush-failure-domain=host
ceph osd pool create ec-data 64 64 erasure ec42
ceph osd pool set ec-data allow_ec_overwrites true # needed for RBD/CephFS data
EC costs CPU and more network round trips, and small writes are expensive; it suits RGW and large-file CephFS data. RBD on EC still needs a replicated pool for image metadata (--data-pool).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Ceph → Erasure Coding. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ceph.com/en/latest/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Ceph → Erasure Coding Ceph map
Fast control-plane, placement, data-path and proof boundaries for Ceph → Erasure Coding.
| 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 |