PartsPrices › Blog › How RAID works

The RAID levels, drive by drive

Each "level" is a recipe for placing blocks on drives. Below, every level has a working array: the coloured tiles show where each block of a file ends up. Click drives to make them fail and see whether your data survives.

Data blockMirror copyParity (P)Second parity (Q)

RAID 0: striping

No protection

Blocks are spread across all drives in turn, with nothing extra stored. You get every byte of every drive and the best speed, because all drives read and write at once.

2+drives needed
100%of raw space usable
0drive failures survived
N×read and write speed

The catch: one dead drive takes every file with it, since each file has pieces on every drive. With four drives, you are about four times as likely to lose everything as with one.

  • Good for: video editing scratch space, game libraries, caches, anything you could download or copy again.
  • Avoid for: any data without a backup.

Try it

RAID 1: mirroring

1 copy per drive

Every block is written to every drive. Two drives hold identical contents; if either dies, the other carries on alone and you can even read it in another computer.

2drives (more is possible)
50%usable with 2 drives
N−1failures survived
Up to 2×reads; writes like 1 drive

Rebuilding is a straight copy from the surviving twin, the simplest and quickest recovery of any level. The cost is space: two 8 TB drives give you 8 TB.

  • Good for: two-bay home NAS boxes, a computer's system drive, small offices.
  • Avoid for: needing more space than one drive holds; look at RAID 5, 6 or 10 instead.

Try it

RAID 5: striping with parity

1 drive of parity

Data is striped as in RAID 0, and every row (stripe) gets one parity block. The parity moves to a different drive on each row, so no single drive becomes a bottleneck. Together the parity blocks take up the space of one drive.

3+drives needed
(N−1)/Nusable: 67% to 90%+
1drive failure survived
Fastreads; slower small writes

Each small write means reading the old data and parity, then writing both back: four drive operations for one change (the "write penalty"). Large sequential writes avoid most of it.

Big drives make RAID 5 risky. While a failed drive rebuilds, every other drive must be read in full without a single error. With drives of 8 TB and up, rebuilds last a day or more, and a second failure or unreadable sector during that window loses the array. Most vendors now recommend RAID 6 above about 4 drives or 8 TB.

  • Good for: 3 to 5 smaller drives, mostly-read data such as media libraries.
  • Avoid for: large modern drives, many drives, write-heavy databases.

Try it

Notice the orange parity block stepping one drive to the left on each row.

RAID 6: double parity

2 drives of parity

Like RAID 5, but each row stores two independent parity blocks, P and Q, calculated in different ways. Any two drives can fail, at the same time or one during the other's rebuild, and nothing is lost.

4+drives needed
(N−2)/Nusable: 50% to 80%+
2drive failures survived
Fastreads; slowest small writes

Writes are slower again (six operations per small change) and you give up two drives' worth of space. For arrays of large hard drives that is usually a price worth paying.

  • Good for: 5 or more drives, large-capacity drives, archives, backup targets, anything you can't afford to restore.
  • Avoid for: 4-drive setups that need write speed (RAID 10 gives the same space there).

Try it

RAID 10: mirrors, then stripes

1 copy per pair

Drives are paired into mirrors (RAID 1), and data is striped across the pairs (RAID 0). You get RAID 0's speed with RAID 1's simple, fast recovery.

4+drives, in pairs
50%usable, always
1 to N/2failures survived
Fastestprotected level for writes

It survives at least one failure, and more as long as no two failures hit the same pair. Try failing one drive in each pair, then both drives of one pair. Rebuilds are a quick copy from the partner.

  • Good for: databases, virtual machines, busy shared drives, any mix of heavy reads and writes.
  • Avoid for: maximising space per dollar.

Try it

Dashed outlines mark the mirror pairs.

Other layouts you may see

NameWhat it isWhen it is used
JBOD / spanning"Just a bunch of disks": drives joined end to end into one big volume, no striping, no protection.Using odd-sized leftover drives. A failure loses the files on that drive.
RAID 50 and 60Several RAID 5 (or 6) groups striped together, like RAID 10 is to RAID 1.Large servers with 8 to 24+ drives; faster rebuilds than one huge group.
RAID-Z1, Z2, Z3ZFS's versions of single, double and triple parity, with built-in checks that detect silent data corruption.TrueNAS and other ZFS systems. Z3 survives three failures.
SHR, Unraid, Storage SpacesVendor modes that mix drive sizes and grow one drive at a time, using RAID 1/5/6 ideas underneath.Home NAS boxes where you add drives over years.
RAID 2, 3 and 4Early designs with bit-level striping or a single dedicated parity drive.Rarely used today; RAID 5 replaced them. NetApp's RAID-DP builds on RAID 4.

Speeds are best-case multiples of one drive; real numbers depend on the controller, the drives and the workload.