Technology card
ShippingRAID
Redundant Array of Independent Disks
Compare RAID 0, 1, 5, 6 and 10 by capacity, copy placement and the failures each layout can survive.
Glossary entry on hesela.dev · JSON record · RAID 0 · RAID 1 · Stripe unit · MD mismatch count · Rebuilds and mirror failure patterns · Write costs and workload · Write-hole recovery
Related
On this page6 sections
In one minute
RAID combines storage members through defined data-placement layouts, with redundancy and failure tolerance determined by the chosen level.
Start with the layout, not the number of drives. RAID 0 stripes data without protecting it; RAID 1 keeps multiple complete copies; RAID 5 and RAID 6 use parity; conventional RAID 10 stripes over mirror groups. These choices trade capacity for different recovery paths. [1] [2] [3] [4] [5]
For N equal-sized active members, each contributing capacity S, the table gives ideal data capacity. Spares, array metadata and filesystem overhead are excluded. RAID 1 means one N-way mirror here; RAID 10 means fixed two-member mirror pairs with an even N of at least four. [6] [5]
Four 8 TB members illustrate the distinction: RAID 0 provides 32 TB, a four-way RAID 1 mirror 8 TB, RAID 5 24 TB, RAID 6 16 TB and paired RAID 10 16 TB before overhead. These follow from the table's formulas; the RAID 1 row is not two separate mirrors.
Equal member sizes are an assumption, not a universal RAID 0 capacity rule. Linux MD can continue into narrower stripe zones after smaller members run out of space, using remaining capacity on larger members. A full RAID 1 mirror instead needs room for the complete logical data on every participating member. Verify the implementation and usable member sizes before applying a formula. [10]
Failure position matters in paired RAID 10. With pairs A/B and C/D, losing A and C leaves one copy in each pair; losing A and B removes both copies of that pair's data. Counting failed drives alone cannot distinguish these cases. Linux also supports near, far and offset RAID10 layouts, including odd member counts, so the fixed-pair example must not be applied to every RAID10 implementation. [5] [7]
Parity capacity is an overhead equivalent, not necessarily a dedicated drive. RAID 5 rotates parity across members; RAID 6 layout details vary. Do not infer where parity lives merely from subtracting one or two members in a capacity formula. [3] [7]
A stripe unit, also called a strip or stripe element, is the contiguous portion on one member. It is not the full stripe. For four active members with 512 KiB units, full-stripe user data is 2 MiB in RAID 0, 1.5 MiB in RAID 5 and 1 MiB in conventional RAID 6. The parity layouts still occupy 2 MiB across the members; their user-data totals exclude parity. [9] [10] [7]
Request length alone does not establish stripe coverage. A stripe-aligned 1540 KiB RAID 0 request touches all four members: three 512 KiB chunks plus 4 KiB of the fourth. It does not fill the 2 MiB stripe. In the four-member RAID 5 example, a 1.5 MiB request starting 4 KiB past a data-stripe boundary spans two partial stripes. These are address-mapping calculations; the parity layer may aggregate separate writes before issuing a full-stripe write. [8] [14]
Linux dm-striped gives a concrete mapping example, distinct from the separate dm-raid target. Its striped segment rotates chunks across destinations without adding parity or a second copy. Each address is relative to the segment start; backing offsets then locate the destination data. Multiple mapped destinations do not by themselves establish separate physical devices or independent failure domains. [18] [19]
For a constructed three-destination segment starting at sector 1024, use 8-sector chunks and backing offsets 128, 256 and 384. Logical sector 1032 is relative sector 8, so it maps to destination 1 at backing sector 256; logical sector 1048 maps back to destination 0 at sector 136. Destination numbers are zero-based, and sectors here are 512-byte address units. The 48-sector segment contains two complete stripe rounds. This is checked address arithmetic, not a loaded device or a throughput measurement; 8 sectors is 4 KiB and is not a universal system page size. The executable example and independent enumeration tests are linked in the corpus record. [19] [20] [21]
Concatenation is not striping. Linux dm-linear maps each configured logical range onto one equal-length backing range. Joining two devices with linear entries places one range after the other; it does not rotate successive fixed-size chunks as dm-striped does. This placement distinction is not a claim that concurrent I/O to different devices must run serially. Neither target adds mirrored copies or parity, although redundancy can exist below it. [26] [27] [18]
Count distinct backing storage, not just logical addresses. For two linear entries on the same backing device, each 16 sectors long and both starting at backing offset 128, logical starts 0 and 16 map to the same backing sector 128. The two entries expose 32 logical sector addresses but cover only 16 distinct backing sectors. This arithmetic example illustrates aliasing, not mirroring or extra recovery capacity. A write through one alias can replace bytes addressed through the other; it does not establish immediate coherence of buffered reads. The corpus provides exact boundary and alias tests without loading a kernel mapping. [27] [28]
Mirroring does not promise a fixed read-speed multiplier. Linux MD documents read balancing across members but distinguishes a single sequential stream from concurrent streams or random reads. Writes must update the active copies; workload, layout and implementation determine the performance result. [10]
A configured mirror is not necessarily a synchronized mirror. By default, mdadm starts an initial resync when creating a RAID 1 array. With optional write-behind enabled, Linux MD can report write completion before designated write-mostly members have caught up. A surviving device must contain the needed current data; counting installed members alone does not establish that condition. [11] [10]
Consistency is not integrity. Krioukov and colleagues showed how recomputing parity from unvalidated data can make corrupted data and parity agree. Their FAST 2008 model explores one stripe with one injected error and collision-free protection primitives; it is not a present-day fleet failure-rate measurement or a reason to disable scrubbing. Validation must cover maintenance reads as well as application reads. [12]
Interpret scrub counters at their actual granularity. Linux MD mismatch_cnt counts sectors rewritten, or that would be rewritten during check, in units that can exceed the damaged region. The mdadm manual gives an example where one failed 64 KiB comparison adds 128 sectors. This is not a count of damaged files or independent failures, and check is not guaranteed to be read-only for every RAID level. [13] [10]
Redundancy and backup address different failures. A healthy mirror can faithfully preserve an unwanted overwrite. Recovery needs suitable retained copies, isolation and a tested restoration path; RAID alone does not provide those properties. [15]
The naming has a history: the December 1987 Berkeley report and the 1988 SIGMOD paper are titled A Case for Redundant Arrays of Inexpensive Disks (RAID). Their publication dates identify distinct records, not the first invention of every mechanism now grouped under RAID. [16] [17]
Unstriping is address selection, not missing-member recovery. Linux dm-unstriped exposes one member's address sequence through an existing striped device. It adds no parity or replacement copy and still depends on that underlying device serving the selected addresses. A component view alone does not establish physical isolation or a latency improvement. [22] [23]
For a target starting at sector zero, four members, 256-sector chunks and member index 2, view sectors 0, 255, 256 and 511 map to backing sectors 512, 767, 1536 and 1791 when the backing offset is zero. Member indices are zero-based; these sectors are 512-byte address units. The exposed 512-sector length is not the full span reached on the backing device. The corpus supplies executable integer checks, not a recovery procedure. [23] [20] [25]
The target origin is a separate coordinate from the backing offset. Linux v6.12 used the incoming sector directly; commit 83c10e8dd436 corrects the mapper to subtract the target start. With target start 1024, two members, 128-sector chunks, member index 1 and backing offset zero, the first sector maps to 128 instead of the old calculation's 2176. This is a comparison of address arithmetic, not a tested recovery procedure or a survey of distribution backports. [23] [24]
Documentation examples also need validation. The pinned v6.12 unstriped guide's loop example combines length 1 with chunk size 256, while that version's constructor requires divisibility. Its member-index check is also weaker than the mathematical range 0 <= i < N. These are source-review observations, not results from loading a kernel target. [22] [23]
Compared to neighbors
The level identifies data placement. Controller availability, write-cache persistence, latent read errors, repair policy and shared power failures need separate evidence.
| Layout | Capacity | Survival |
|---|---|---|
| RAID 0 [1] | N x S | No member loss |
| RAID 1 (N-way) [2] | S | One current readable full copy must remain |
| RAID 5 [3] | (N - 1) x S | Any one member may fail |
| RAID 6 [4] | (N - 2) x S | Any two members may fail |
| RAID 10 (two-way pairs) [5] | N x S / 2 | Every pair must keep a usable member |
Uncertainty notes
- This is a primary-source overview with worked capacity arithmetic, not a new array benchmark.
- The comparison covers common layouts, not every historical RAID level or implementation variant.
- The linked write-cost and rebuild analyses examine mechanisms that a level label alone cannot predict.
Sources
- 01SNIA dictionary: RAID 0 · accessed 2026-10-20
- 02SNIA dictionary: RAID 1 · accessed 2026-10-20
- 03SNIA dictionary: RAID 5 · accessed 2026-10-20
- 04SNIA dictionary: RAID 6 · accessed 2026-10-20
- 05SNIA dictionary: RAID 10 · accessed 2026-10-20
- 06Red Hat Enterprise Linux 10: Managing RAID, section 16.3 · accessed 2026-10-20
- 07Linux kernel documentation: dm-raid layouts and copy counts · accessed 2026-10-20
- 08Linux kernel documentation: dm-striped · accessed 2026-10-20
- 09SNIA dictionary: strip (stripe element) · accessed 2026-10-20
- 10mdadm 4.2 md(4): RAID layouts and read balancing · accessed 2026-10-20
- 11mdadm 4.2: initial resync and write-behind · accessed 2026-10-22
- 12Krioukov et al.: Parity Lost and Parity Regained, FAST 2008, sections 3, 4.2 and 5 · accessed 2026-10-22
- 13Linux 6.18: RAID arrays, sync_action and mismatch_cnt · accessed 2026-10-22
- 14Linux 6.12: RAID 4/5/6 cache and write aggregation · accessed 2026-10-20
- 15SNIA Data Protection Best Practices (2025), sections 7.1 and 7.2.3 · accessed 2026-10-20
- 16Patterson, Gibson and Katz: A Case for Redundant Arrays of Inexpensive Disks (RAID), UCB/CSD-87-391 (1987) · accessed 2026-10-20
- 17Patterson, Gibson and Katz: A Case for Redundant Arrays of Inexpensive Disks (RAID), SIGMOD (1988) · accessed 2026-10-20
- 18Linux v6.12: dm-stripe target geometry · accessed 2026-12-01
- 19Linux v6.12: dm-stripe.c constructor and sector mapping · accessed 2026-12-01
- 20Linux v6.12: block-layer sector units · accessed 2026-12-01
- 21Hesela: dm-striped definition and executable address-mapping example · accessed 2026-12-01
- 22Linux v6.12: unstriped target and documented example · accessed 2026-12-01
- 23Linux v6.12: dm-unstripe.c address mapping and constructor checks · accessed 2026-12-01
- 24Linux commit 83c10e8dd436: target-relative unstriped mapping · accessed 2026-12-01
- 25Hesela: dm-unstriped definition and executable geometry checks · accessed 2026-12-01
- 26Linux v6.12: linear mappings and concatenation · accessed 2026-12-01
- 27Linux v6.12: linear_map_sector and linear_map · accessed 2026-12-01
- 28Hesela: dm-linear address ranges, aliasing and executable tests · accessed 2026-12-01