Winter Semester 2026–27 · VIT-AP · BACSE106 · Operating Systems · Dr. Krithika L.B

RAID levels explained

Striping, mirroring and parity — with a rebuild exercise.

Module 5 Session 5.1 Lesson 3 of 3

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).

Quick check

Eight 1 TB disks in RAID 6 give…

n − 2 disks of usable space.

Which level offers no redundancy?

Pure striping.

Which level puts all parity on one disk?

RAID 5 distributes it.

RAID 10 with 6 disks of 2 TB gives…

Half the raw capacity (mirrored pairs).