Standard RAID levels#RAID 1
{{short description|Any of a set of standard configurations of Redundant Arrays of Independent Disks}}
In computer storage, the standard RAID levels comprise a basic set of RAID ("redundant array of independent disks" or "redundant array of inexpensive disks") configurations that employ the techniques of striping, mirroring, or parity to create large reliable data stores from multiple general-purpose computer hard disk drives (HDDs). The most common types are RAID 0 (striping), RAID 1 (mirroring) and its variants, RAID 5 (distributed parity), and RAID 6 (dual parity). Multiple RAID levels can also be combined or nested, for instance RAID 10 (striping of mirrors) or RAID 01 (mirroring stripe sets). RAID levels and their associated data formats are standardized by the Storage Networking Industry Association (SNIA) in the Common RAID Disk Drive Format (DDF) standard.{{Cite web |title=Common raid Disk Data Format (DDF) |url=http://www.snia.org/tech_activities/standards/curr_standards/ddf/ |publisher=Storage Networking Industry Association |website=SNIA |date=March 27, 2009 |access-date=2013-04-23}} The numerical values only serve as identifiers and do not signify performance, reliability, generation, hierarchy, or any other metric.
While most RAID levels can provide good protection against and recovery from hardware defects or defective sectors/read errors (hard errors), they do not provide any protection against data loss due to catastrophic failures (fire, water) or soft errors such as user error, software malfunction, or malware infection. For valuable data, RAID is only one building block of a larger data loss prevention and recovery scheme – it cannot replace a backup plan.
RAID 0
{{See also|JBOD}}
RAID 0 (also known as a stripe set or striped volume) splits ("stripes") data evenly across two or more disks, without parity information, redundancy, or fault tolerance. Since RAID 0 provides no fault tolerance or redundancy, the failure of one drive will cause the entire array to fail, due to data being striped across all disks. This configuration is typically implemented having speed as the intended goal.{{cite web
| url = https://www.datarecovery.net/RAID/raid-0-data-recovery.html
| title = RAID 0 Data Recovery
| access-date = 2015-04-30
| website = DataRecovery.net
| url = http://www.cru-inc.com/data-protection-topics/understanding-raid/
| title = Understanding RAID
| access-date = 2015-04-30
| website = CRU-Inc.com
}} RAID 0 is normally used to increase performance, although it can also be used as a way to create a large logical volume out of two or more physical disks.{{cite web
| url = http://lifehacker.com/5986883/how-to-combine-multiple-hard-drives-into-one-volume-for-cheap-high-capacity-storage
| title = How to Combine Multiple Hard Drives Into One Volume for Cheap, High-Capacity Storage
| date = 2013-02-26 | access-date = 2015-04-30
| website = LifeHacker.com
}}
A RAID 0 setup can be created with disks of differing sizes, but the storage space added to the array by each disk is limited to the size of the smallest disk. For example, if a 120 GB disk is striped together with a 320 GB disk, the size of the array will be 120 GB × 2 = 240 GB. However, some RAID implementations would allow the remaining 200 GB to be used for other purposes.{{cn|date=December 2024}}
The diagram in this section shows how the data is distributed into stripes on two disks, with A1:A2 as the first stripe, A3:A4 as the second one, etc. Once the stripe size is defined during the creation of a RAID 0 array, it needs to be maintained at all times. Since the stripes are accessed in parallel, an {{mvar|n}}-drive RAID 0 array appears as a single large disk with a data rate {{mvar|n}} times higher than the single-disk rate.
= Performance =
A RAID 0 array of {{mvar|n}} drives provides data read and write transfer rates up to {{mvar|n}} times as high as the individual drive rates, but with no data redundancy. As a result, RAID 0 is primarily used in applications that require high performance and are able to tolerate lower reliability, such as in scientific computing or gaming.{{cite web
| url = http://www.gameplayinside.com/optimize/gaming-storage-shootout-2015-ssd-hdd-or-raid-0-which-is-best/
| title = Gaming storage shootout 2015: SSD, HDD or RAID 0, which is best?
| date = 2015-04-13 | access-date = 2015-09-22
| first = Sebastiaan | last = de Kooter | website = GamePlayInside.com
}}
Some benchmarks of desktop applications show RAID 0 performance to be marginally better than a single drive.{{Cite web|url=http://www.anandtech.com/storage/showdoc.aspx?i=2101 |website=AnandTech.com |title=Western Digital's Raptors in RAID-0: Are two drives better than one? |date=July 1, 2004 |publisher=AnandTech |access-date=2007-11-24}}{{Cite web|url=http://www.anandtech.com/storage/showdoc.aspx?i=2974 |website=AnandTech.com |title=Hitachi Deskstar 7K1000: Two Terabyte RAID Redux |date=April 23, 2007 |publisher=AnandTech |access-date=2007-11-24}} Another article examined these claims and concluded that "striping does not always increase performance (in certain situations it will actually be slower than a non-RAID setup), but in most situations it will yield a significant improvement in performance".{{Cite news|url=http://tweakers.net/reviews/515/1/raid-0-hype-or-blessing-pagina-1.html |title=RAID 0: Hype or blessing? |date=August 7, 2004 |website=Tweakers.net |publisher=Persgroep Online Services |access-date=2008-07-23}}{{Cite web|url=http://www.hardwaresecrets.com/does-raid0-really-increase-disk-performance/ |website=HardwareSecrets.com |title=Does RAID0 Really Increase Disk Performance? |date=November 1, 2006}} Synthetic benchmarks show different levels of performance improvements when multiple HDDs or SSDs are used in a RAID 0 setup, compared with single-drive performance. However, some synthetic benchmarks also show a drop in performance for the same comparison.{{cite web
| url = https://www.phoronix.com/scan.php?page=article&item=btrfs_raid01_linux316&num=1
| title = Btrfs RAID HDD Testing on Ubuntu Linux 14.10
| date = 2014-10-22 | access-date = 2015-09-19
| first = Michael | last = Larabel | publisher = Phoronix
| url = https://www.phoronix.com/scan.php?page=article&item=btrfs_4way_ssdraid&num=1
| title = Btrfs on 4 × Intel SSDs In RAID 0/1/5/6/10
| date = 2014-10-29 | access-date = 2015-09-19
| first = Michael | last = Larabel | publisher = Phoronix
}}
RAID 1
{{See also|RAID 1E}}
RAID 1 consists of an exact copy (or mirror) of a set of data on two or more disks; a classic RAID 1 mirrored pair contains two disks. This configuration offers no parity, striping, or spanning of disk space across multiple disks, since the data is mirrored on all disks belonging to the array, and the array can only be as big as the smallest member disk. This layout is useful when read performance or reliability is more important than write performance or the resulting data storage capacity.{{cite web
| url = http://www.freebsd.org/doc/handbook/geom-mirror.html
| title = FreeBSD Handbook: 19.3. RAID 1 – Mirroring
| date = 2014-03-23 | access-date = 2014-06-11
| website = FreeBSD.org
| url = http://www.adaptec.com/en-us/_common/compatibility/_education/raid_level_compar_wp.htm#2.2
| title = Which RAID Level is Right for Me?: RAID 1 (Mirroring)
| access-date = 2014-01-02
| publisher = Adaptec | website = Adaptec.com
}}
The array will continue to operate so long as at least one member drive is operational.
= Performance =
Any read request can be serviced and handled by any drive in the array; thus, depending on the nature of I/O load, random read performance of a RAID 1 array may equal up to the sum of each member's performance,{{Efn|name="raid1-read"|Theoretical maximum, as low as single-disk performance in practice}} while the write performance remains at the level of a single disk. However, if disks with different speeds are used in a RAID 1 array, overall write performance is equal to the speed of the slowest disk.{{cite web
| url = https://docs.oracle.com/cd/E19691-01/820-1847-20/appendixf.html#50515995_74175
| title = Selecting the Best RAID Level: RAID 1 Arrays (Sun StorageTek SAS RAID HBA Installation Guide)
| date = 2010-12-23 | access-date = 2014-01-02
| publisher = Oracle Corporation | website = Docs.Oracle.com
}}
Synthetic benchmarks show varying levels of performance improvements when multiple HDDs or SSDs are used in a RAID 1 setup, compared with single-drive performance. However, some synthetic benchmarks also show a drop in performance for the same comparison.
{{Clear}}
RAID 2
{{Redirect|RAID 2||Raid 2 (disambiguation){{!}}Raid 2}}
RAID 2, which is rarely used in practice, stripes data at the bit (rather than block) level, and uses a Hamming code for error correction. The disks are synchronized by the controller to spin at the same angular orientation (they reach index at the same time{{cite web |title=RAID 2 |url=https://www.techopedia.com/definition/17275/raid-2 |website=Techopedia |date=27 February 2012 |access-date=11 December 2019}}), so it generally cannot service multiple requests simultaneously.{{Cite book| title = Managing RAID on Linux. O'Reilly Series | first = Derek | last = Vadala | edition = illustrated | publisher = O'Reilly | year = 2003 | isbn = 9781565927308 | page = 6 | url = https://books.google.com/books?id=RM4tahggCVcC&q=raid+2+implementation&pg=PA6 }}{{Cite book| title = Blueprints for high availability | first1 = Evan | last1 = Marcus | first2 = Hal | last2 = Stern | edition = 2, illustrated | publisher = John Wiley and Sons | year = 2003 | isbn = 9780471430261 | page = 167 | url = https://books.google.com/books?id=D_jYqFoJVEAC&q=raid+2+implementation&pg=RA2-PA167 }} However, depending with a high rate Hamming code, many spindles would operate in parallel to simultaneously transfer data so that "very high data transfer rates" are possibleThe RAIDbook, 4th Edition, The RAID Advisory Board, June 1995, p.101 as for example in the Thinking Machines' DataVault where 32 data bits were transmitted simultaneously. The IBM 353{{Cite web |title=IBM Stretch (aka IBM 7030 Data Processing System) |url=http://www.brouhaha.com/~eric/retrocomputing/ibm/stretch/ |access-date=2023-09-13 |website=www.brouhaha.com}} also observed a similar usage of Hamming code and was capable of transmitting 64 data bits simultaneously, along with 8 ECC bits.
With all hard disk drives implementing internal error correction, the complexity of an external Hamming code offered little advantage over parity so RAID 2 has been rarely implemented; it is the only original level of RAID that is not currently used.
{{Clear}}
RAID 3
File:RAID 3.svg bytes. Shown are two blocks of data in different colors.]]
RAID 3, which is rarely used in practice, consists of byte-level striping with a dedicated parity disk. One of the characteristics of RAID 3 is that it generally cannot service multiple requests simultaneously, which happens because any single block of data will, by definition, be spread across all members of the set and will reside in the same physical location on each disk. Therefore, any I/O operation requires activity on every disk and usually requires synchronized spindles.
This makes it suitable for applications that demand the highest transfer rates in long sequential reads and writes, for example uncompressed video editing. Applications that make small reads and writes from random disk locations will get the worst performance out of this level.
The requirement that all disks spin synchronously (in a lockstep) added design considerations that provided no significant advantages over other RAID levels. Both RAID 3 and RAID 4 were quickly replaced by RAID 5.{{Cite book| title = Mike Meyers' A+ Guide to Managing and Troubleshooting PCs | first1 = Michael | last1 = Meyers | first2 = Scott | last2 = Jernigan | edition = illustrated | publisher = McGraw-Hill Professional | year = 2003 |isbn = 9780072231465 | page = 321 | url = https://books.google.com/books?id=9vfQKUT_BjgC&q=raid+2+implementation&pg=PT348 }} RAID 3 was usually implemented in hardware, and the performance issues were addressed by using large disk caches.
{{Clear}}
RAID 4
File:RAID 4.svg disk with each color representing the group of blocks in the respective parity block (a stripe)]]
RAID 4 consists of block-level striping with a dedicated parity disk. As a result of its layout, RAID 4 provides good performance of random reads, while the performance of random writes is low due to the need to write all parity data to a single disk,{{cite web
| url = http://www.thegeekstuff.com/2011/11/raid2-raid3-raid4-raid6/
| title = RAID 2, RAID 3, RAID 4 and RAID 6 Explained with Diagrams
| date = 2011-11-21 | access-date = 2015-01-02
| first = Ramesh | last = Natarajan | website = TheGeekStuff.com
}} unless the filesystem is RAID-4-aware and compensates for that.
An advantage of RAID 4 is that it can be quickly extended online, without parity recomputation, as long as the newly added disks are completely filled with 0-bytes.
In diagram 1, a read request for block A1 would be serviced by disk 0. A simultaneous read request for block B1 would have to wait, but a read request for B2 could be serviced concurrently by disk 1.
{{Clear}}
RAID 5
File:RAID 5.svg block (a stripe). This diagram shows Left Asynchronous layout.]]
RAID 5 consists of block-level striping with distributed parity. Unlike in RAID 4, parity information is distributed among the drives. It requires that all drives but one be present to operate. Upon failure of a single drive, subsequent reads can be calculated from the distributed parity such that no data is lost.{{Cite journal |first1=Peter |last1=Chen |first2=Edward |last2=Lee |first3=Garth |last3=Gibson |first4=Randy |last4=Katz |first5=David |last5=Patterson |title=RAID: High-Performance, Reliable Secondary Storage |journal=ACM Computing Surveys |volume=26 |issue = 2|pages=145–185|year=1994 |doi=10.1145/176979.176981|citeseerx = 10.1.1.41.3889|s2cid=207178693 }} RAID 5 requires at least three disks.{{cite web | url = http://www.vantagetech.com/faq/raid-5-recovery-faq.html | title = RAID 5 Data Recovery FAQ | access-date = 2014-07-16 | publisher = Vantage Technologies | website = VantageTech.com}}
There are many layouts of data and parity in a RAID 5 disk drive array depending upon the sequence of writing across the disks,{{cite web
|url=https://www.accs.com/p_and_p/RAID/LinuxRAID.html
|title=RAID Information - Linux RAID-5 Algorithms |website=Ashford computer Consulting Service |access-date=February 16, 2021}} that is:
- the sequence of data blocks written, left to right or right to left on the disk array, of disks 0 to N.
- the location of the parity block at the beginning or end of the stripe.
- the location of the first block of a stripe with respect to parity of the previous stripe.
The figure shows 1) data blocks written left to right, 2) the parity block at the end of the stripe and 3) the first block of the next stripe not on the same disk as the parity block of the previous stripe. It can be designated as a Left Asynchronous RAID 5 layout and this is the only layout identified in the last edition of The Raid Book{{cite book
|last= Massigilia |first=Paul |date= February 1997 |title=The RAID Book, 6th Edition |publisher=RAID Advisory Board |pages=101–129}} published by the defunct Raid Advisory Board.{{cite web |url=http://www.raid-advisory.com:80/index.html
|title=Welcome to the RAID Advisory Board |date=April 6, 2001 |publisher=RAID Advisory Board |archive-url=https://web.archive.org/web/20010406190825/http://www.raid-advisory.com:80/index.html |access-date=February 16, 2021|archive-date=2001-04-06 }} Last valid archived webpage at Wayback Machine In a Synchronous layout the data first block of the next stripe is written on the same drive as the parity block of the previous stripe.
In comparison to RAID 4, RAID 5's distributed parity evens out the stress of a dedicated parity disk among all RAID members. Additionally, write performance is increased since all RAID members participate in the serving of write requests. Although it will not be as efficient as a striping (RAID 0) setup, because parity must still be written, this is no longer a bottleneck.{{Cite web |title=Basic RAID Organizations |url=http://www.ecs.umass.edu/ece/koren/architecture/Raid/basicRAID.html |first=Israel |last=Koren |publisher=University of Massachusetts |website=ECS.UMass.edu |access-date=2014-11-04}}
Since parity calculation is performed on the full stripe, small changes to the array experience write amplification{{citation needed|date=March 2020}}: in the worst case when a single, logical sector is to be written, the original sector and the according parity sector need to be read, the original data is removed from the parity, the new data calculated into the parity and both the new data sector and the new parity sector are written.
{{Clear}}
RAID 6
File:RAID 6.svg block]]
RAID 6 extends RAID 5 by adding a second parity block; thus, it uses block-level striping with two parity blocks distributed across all member disks.{{cite web
| url = https://docs.oracle.com/cd/E19494-01/820-1260-15/appendixf.html#50548797_51002
| title = Sun StorageTek SAS RAID HBA Installation Guide, Appendix F: Selecting the Best RAID Level: RAID 6 Arrays
| date = 2010-12-23 | access-date = 2015-08-27
| website = Docs.Oracle.com
}} RAID 6 requires at least four disks.
As in RAID 5, there are many layouts of RAID 6 disk arrays depending upon the direction the data blocks are written, the location of the parity blocks with respect to the data blocks and whether or not the first data block of a subsequent stripe is written to the same drive as the last parity block of the prior stripe. The figure to the right is just one of many such layouts.
According to the Storage Networking Industry Association (SNIA), the definition of RAID 6 is: "Any form of RAID that can continue to execute read and write requests to all of a RAID array's virtual disks in the presence of any two concurrent disk failures. Several methods, including dual check data computations (parity and Reed–Solomon), orthogonal dual parity check data and diagonal parity, have been used to implement RAID Level 6."{{Cite web|url=http://www.snia.org/education/dictionary/r/ |title=Dictionary R |website=SNIA.org |publisher=Storage Networking Industry Association |access-date = 2007-11-24}}
The second block is usually labeled Q, with the first block labeled P. Typically the P block is calculated as the parity (XORing) of the data, the same as RAID 5.
Different implementations of RAID 6 use different erasure codes to calculate the Q block, often one of
Reed Solomon,
EVENODD,
Row Diagonal Parity (RDP),
Mojette, or
Dimitri Pertin, Alexandre van Kempen, Benoît Parrein, Nicolas Normand. [https://hal.science/hal-01162047/document "Comparison of RAID-6 Erasure Codes"].
The third Sino-French Workshop on Information and Communication Technologies,
SIFWICT 2015, Jun 2015, Nantes, France. ffhal-01162047f
James S. Plank.
[https://www.usenix.org/legacy/event/fast08/tech/full_papers/plank/plank_html "The RAID-6 Liberation Codes"].
[https://ranger.uta.edu/~jiang/publication/Conferences/2020/IPDPS20-Zhijie.pdf "Optimal Encoding and Decoding Algorithms for the RAID-6 Liberation Codes"].
James S. Plank.
[https://www.usenix.org/system/files/login/articles/10_plank-online.pdf "Erasure Codes for Storage Systems: A Brief Primer"].
= Performance =
RAID 6 does not have a performance penalty for read operations, but it does have a performance penalty on write operations because of the overhead associated with parity calculations. Performance varies greatly depending on how RAID 6 is implemented in the manufacturer's storage architecture—in software, firmware, or by using firmware and specialized ASICs for intensive parity calculations. RAID 6 can read up to the same speed as RAID 5 with the same number of physical drives.{{Cite web|first=Rickard E.|last=Faith|title=A Comparison of Software RAID Types|url=http://alephnull.com/benchmarks/sata2009/raidtype.html|date=13 May 2009|url-status=live|archiveurl=https://web.archive.org/web/20150530003857/http://alephnull.com/benchmarks/sata2009/raidtype.html|archivedate=30 May 2015}}
When either diagonal or orthogonal dual parity is used, a second parity calculation is necessary for write operations. This doubles CPU overhead for RAID-6 writes, versus single-parity RAID levels. When a Reed Solomon code is used, the second parity calculation is unnecessary.{{Citation needed|date=January 2023|reason=All fully functioning RAID-6 systems have 2 additional blocks per stripe in addition to the data blocks; every time the stripe is written, it *is* necessary for both the first and the second block must be re-calculated and re-written to keep the RAID-6 system fully functioning.}} Reed Solomon coding also has the advantage of allowing all redundancy information to be contained within a given stripe.{{Clarify|date=January 2023|reason= this seems misleading -- all the redundancy information is contained within a given stripe even if we don't use Reed Solomon, but instead use RAID-6 Liberation Codes, RAID-5 parity, RAID-1 mirroring, or etc., so how is this an "advantage"?}}
= General parity system =
It is possible to support a far greater number of drives by choosing the parity function more carefully. The issue we face is to ensure that a system of equations over the finite field has a unique solution. To do this, we can use the theory of polynomial equations over finite fields.
Consider the Galois field with . This field is isomorphic to a polynomial field for a suitable irreducible polynomial of degree over . We will represent the data elements as polynomials in the Galois field. Let correspond to the stripes of data across hard drives encoded as field elements in this manner. We will use to denote addition in the field, and concatenation to denote multiplication. The reuse of is intentional: this is because addition in the finite field represents to the XOR operator, so computing the sum of two elements is equivalent to computing XOR on the polynomial coefficients.
A generator of a field is an element of the field such that is different for each non-negative
{{block indent|
\mathbf{P} = \bigoplus_i{\mathbf{D}_i} = \mathbf{D}_0 \;\oplus\; \mathbf{D}_1 \;\oplus\; \mathbf{D}_2 \;\oplus\; ... \;\oplus\; \mathbf{D}_{n-1}}}
{{block indent|
\mathbf{Q} = \bigoplus_i{g^i\mathbf{D}_i} = g^0\mathbf{D}_0 \;\oplus\; g^1\mathbf{D}_1 \;\oplus\; g^2\mathbf{D}_2 \;\oplus\; ... \;\oplus\; g^{n-1}\mathbf{D}_{n-1}
}}
As before, the first checksum
If one data chunk is lost, the situation is similar to the one before. In the case of two lost data chunks, we can compute the recovery formulas algebraically. Suppose that
{{block indent|
A = \mathbf{P} \;\oplus\; (\bigoplus_{\ell:\;\ell\not=i\;\mathrm{and}\;\ell\not=j}{D_\ell}) = D_i \oplus D_j
}}
{{block indent|
B = \mathbf{Q} \;\oplus\; (\bigoplus_{\ell:\;\ell\not=i\;\mathrm{and}\;\ell\not=j}{g^{\ell}D_\ell}) = g^iD_i \oplus g^jD_j
}}
We can solve for
Unlike P, The computation of Q is relatively CPU intensive, as it involves polynomial multiplication in
The above Vandermonde matrix solution can be extended to triple parity, but for beyond a Cauchy matrix construction is required.{{cite web |title=bcachefs-tools: raid.c |website=GitHub |url=https://github.com/koverstreet/bcachefs-tools/blob/1f78fed4693a5361f56508daac59bebd5b556379/raid/raid.c#L52 |date=27 May 2023}}
Comparison
{{See also|Nested RAID levels#Comparison}}
The following table provides an overview of some considerations for standard RAID levels. In each case, array space efficiency is given as an expression in terms of the number of drives, {{mvar|n}}; this expression designates a fractional value between zero and one, representing the fraction of the sum of the drives' capacities that is available for use. For example, if three drives are arranged in RAID 3, this gives an array space efficiency of {{math|1 − 1/n {{=}} 1 − 1/3 {{=}} 2/3 ≈ 67%}}; thus, if each drive in this example has a capacity of 250 GB, then the array has a total capacity of 750 GB but the capacity that is usable for data storage is only 500 GB. Different RAID configurations can also detect failure during so called data scrubbing.
Historically disks were subject to lower reliability and RAID levels were also used to detect which disk in the array had failed in addition to that a disk had failed. Though as noted by Patterson et al. even at the inception of RAID many (though not all) disks were already capable of finding internal errors using error correcting codes. In particular it is/was sufficient to have a mirrored set of disks to detect a failure, but two disks were not sufficient to detect which had failed in a disk array without error correcting features.{{cite book |last1=Patterson |first1=David A. |last2=Gibson |first2=Garth |last3=Katz |first3=Randy H. |title=Proceedings of the 1988 ACM SIGMOD international conference on Management of data - SIGMOD '88 |chapter=A case for redundant arrays of inexpensive disks (RAID) |date=1988 |pages=112 |doi=10.1145/50202.50214 |isbn=0897912683 |s2cid=52859427 |access-date=25 June 2022 |chapter-url=https://www.cs.cmu.edu/~garth/RAIDpaper/Patterson88.pdf|quote=A single parity disk can detect a single error, but to correct an error we need enough check disks to identify the disk with the error. [...] Most check disks in the level 2 RAID are used to determine which disk failed, for only one redundant parity disk is needed to detect an error. These extra disks are truly “redundant” since most disk controllers can already detect If a dusk failed either through special signals provided in the disk interface or the extra checking information at the end of a sector}} Modern RAID arrays depend for the most part on a disk's ability to identify itself as faulty which can be detected as part of a scrub. The redundant information is used to reconstruct the missing data, rather than to identify the faulted drive. Drives are considered to have faulted if they experience an unrecoverable read error, which occurs after a drive has retried many times to read data and failed. Enterprise drives may also report failure in far fewer tries than consumer drives as part of TLER to ensure a read request is fulfilled in a timely manner.{{cite web |title=Enterprise vs Desktop Harddrives |url=https://www.intel.com/content/dam/support/us/en/documents/server-products/Enterprise_vs_Desktop_HDDs_2.0.pdf |website=Intel.com |publisher=Intel |page=10}}
class="wikitable sortable" style="text-align: center;" |
rowspan=2 | Level
! rowspan=2 | Description ! rowspan=2 | Minimum number of drives{{Efn|name="NonDegenerate"|Assumes a non-degenerate minimum number of drives}} ! rowspan=2 | Space efficiency ! rowspan=2 | Fault tolerance ! rowspan=2 | Fault isolation ! Read performance ! Write performance |
---|
colspan=2 | as factor of single disk |
RAID 0
| Block-level striping without parity or mirroring | 2 | {{math|1}} | None | Drive Firmware Only | {{mvar|n}} | {{mvar|n}} |
RAID 1
| Mirroring without parity or striping | 2 | {{math|{{sfrac|1|n}}}} | {{math|n − 1}} drive failures | Drive Firmware or voting if {{math|n > 2}} | {{mvar|n}}{{Efn|name="raid1-read"}} | {{math|1}}{{Efn|name="raid1-write"|If disks with different speeds are used in a RAID 1 array, overall write performance is equal to the speed of the slowest disk.}} |
RAID 2
| Bit-level striping with Hamming code for error correction | 3 | {{math|1 − {{sfrac|1|n}} log2 (n + 1)}} | One drive failure{{Efn|RAID 2 can recover from one drive failure or repair corrupt data or parity when a corrupted bit's corresponding data and parity are good.}} | Drive Firmware and Parity | {{Depends}}{{Clarify|date=March 2023}} | {{Depends}}{{Clarify|date=March 2023}} |
RAID 3
| Byte-level striping with dedicated parity | 3 | {{math|1 − {{sfrac|1|n}}}} | One drive failure | Drive Firmware and Parity | {{math|n − 1}} | {{math|n − 1}}{{Efn|name="FastHardware"|Assumes hardware capable of performing associated calculations fast enough}} |
RAID 4
| Block-level striping with dedicated parity | 3 | {{math|1 − {{sfrac|1|n}}}} | One drive failure | Drive Firmware and Parity | {{math|n − 1}} | {{math|n − 1}}{{Efn|name="FastHardware"}}{{Citation needed|date=April 2014}} |
RAID 5
| Block-level striping with distributed parity | 3 | {{math|1 − {{sfrac|1|n}}}} | One drive failure | Drive Firmware and Parity | {{mvar|n}}{{Efn|name="FastHardware"}} | single sector: {{math|{{sfrac|1|4}}}}{{efn|name=RMWRCW|When modifying less than a stripe of data, RAID 5 and 6 requires the use of read-modify-write (RMW) or reconstruct-write (RCW) to reduce a small-write penalty. RMW writes data after reading the current stripe (so that it can have a difference to update the parity with); the spinaround time gives a fractional factor of 2, and the number of disks to write gives another factor of 2 in RAID 5 and 3 in RAID 6. RCW writes immediately, than reconstructs the parity by reading all associated stripes from other disks. RCW is usually faster than RMW when the number of disks is small, but has the downside of waking up all disks (additional start-stop cycles may shorten lifespan). RCW is the only possible write method for a degraded stripe.{{cite journal |last1=Thomasian |first1=Alexander |title=Reconstruct versus read-modify writes in RAID |journal=Information Processing Letters |date=February 2005 |volume=93 |issue=4 |pages=163–168 |doi=10.1016/j.ipl.2004.10.009}}}} |
RAID 6
| Block-level striping with double distributed parity | 4 | {{math|1 − {{sfrac|2|n}}}} | Two drive failures | Drive Firmware and Parity | {{mvar|n}}{{Efn|name="FastHardware"}} | single sector: {{math|{{sfrac|1|6}}}}{{efn|name=RMWRCW}} |
System implications
In measurement of the I/O performance of five filesystems with five storage configurations—single SSD, RAID 0, RAID 1, RAID 10, and RAID 5 it was shown that F2FS on RAID 0 and RAID 5 with eight SSDs outperforms EXT4 by 5 times and 50 times, respectively. The measurements also suggest that the RAID controller can be a significant bottleneck in building a RAID system with high speed SSDs.{{cite book
| last1 = Park
| first1 = Chanhyun
| last2 = Lee
| first2 = Seongjin
| last3 = Won
| first3 = Youjip
| title = Information Sciences and Systems 2014
| chapter = An Analysis on Empirical Performance of SSD-Based RAID
| date = 2014
| url = https://scholar.google.co.kr/scholar?cluster=1955840554275208892
| language = en
| journal = Information Sciences and Systems
| volume = 2014
| pages = 395–405
| doi = 10.1007/978-3-319-09465-6_41
| isbn = 978-3-319-09464-9
}}
Nested RAID
{{Main article|Nested RAID levels}}
Combinations of two or more standard RAID levels. They are also known as RAID 0+1 or RAID 01, RAID 0+3 or RAID 03, RAID 1+0 or RAID 10, RAID 5+0 or RAID 50, RAID 6+0 or RAID 60, and RAID 10+0 or RAID 100.
Non-standard variants
{{Main article|Non-standard RAID levels|Non-RAID drive architectures}}
In addition to standard and nested RAID levels, alternatives include non-standard RAID levels, and non-RAID drive architectures. Non-RAID drive architectures are referred to by similar terms and acronyms, notably JBOD ("just a bunch of disks"), SPAN/BIG, and MAID ("massive array of idle disks").
Notes
{{Notelist|40em}}
References
{{Reflist|40em}}
Further reading
- {{Cite web|title=Learning About RAID|url=http://support.dell.com/support/topics/global.aspx/support/entvideos/raid?c=us&l=en&s=gen|archive-url=https://web.archive.org/web/20090220092914/http://support.dell.com/support/topics/global.aspx/support/entvideos/raid?c=us&l=en&s=gen|website=Support.Dell.com|publisher=Dell|date=2009|archive-date=2009-02-20|access-date=2016-04-15}}
- [http://pages.cs.wisc.edu/~remzi/OSTEP/file-raid.pdf Redundant Arrays of Inexpensive Disks (RAIDs)], chapter 38 from the Operating Systems: Three Easy Pieces book by Remzi H. Arpaci-Dusseau and Andrea C. Arpaci-Dusseau
External links
- [https://www.ibm.com/support/knowledgecenter/POWER8/p8ebk/raidlevelsummary.htm IBM summary on RAID levels]
- [https://www.icc-usa.com/raid-calculator/ RAID Calculator for Standard RAID Levels and Other RAID Tools]
- [https://docs.oracle.com/cd/E19168-01/817-3337-18/appa_raid_basic.html Sun StorEdge 3000 Family Configuration Service 2.5 User's Guide: RAID Basics]
{{RAID}}