Erasure Coding vs RAID for AI Data Lakes
Erasure coding vs RAID for large AI data lakes: how K+M coding works in Ceph and MinIO, capacity overhead vs replication and RAID 6, healing, and which to use where.
The short answer
Erasure coding splits each piece of data into K data chunks, adds M coding (parity) chunks, and spreads all of them across different drives, or different servers. Any K of the K+M chunks are enough to rebuild the data. RAID does something similar inside one server and one controller. For an AI data lake of many high-capacity drives across many servers, erasure coding is usually the better fit: it can survive whole servers failing, it uses far less raw capacity than keeping three full copies, and systems such as MinIO heal damaged data object by object. RAID still makes sense inside a single storage server or for boot and local volumes.
Browse Seagate Exos high-capacity drives and all enterprise hard drives.
How erasure coding works
Ceph's documentation describes it in two numbers:
- K: "the number of data chunks into which an object is divided."
- M: the number of coding chunks, which is also the number of drives or servers (Ceph: OSDs) that can fail without losing data.
Ceph's default erasure-coded pool is K=2, M=2. MinIO uses the same model with different names. An erasure set has N drives, N = K data shards + M parity shards, and MinIO needs at least K healthy drives to read an object back.
The chunks are placed so that no two of them share a failure. In Ceph that is set by the failure domain (for example "crush-failure-domain=host", so every chunk lands on a different server). A MinIO erasure set spans the drives of every node in a server pool, so losing a whole node removes only a few shards from each set.
Capacity: erasure coding vs three copies vs RAID
Ceph gives the formula for how much raw storage a pool uses: the overhead factor is (K+M)/K.
| Protection scheme | Survives | Raw storage per unit of data |
|---|---|---|
| Three full copies (Ceph replication, size=3) | 2 copies lost | 3.0 |
| Ceph erasure coding K=4, M=2 | 2 failures | 1.5 |
| Ceph default erasure-coded pool, K=2, M=2 | 2 failures | 2.0 |
| MinIO 16-drive set, EC:4 (12 data + 4 parity) | 4 drive failures | about 1.33 |
| RAID 6 across 12 drives (10 data + 2 parity) | 2 drives in that array | 1.2 |
Ceph's own advice: if you are not sure which profile to use, "select k=4 and m=2. You will realize double the usable space compared to replication with size=3 with relatively tolerable write and recovery performance impact."
RAID 6 looks efficient on paper, but its protection stops at the edge of one controller and one server. Lose the server, the backplane or the controller, and the whole array is offline. Erasure coding across servers keeps the data readable through that.
The rules the makers give
Ceph:
- Profiles with M=1 are "strongly discouraged" for production data.
- K above 8 is discouraged, and Ceph advises against K greater than 4 or M greater than 2 "unless and until you fully understand the ramifications".
- Most erasure-coded deployments need at least K+M failure domains, and Ceph recommends K+M+1, so the cluster can recover onto a spare domain.
- The profile cannot be changed after the pool is created. To change it, Ceph says, "all objects from the wrongly configured pool must be moved" to a new pool. Choose K and M before you load the data lake.
- Workloads that overwrite data in place need the pool flag allow_ec_overwrites, which Ceph documents under "Erasure Coding with Overwrites".
MinIO:
- An erasure set holds 2 to 16 drives by default, and parity can be set from zero up to half the set.
- Low parity is for testing only. MinIO warns that defaults on small sets "do not provide sufficient failure tolerance for production workloads", and that with fewer than three parity shards a routine drive replacement leaves very little remaining tolerance.
- Reads need K healthy shards. Writes need K, or K+1 when parity is exactly half the set, which MinIO uses to stop a split cluster from writing to both halves.
Healing: object by object, not drive by drive
When a RAID array loses a drive, the controller rebuilds the entire replacement drive. On today's 20TB to 32TB drives that is a long, write-heavy job, and the array is exposed to a second failure until it finishes. That is the case for at least two-drive protection, such as RAID 6, at these capacities.
Erasure-coded object stores recover differently. MinIO "protects and heals at the object level": when a drive is replaced, it verifies objects across the set and rebuilds missing shards from the remaining data and parity. MinIO also points out the cost of the alternative, noting that copying a failed 16TB drive's contents across the data center "places a huge tax on the storage system and network".
Either way, recovery generates sustained writes, so use CMR drives in the pool; see CMR vs SMR drives.
Which to use where
| Situation | Use |
|---|---|
| AI data lake or object store across many servers | Erasure coding (Ceph, MinIO or similar) |
| Archive of raw datasets and old checkpoints | Erasure coding with higher M |
| One storage server, file shares, small team | RAID 6 or RAID 10 on a hardware controller, or ZFS RAID-Z2 |
| Boot drives, OS volumes | RAID 1 |
| Local NVMe cache in a GPU server | RAID 0 (it is a cache, not the master copy) |
Our RAID calculator works out usable capacity and fault tolerance for RAID layouts, and the HP ProLiant RAID level guide explains RAID 1, 5, 6 and 10. For where the capacity tier sits in a full AI design, read AI storage tiers: NVMe, SSD and HDD.
Hardware for an erasure-coded capacity tier
Software-defined storage such as Ceph and MinIO is normally deployed with each drive presented directly to the operating system, so storage nodes typically use a host bus adapter, or a RAID controller in non-RAID mode, rather than hardware RAID. Our Dell PERC guide covers non-RAID and HBA modes.
From our catalog:
- High-capacity CMR drives: Seagate Exos M 30TB (ST30000NM004K), Seagate Exos X24 24TB (ST24000NM002H), Seagate Exos X20 20TB (ST20000NM007D)
- Host bus adapter: Broadcom/LSI 9400-8i tri-mode (HBA9400-8I)
- Cluster network: Dell 2-port 100GbE QSFP28 (540-BDDX), ConnectX-5 25GbE dual-port (F7V1F)
See also RAID controllers. For a multi-node quote, send the node count and target capacity through request a quote.
Warranty and condition
Every listing states its condition. New drives carry the manufacturer's warranty where the listing states it; refurbished drives carry our 90-day advance replacement warranty.