A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

RAID (Redundant Arrays of Disks)

College Depth 109 in the knowledge graph ☐ I know this ☆ Set as goal
401prerequisites beneath it
See this on the map →
I/O Management and Device DriversDisk Scheduling Algorithms+2 more→
RAID storage striping mirroring parity reliability persistence

Core Idea

RAID combines several physical disks so that the operating system sees one larger, faster or more reliable disk. It uses three techniques: striping spreads consecutive blocks across disks so they can be read in parallel, mirroring keeps identical copies on two or more disks, and parity stores the XOR of a group of blocks so any one lost block can be rebuilt. Each RAID level is a different trade-off among capacity, performance and the number of disk failures it can survive. The idea was set out in a 1988 paper by David Patterson, Garth Gibson and Randy Katz.

How It's Best Learned

Draw four disks as columns and fill in block numbers for RAID 0, RAID 1, RAID 4 and RAID 5, so the layouts can be compared side by side. Work a parity example by hand: XOR three short bit strings, erase one, and rebuild it from the others. Then build a table of usable capacity, failures tolerated and cost of a small write for each level.

Common Misconceptions

Explainer

A single disk has three limits. It holds only so much data. It serves only so many requests per second. And when it fails, everything on it is gone. RAID addresses all three by grouping several disks behind one interface. The operating system, or a hardware controller, translates each logical block number into a disk and a position, so file systems above it need no changes.

Striping spreads data. Logical block 0 goes to disk 0, block 1 to disk 1, and so on, wrapping around. A large read can then pull from every disk at once. RAID 0 is pure striping. It gives the full capacity of all disks and the best performance, but no redundancy. If any one disk fails, every file loses pieces, so RAID 0 is less reliable than a single disk.

Mirroring copies data. In RAID 1, every block is written to two disks. Either copy can serve a read, and the array survives the loss of one disk in each pair. The cost is capacity: half the raw space holds copies.

Parity gives redundancy more cheaply. For each stripe of data blocks, the array stores one extra block equal to their bitwise XOR. XOR has a useful property: if any one block in the group is lost, XORing all the survivors reproduces it. RAID 4 puts all parity on one dedicated disk. RAID 5 rotates the parity block from disk to disk across stripes. With N disks, both give N - 1 disks of usable space and survive one failure. RAID 6 stores two independent parity blocks per stripe, using N - 2 disks of space, and survives two failures.

Parity has a price for small writes. To change one block, the array must read the old data and old parity, compute the new parity, and write both, about four I/Os for one logical write. In RAID 4 every one of those parity writes hits the same disk, which becomes a bottleneck. RAID 5's rotating parity spreads that work across all disks.

Two practical points matter. First, after a disk fails, the array runs in a degraded state until a replacement is rebuilt by reading every surviving disk. On large drives this takes hours, and a second failure during that window can lose data. That risk is one reason RAID 6 is popular. Second, RAID guards against hardware failure only. Deleting a file deletes it on every disk, so backups are still needed.

Practice Questions 4 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Binary Counters: Design and Analysis → Binary Arithmetic → Fixed-Point Number Representation → Two's Complement Representation → Overflow and Underflow Detection → Binary Adders: Half-Adders and Full-Adders → Full Adder and Carry Propagation → Carry Lookahead Adder Design → Half Adder Circuit Design → Multiplication Circuit Design → Sequential Circuit Design → Registers and Register Files → Instruction Set Architecture (ISA) → Assembly Language Basics → Memory Organization and Addressing → Memory Address Decoding → Memory Bus Architecture and Interconnect → I/O Systems and Buses → Interrupts and Direct Memory Access (DMA) → Device Drivers and I/O Controllers → I/O Management and Device Drivers → Disk Scheduling Algorithms → RAID (Redundant Arrays of Disks)

Longest path: 110 steps · 401 total prerequisite topics

Prerequisites (4)

Leads To (0)

No topics depend on this one yet.