Bookmarks

RAID — RAID array

Redundant Array of Independent Disks

An array of several disks that the system sees as a single volume; through striping and redundancy, such an array is faster or more reliable than a single disk.

Also: RAID array, RAID disk array, redundant array of independent disks, redundant array of inexpensive disks

checked 18 Nov

All terms

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.

LevelLayoutMinimum disksSurvives
RAID 0striping of blocks across disks without redundancy2none: failure of any disk destroys the whole array
RAID 1mirroring: a full copy of the data on the second disk2failure of all disks but one
RAID 5striping with parity distributed across all disks3failure of one disk
RAID 6striping with two independent parities4failure of two disks
RAID 10mirrors combined by striping4failure 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

Verified 18 Nov

Not to be confused with

what it is mixed up with and how it differs

  • replication

    Replication copies data between nodes at the DBMS or application level, while RAID keeps redundancy inside a single disk array.

  • RAID log

    A RAID log in project management lists risks, assumptions, issues and dependencies — it has nothing to do with disks.

In depth in the references

where the topic is covered in detail