Interactive Demo — Storage

RAID Simulator

Write files into a disk array and watch exactly where every block goes. Then break it: fail a disk, swap in a new one, and watch the array rebuild itself. Compare RAID 0, 1, 5 and 10 side by side.

1 · Choose a RAID level
Number of disks
Size of each disk
Animation speed
2 · The Disk Array each row is a stripe · click any block to inspect it
Data waiting to be written (each block holds a 4-bit value)
data block (colour = file) ′ mirror copy ⊕ P parity ↻ served/rebuilt from redundancy lost
Read test — click a file to read it back and see how many "time units" it takes
Capacity & Safety
Speed vs. a single disktheoretical
Side-by-sideN = number of disks, S = size of one disk
RAID 0RAID 1RAID 5RAID 10
TechniqueStripingMirroringStriping + distributed parityStripe of mirrors
Minimum disks2234 (even number)
Usable capacityN × S
100%
1 × S
50% with 2 disks
(N − 1) × S
75% with 4 disks
N ÷ 2 × S
50%
SurvivesNothing — 1 failure loses everythingN − 1 disk failuresExactly 1 disk failure1 per mirror pair (2 in the same pair = dead)
Read speed≈ N×up to N×≈ (N − 1)×up to N×
Write speed≈ N×1× (every disk writes everything)≈ (N − 1)× for full stripes; small writes are slow≈ N ÷ 2×
Best forScratch / cache / anything re-creatableOS drive, small server, simple safetyFile servers & NAS — capacity + safetyDatabases, VMs — speed + safety
Weak spotMore disks = higher chance of losing it allPays 50%+ of capacity for safetySlow rebuild; 2nd failure during rebuild is fatalCosts 50% of capacity
RAID is NOT a backup. RAID only protects you from a disk failing. It does nothing about accidental deletion, ransomware, corruption, a bad update, fire, flood or theft — a mirrored copy of a deleted file is also deleted, instantly. Real protection follows the 3-2-1 rule: 3 copies of your data, on 2 different kinds of media, with 1 copy off-site.