The idea of an array is that several disks together give more than each on its own: their capacity adds up into one volume, reads and writes happen in parallel, and redundant data lets the system survive a disk failure without going down. The term was introduced in a 1988 paper by Patterson, Gibson and Katz of the University of California, Berkeley.
Main levels
The authors set an array of inexpensive disks against the single large and expensive drive of a mainframe; at first the letter I stood for “Inexpensive”, and it was later reinterpreted as “Independent”. The level is chosen for the task: somewhere top speed matters, elsewhere it is surviving the failure of two disks at once.
| Level | Layout | Minimum disks | Survives |
|---|---|---|---|
| RAID 0 | striping of blocks across disks without redundancy | 2 | none: failure of any disk destroys the whole array |
| RAID 1 | mirroring: a full copy of the data on the second disk | 2 | failure of all disks but one |
| RAID 5 | striping with parity distributed across all disks | 3 | failure of one disk |
| RAID 6 | striping with two independent parities | 4 | failure of two disks |
| RAID 10 | mirrors combined by striping | 4 | failure of one disk in each mirror |
The price of redundancy is usable capacity. Out of four 4 TB disks: RAID 10 yields 8 TB, RAID 6 also 8 TB, and RAID 5 12 TB — but if two of its disks fail, the data is lost for good.
Why RAID is not a backup
An array protects only against the failure of a physical disk. A deleted file, a corrupted file system, a controller fault, ransomware are instantly repeated on every disk of the array, and a fire or theft takes the entire server away. That is why copies are kept separately: on another medium and off site — following the 3-2-1 rule.
The second trap is rebuilding. When a failed disk is replaced, the array reconstructs its contents onto the new disk from redundancy, and terabytes take a day of uninterrupted load. If one more disk fails during that time, RAID 5 loses the data — which is why large arrays use RAID 6 or 10.
Hardware and software RAID
Hardware RAID runs on a separate controller and does not depend on the OS, but the controller cache needs care: if it is volatile and not backed by a battery, uncommitted writes are lost when power fails. Software RAID provided by the OS — mdadm on Linux, ZFS pools, Windows dynamic disks — needs no special hardware and does not depend on the controller; in the cloud, where access to the disk is virtual, redundancy usually comes from other mechanisms — replication and erasure coding.
Sources
the term is written from these pages- Patterson, Gibson, Katz — A Case for Redundant Arrays of Inexpensive Disks (RAID), технический отчёт UCB/CSD-87-391, 1987www2.eecs.berkeley.edu/Pubs/TechRpts/1987/CSD-87-391.pdf(opens in a new tab)
- PostgreSQL — Reliability and the Write-Ahead Logpostgresql.org/docs/current/wal-reliability.html(opens in a new tab)
Verified 18 Nov