RAID levels explained
Striping, mirroring and parity — with a rebuild exercise.
RAID levels explained
Striping for speed, mirroring and parity for safety — and rebuilding a failed disk by hand.
Striping
Split data across disks so several can work in parallel — performance.
Mirroring
Keep an identical copy on another disk — reliability, at 50% capacity.
Parity
Store the XOR of the data blocks — one disk's worth of redundancy protects many.
Rebuild exercise (RAID 5, four disks)
Disk 0 = 1010, Disk 1 = 0111, Disk 2 = 1100, Disk 3 = parity.
P = 1010 ⊕ 0111 ⊕ 1100 = 1101 ⊕ 1100 = 0001, stored on Disk 3.
Disk 1 dies. Its block is unknown: ????.
Disk 1 = 1010 ⊕ 1100 ⊕ 0001 = 0110 ⊕ 0001 = 0111 ✔. XOR of all survivors restores the lost block.
If another disk fails during the rebuild, data is lost — which is why large arrays use RAID 6 (two parities).
Eight 1 TB disks in RAID 6 give…
Which level offers no redundancy?
Which level puts all parity on one disk?
RAID 10 with 6 disks of 2 TB gives…