Search notes:

RAID

A RAID device is a virtual device that is created from at least two block devices.
RAID is an abbreviation for redundant array of inexpensive (or also independent) disks which highlights the difference to SLED (single large expensive disk).

RAID levels

The RAID level specifies how data is distributed accross the disks to achieve one of the following goals:
RAID levels greater than 0 protect against
Level Read | Write performance Lost capacity
0 Blocks are striped accross the disks. This leads to better read and write performance but causes the entire array to fail if only one disk gets corrupted. | NX None
1 Data is identically stored («mirrored») on multiple drives. 50 %
2 Bit-level striping with dedicated Hamming-code parity. Not commonly used (if at all)
3 Byte-level striping with decicated parity. Not commonly used.
4 Block-level striping with a disk dedicated for parity
5 Block-level striping with parity distributed onto all disk (thus, in contrast to RAID 4, the array becomes more responsive and prevents wearing out the parity drive). The failure of one disk can be tolerated. Requires at least three disks. Generally, RAID 5 is not recommended because a) of its write penalty when managing parity data and b) if a disk fails while an already failed disk is repaired, the whole array becomes useless. 1 disk
6 Same idea as RAID 4 and 5, but parity is distributed on two disks (which cannot be done with XOR, instead a Galois Field is employed). 2 disks
10 Aka RAID 1+0 (i. e. A RAID 0 stripe of mirror sets). Allegedly the more optimal compared to RAID 1 if four drives are available. 50 %

Misc

Linux supports software RAID devices through the md (multiple devices) device driver.
TODO: What's the difference between RAID 1 and RAID 10?

See also

mdadm
/dev/mdN
/proc/sys/dev/raid/

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/fi...', 1740431318, '3.144.97.217', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/filesystem/RAID(82): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78