Three disks each store a number. A fourth disk, the parity disk, stores the total of the three. It's not a copy of anything — just one extra number that is calculated from the others. Crash a data disk and see if you can work out what was on it.
Computers store 1s and 0s, not numbers like 7. Adding doesn't work neatly on bits, so they use a trick called XOR (written ⊕). The rule is tiny:
Each row below is a block on a different disk. The parity row is the XOR of the rows above it, one column at a time.
Now see it inside a real array. In the RAID simulator, write a file to RAID 5, click a white P block to see this exact math, then fail a disk and watch the missing blocks get rebuilt.
Open the RAID Simulator →