What is RAID?
A technology that combines several disks and uses them like a single storage device to improve speed or reliability. Its levels include RAID 0 (striping, which splits data across disks), RAID 1 (mirroring, which writes the same data to two disks), RAID 5 and RAID 6 (which write parity distributed across the disks), and RAID 10 (which combines mirroring and striping).
Japanese name: RAID
RAID appears in 5 practice questions across 1 topic, including System Architecture and Reliability.
Field: System Architecture and Reliability
Main RAID levels and capacity
With n disks of the same capacity, the capacity available for data is n disks' worth for RAID 0, half for RAID 1 and RAID 10, n − 1 disks' worth for RAID 5, and n − 2 disks' worth for RAID 6. For example, with four 4 TB disks, RAID 0 gives 16 TB, RAID 10 gives 8 TB, RAID 5 gives 12 TB and RAID 6 gives 8 TB. RAID 0 has no redundancy and loses data when one disk fails; RAID 5 tolerates one failure and RAID 6 any two. RAID 10 tolerates two or more failures as long as both disks of the same mirrored pair do not fail.
Write performance and rebuilds
In RAID 5, each small write reads the old data and old parity and writes the new data and new parity, so one write needs four I/O operations (the write penalty). It is six for RAID 6 and two for RAID 1 and RAID 10. When a failed disk is replaced, a rebuild reconstructs its contents from the data on the remaining disks, but the larger the disks, the longer it takes, and if another disk fails during that time, RAID 5 loses data. For this reason RAID 6 and similar levels are often chosen for large disks.
FAQ
Should I choose RAID 5 or RAID 6?
RAID 6 tolerates two disk failures, so it suits arrays with many disks or large disks whose rebuilds take a long time. In exchange, it loses two disks' worth of capacity and its write performance is lower than RAID 5's. Choose by considering how important the use is, the capacity and number of disks, and the amount of writing.
What is the difference between RAID 1 and RAID 10?
RAID 1 is mirroring, in which two disks hold the same data. RAID 10 creates several such mirrored pairs and splits data across the pairs (striping), increasing capacity and speed. Both can store half of the total capacity.