<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Texastwister</id>
	<title>LQWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Texastwister"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/wiki/Special:Contributions/Texastwister"/>
	<updated>2026-04-12T05:19:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=33033</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=33033"/>
		<updated>2007-03-31T05:18:41Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: /* Combination RAID Levels */  spelling correction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device. This can be done without RAID using [[symlink]]s and well designed [[mount point]]s, but may be easier to set up with RAID.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID? ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.  True hardware RAID controllers are based on SCSI controllers or SAS (Serial-Attached-SCSI) controllers.  While there are a few IDE-based or SATA-based RAID controllers that are true hardware RAID controllers in the conventional sense, in many cases these cards are actually driver-based RAID as explained below.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by software (most often by the OS itself).  This does add a small amount of additional overhead to the system CPU, but in most systems it is a negligable amount.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== What is Driver-based RAID or Fake-RAID? ===&lt;br /&gt;
Some &amp;quot;RAID cards&amp;quot;, most notably a large number of SATA (serial ATA) RAID controllers are marketed as though they are true hardware RAID controllers -- when in fact they are little more than plain SATA controllers that are shipped with a device driver (usually Windows-only) that implements software RAID at a driver level instead of in the OS kernel. In these devices, the driver passes the tasks of creating the arrays, calculating parity, and etc., to the system CPU -- thus differing little in effect from software RAID as discussed above.&lt;br /&gt;
&lt;br /&gt;
An additional drawback to such cards stems from the fact that most vendors initially provide full RAID functionality only in the Windows versions of their drivers.  In Linux, many such cards must be configured as ordinary IDE or SATA controllers and then the OS is used to provide RAID functionality with normal software RAID.&lt;br /&gt;
&lt;br /&gt;
See http://linux-ata.org/faq-sata-raid.html for more information.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
RAID-0 is popular amongst gamers, for whom performance is more important than reduced reliability.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). In theory the speed of a RAID-0 array is roughly that of the slowest drive times the number of drives, although it will usually be slower in the real world.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of stripe sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1: Mirroring of Stripe sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 0+1 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 0+1 of four 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of Stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 0+1 can withstand the failure of a single drive (or multiple drives, so long as they are all from the same stripe set).&lt;br /&gt;
&lt;br /&gt;
=== RAID 10: Striping across Mirror sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 10 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 10 of four 10 GB disks, the usable size of the array is 20 GB. &lt;br /&gt;
&lt;br /&gt;
RAID 0+1 and RAID 10 are very similar but, by most measures of both performance and redundancy, RAID 10 is considered to be preferable.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across Mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 10 can withstand the failure of a single drive (or multiple drives, so long as they are NOT in the same mirror set).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50: Striping across RAID 5 sets===&lt;br /&gt;
&lt;br /&gt;
RAID 50 provides better write performance and improved redundancy over simple RAID 5 along with the redundancy that simple RAID 0 lacks. It requires at least six drives to implement and (assuming all drives are the same size) provides usable space equal to S * (N-1) * R where 'S' is the size of the smallest of the hard drives being used, 'N' is the number of disks in each RAID 5 array, and 'R' is the number of RAID 5 sets used in the stripe set. So, if I form a RAID 50 of six 10 GB disks, the usable size of the array is 40 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data5&lt;br /&gt;
Parity 9,11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Parity 5,7&lt;br /&gt;
Data9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 1,3&lt;br /&gt;
Data7&lt;br /&gt;
Data11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data6&lt;br /&gt;
Parity 10,12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data4&lt;br /&gt;
Parity 6,8&lt;br /&gt;
Data10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 2,4&lt;br /&gt;
Data8&lt;br /&gt;
Data12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 50 can withstand the failure of one drive in each RAID 5.&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
Linux software RAID can be configured in several different ways.  Some installation tools allow for the creation of arrays during the OS install.  An older (but still maintained) set of tools known collectively as ''raidtools'' can be used to create or modify an array after the OS install.  A newer tool known as mdadm is considered by some to be easier to use.&lt;br /&gt;
&lt;br /&gt;
Post-installation configuration of Linux software RAID consists of several steps:&lt;br /&gt;
&lt;br /&gt;
* Create partitions for use. Configure them as Linux RAID Automounting partitions (hex code &amp;quot;fd&amp;quot;)&lt;br /&gt;
* Use mdadm to create the array.&lt;br /&gt;
* Create the /etc/raidtab file (lsraid -R -p is useful to generate a template raidtab file, but it may require some editing).&lt;br /&gt;
* Create a filesystem on the partition&lt;br /&gt;
* Mount the partition and/or add the partition to /etc/fstab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
Partitioning is always a thorny problem. People have trouble with their root and boot file systems running in software RAID configurations, although both are possible. If hardware is managing your RAID, you probably won't be reading this. NB Some so-called RAID controllers are nothing more than a BIOS front for two IDE ports: e.g. [[Promise]] [[FastTrak]]. This is [[Software Raid]], like a [[WinModem]] is a type of modem.&lt;br /&gt;
&lt;br /&gt;
You can use the partition type 'FD' (the hex value) for linux RAID autodetect. If you have the right stuff compiled in or a terribly complicated initrd setup), the arrays should be detected at boot time, then all your configuration is complete and you can refer to the drives as /dev/md*.&lt;br /&gt;
This is better than having post boot init scripts to sort out the raid, and allows the root partition to be raided.&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
The raidtools/raidtools2 package seems out of date. Use the concise mdadm tool to build your software managed RAID arrays.&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
Or duplicate one. A common strategy in migrating to RAID is to create matching partitions on the new empty disk, copy the data over, then set up 'degraded' arrays.&lt;br /&gt;
&lt;br /&gt;
mdadm --create /dev/md0 --raid-level=raid1 -n=2 missing /dev/hdg5&lt;br /&gt;
&lt;br /&gt;
where hdg5 is the newly create partition. &amp;quot;MISSING&amp;quot; will be added into the raid array once the configuration of the array is otherwise complete. This allows a lower-risk migration, although backups are essential.&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
This is not necessary if you have the kernel autodetecting the arrays at boot time&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=33032</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=33032"/>
		<updated>2007-03-31T04:57:40Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: /* What is the Difference Between Software and Hardware RAID */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device. This can be done without RAID using [[symlink]]s and well designed [[mount point]]s, but may be easier to set up with RAID.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID? ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.  True hardware RAID controllers are based on SCSI controllers or SAS (Serial-Attached-SCSI) controllers.  While there are a few IDE-based or SATA-based RAID controllers that are true hardware RAID controllers in the conventional sense, in many cases these cards are actually driver-based RAID as explained below.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by software (most often by the OS itself).  This does add a small amount of additional overhead to the system CPU, but in most systems it is a negligable amount.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== What is Driver-based RAID or Fake-RAID? ===&lt;br /&gt;
Some &amp;quot;RAID cards&amp;quot;, most notably a large number of SATA (serial ATA) RAID controllers are marketed as though they are true hardware RAID controllers -- when in fact they are little more than plain SATA controllers that are shipped with a device driver (usually Windows-only) that implements software RAID at a driver level instead of in the OS kernel. In these devices, the driver passes the tasks of creating the arrays, calculating parity, and etc., to the system CPU -- thus differing little in effect from software RAID as discussed above.&lt;br /&gt;
&lt;br /&gt;
An additional drawback to such cards stems from the fact that most vendors initially provide full RAID functionality only in the Windows versions of their drivers.  In Linux, many such cards must be configured as ordinary IDE or SATA controllers and then the OS is used to provide RAID functionality with normal software RAID.&lt;br /&gt;
&lt;br /&gt;
See http://linux-ata.org/faq-sata-raid.html for more information.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
RAID-0 is popular amongst gamers, for whom performance is more important than reduced reliability.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). In theory the speed of a RAID-0 array is roughly that of the slowest drive times the number of drives, although it will usually be slower in the real world.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1: Mirroring of Stripe sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 0+1 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 0+1 of four 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of Stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 0+1 can withstand the failure of a single drive (or multiple drives, so long as they are all from the same stripe set).&lt;br /&gt;
&lt;br /&gt;
=== RAID 10: Striping across Mirror sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 10 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 10 of four 10 GB disks, the usable size of the array is 20 GB. &lt;br /&gt;
&lt;br /&gt;
RAID 0+1 and RAID 10 are very similar but, by most measures of both performance and redundancy, RAID 10 is considered to be preferable.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across Mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 10 can withstand the failure of a single drive (or multiple drives, so long as they are NOT in the same mirror set).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50: Striping across RAID 5 sets===&lt;br /&gt;
&lt;br /&gt;
RAID 50 provides better write performance and improved redundancy over simple RAID 5 along with the redundancy that simple RAID 0 lacks. It requires at least six drives to implement and (assuming all drives are the same size) provides usable space equal to S * (N-1) * R where 'S' is the size of the smallest of the hard drives being used, 'N' is the number of disks in each RAID 5 array, and 'R' is the number of RAID 5 sets used in the stripe set. So, if I form a RAID 50 of six 10 GB disks, the usable size of the array is 40 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data5&lt;br /&gt;
Parity 9,11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Parity 5,7&lt;br /&gt;
Data9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 1,3&lt;br /&gt;
Data7&lt;br /&gt;
Data11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data6&lt;br /&gt;
Parity 10,12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data4&lt;br /&gt;
Parity 6,8&lt;br /&gt;
Data10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 2,4&lt;br /&gt;
Data8&lt;br /&gt;
Data12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 50 can withstand the failure of one drive in each RAID 5.&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
Linux software RAID can be configured in several different ways.  Some installation tools allow for the creation of arrays during the OS install.  An older (but still maintained) set of tools known collectively as ''raidtools'' can be used to create or modify an array after the OS install.  A newer tool known as mdadm is considered by some to be easier to use.&lt;br /&gt;
&lt;br /&gt;
Post-installation configuration of Linux software RAID consists of several steps:&lt;br /&gt;
&lt;br /&gt;
* Create partitions for use. Configure them as Linux RAID Automounting partitions (hex code &amp;quot;fd&amp;quot;)&lt;br /&gt;
* Use mdadm to create the array.&lt;br /&gt;
* Create the /etc/raidtab file (lsraid -R -p is useful to generate a template raidtab file, but it may require some editing).&lt;br /&gt;
* Create a filesystem on the partition&lt;br /&gt;
* Mount the partition and/or add the partition to /etc/fstab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
Partitioning is always a thorny problem. People have trouble with their root and boot file systems running in software RAID configurations, although both are possible. If hardware is managing your RAID, you probably won't be reading this. NB Some so-called RAID controllers are nothing more than a BIOS front for two IDE ports: e.g. [[Promise]] [[FastTrak]]. This is [[Software Raid]], like a [[WinModem]] is a type of modem.&lt;br /&gt;
&lt;br /&gt;
You can use the partition type 'FD' (the hex value) for linux RAID autodetect. If you have the right stuff compiled in or a terribly complicated initrd setup), the arrays should be detected at boot time, then all your configuration is complete and you can refer to the drives as /dev/md*.&lt;br /&gt;
This is better than having post boot init scripts to sort out the raid, and allows the root partition to be raided.&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
The raidtools/raidtools2 package seems out of date. Use the concise mdadm tool to build your software managed RAID arrays.&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
Or duplicate one. A common strategy in migrating to RAID is to create matching partitions on the new empty disk, copy the data over, then set up 'degraded' arrays.&lt;br /&gt;
&lt;br /&gt;
mdadm --create /dev/md0 --raid-level=raid1 -n=2 missing /dev/hdg5&lt;br /&gt;
&lt;br /&gt;
where hdg5 is the newly create partition. &amp;quot;MISSING&amp;quot; will be added into the raid array once the configuration of the array is otherwise complete. This allows a lower-risk migration, although backups are essential.&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
This is not necessary if you have the kernel autodetecting the arrays at boot time&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=21946</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=21946"/>
		<updated>2006-01-18T22:23:59Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: /* RAID-0 */ typos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device. This can be done without RAID using [[symlink]]s and well designed [[mount point]]s, but may be easier to set up with RAID.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
RAID-0 is popular amongst gamers, for whom performance is more important than reduced reliability.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). In theory the speed of a RAID-0 array is roughly that of the slowest drive times the number of drives, although it will usually be slower in the real world.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1: Mirroring of Stripe sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 0+1 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 0+1 of four 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of Stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 0+1 can withstand the failure of a single drive (or multiple drives, so long as they are all from the same stripe set).&lt;br /&gt;
&lt;br /&gt;
=== RAID 10: Striping across Mirror sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 10 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 10 of four 10 GB disks, the usable size of the array is 20 GB. &lt;br /&gt;
&lt;br /&gt;
RAID 0+1 and RAID 10 are very similar but, by most measures of both performance and redundancy, RAID 10 is considered to be preferable.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across Mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 10 can withstand the failure of a single drive (or multiple drives, so long as they are NOT in the same mirror set).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50: Striping across RAID 5 sets===&lt;br /&gt;
&lt;br /&gt;
RAID 50 provides better write performance and improved redundancy over simple RAID 5 along with the redundancy that simple RAID 0 lacks. It requires at least six drives to implement and (assuming all drives are the same size) provides usable space equal to S * (N-1) * R where 'S' is the size of the smallest of the hard drives being used, 'N' is the number of disks in each RAID 5 array, and 'R' is the number of RAID 5 sets used in the stripe set. So, if I form a RAID 50 of six 10 GB disks, the usable size of the array is 40 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data5&lt;br /&gt;
Parity 9,11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Parity 5,7&lt;br /&gt;
Data9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 1,3&lt;br /&gt;
Data7&lt;br /&gt;
Data11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data6&lt;br /&gt;
Parity 10,12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data4&lt;br /&gt;
Parity 6,8&lt;br /&gt;
Data10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 2,4&lt;br /&gt;
Data8&lt;br /&gt;
Data12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 50 can withstand the failure of one drive in each RAID 5.&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
Linux software RAID can be configured in several different ways.  Some installation tools allow for the creation of arrays during the OS install.  An older (but still maintained) set of tools known collectively as ''raidtools'' can be used to create or modify an array after the OS install.  A newer tool known as mdadm is considered by some to be easier to use.&lt;br /&gt;
&lt;br /&gt;
Post-installation configuration of Linux software RAID consists of several steps:&lt;br /&gt;
&lt;br /&gt;
* Create partitions for use. Configure them as Linux RAID Automounting partitions (hex code &amp;quot;fd&amp;quot;)&lt;br /&gt;
* Use mdadm to create the array.&lt;br /&gt;
* Create the /etc/raidtab file (lsraid -R -p is useful to generate a template raidtab file, but it may require some editing).&lt;br /&gt;
* Create a filesystem on the partition&lt;br /&gt;
* Mount the partition and/or add the partition to /etc/fstab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
Partitioning is always a thorny problem. People have trouble with their root and boot file systems running in software RAID configurations, although both are possible. If hardware is managing your RAID, you probably won't be reading this. NB Some so-called RAID controllers are nothing more than a BIOS front for two IDE ports: e.g. [[Promise]] [[FastTrak]]. This is [[Software Raid]], like a [[WinModem]] is a type of modem.&lt;br /&gt;
&lt;br /&gt;
You can use the partition type 'FD' (the hex value) for linux RAID autodetect. If you have the right stuff compiled in or a terribly complicated initrd setup), the arrays should be detected at boot time, then all your configuration is complete and you can refer to the drives as /dev/md*.&lt;br /&gt;
This is better than having post boot init scripts to sort out the raid, and allows the root partition to be raided.&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
The raidtools/raidtools2 package seems out of date. Use the concise mdadm tool to build your software managed RAID arrays.&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
Or duplicate one. A common strategy in migrating to RAID is to create matching partitions on the new empty disk, copy the data over, then set up 'degraded' arrays.&lt;br /&gt;
&lt;br /&gt;
mdadm --create /dev/md0 --raid-level=raid1 -n=2 missing /dev/hdg5&lt;br /&gt;
&lt;br /&gt;
where hdg5 is the newly create partition. &amp;quot;MISSING&amp;quot; will be added into the raid array once the configuration of the array is otherwise complete. This allows a lower-risk migration, although backups are essential.&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
This is not necessary if you have the kernel autodetecting the arrays at boot time&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=MrProject&amp;diff=21100</id>
		<title>MrProject</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=MrProject&amp;diff=21100"/>
		<updated>2005-12-10T07:05:17Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Planner was removed from Gnome Office&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''MrProject''' is an older name for an open-source project management application that is now known as Imendio Planner or Gnome Planner. Versions prior to 0.11 were known as MrProject and development was coordinated by a software company called Code Factory.  With version 0.11, the coordinating role was assumed by European software company Imendio and the application was renamed to Imendio Planner.  &lt;br /&gt;
&lt;br /&gt;
MrProject/Planner was once a part of [[GNOME Office]].  It was removed in December 2003, apparently because the pace of development was lagging too far behind that of the other components.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://mrproject.codefactory.se/ MrProject homepage]&lt;br /&gt;
*[http://www.gnome.org/gnome-office/ Gnome Office homepage]&lt;br /&gt;
*[http://developer.imendio.com/wiki/Planner Development Wiki for Imendio Planner]&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=MrProject&amp;diff=19222</id>
		<title>MrProject</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=MrProject&amp;diff=19222"/>
		<updated>2005-12-10T06:44:25Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Note namechange from MrProject to Imendio Planner.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''MrProject''' is an older name for an open-source project management application that is now known as Imendio Planner or Gnome Planner. Versions prior to 0.11 were known as MrProject and development was coordinated by a software company called Code Factory.  With version 0.11, the coordinating role was assumed by European software company Imendio and the application was renamed to Imendio Planner.  Planner is a part of [[GNOME Office]].&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://mrproject.codefactory.se/ MrProject homepage]&lt;br /&gt;
*[http://www.gnome.org/gnome-office/ Gnome Office homepage]&lt;br /&gt;
http://developer.imendio.com/wiki/Planner&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Mandriva&amp;diff=9230</id>
		<title>Mandriva</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Mandriva&amp;diff=9230"/>
		<updated>2004-04-30T17:57:53Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Inserted a missing space.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Mandrake''' Linux was created in 1998 with the goal of making [[Linux]] easier to use for everyone. At that time, Linux was still a developer's [[operating system]] and sound knowledge of the [[CLI]] was a must.&lt;br /&gt;
&lt;br /&gt;
[http://www.mandrakesoft.com MandrakeSoft] (the company which produces the Mandrake [[distribution]]) saw this as an opportunity to integrate the best graphical [[desktop environment]]s and contribute its own graphical configuration utilities and quickly became popular for setting the standard in ease-of-use and functionality. In order to achieve this they forked from [[Red Hat]], retained the [[RPM]]-based [[package]] management, and evolved from there.&lt;br /&gt;
&lt;br /&gt;
It was one of the first distributions to be optimized for [[i586]] [[processor]]s (and superior). It developed a graphical installation process recognized by many as the best available, with advanced and efficient hardware detection. Mandrake Linux was also the first rpm-based distribution to provide automatic resolution of dependencies, with urpmi, which debuted in version 7.2. urpmi is now capable of updating the entire distribution, installing security updates, and many other features. A graphical interface to urpmi is provided in rpmdrake (and the MandrakeUpdate tool specifically for security updates). &lt;br /&gt;
&lt;br /&gt;
The [[GPL]] (General Public License) governs the development and redistribution of Mandrake Linux and Mandrake Linux is community-driven to a large degree. Non-MandrakeSoft contributors have write access to packages in the main distribution, commit access to Mandrake's own tools in [[CVS]], full bug tracking rights in [http://qa.mandrakesoft.com Mandrake's bugzilla] and the [http://qa.mandrakesoft.com/wiki Mandrake Development wiki]. Over half the packages in the entire distribution (combining &amp;quot;main&amp;quot; and &amp;quot;contrib&amp;quot;) are maintained by the community. For non-developers, support is available from the unofficial [http://mandrake.vmlinuz.ca Mandrake community wiki] and the [http://www.mandrakeusers.org Mandrake Users Board].&lt;br /&gt;
&lt;br /&gt;
Although many see Mandrake as only a desktop-oriented distribution (and one of the best [[distribution]]s for the home desktop), a number of features give Mandrake some advantages over other distributions on servers. Successful cases of the use of Mandrake in business settings (in both desktop and server roles) are documented at [http://mandrakebizcases.com/ this site].&lt;br /&gt;
&lt;br /&gt;
Mandrake's most recent version is Mandrakelinux 10.0 Official.&lt;br /&gt;
&lt;br /&gt;
Distributions similar to Mandrake include:&lt;br /&gt;
&lt;br /&gt;
*[[Red Hat]] &lt;br /&gt;
*[[SuSE]] &lt;br /&gt;
*[[Lorma]] &lt;br /&gt;
*[[Libranet]]&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://www.mandrakelinux.com/en-us/ Official website]&lt;br /&gt;
*[http://www.mandrakelinux.com/en-us/concept.php3 Further information]&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Remote_desktop_connection&amp;diff=8386</id>
		<title>Remote desktop connection</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Remote_desktop_connection&amp;diff=8386"/>
		<updated>2004-04-16T05:05:37Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Clarified XDMCP&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several techniques which can be used to establish a '''remote desktop connection''' between one computer and another.&lt;br /&gt;
&lt;br /&gt;
[[ssh]] - SSH (secure shell) is one of the best remote login clients and servers, and is supplied with all Linux distributions.  SSH can be used for a terminal or console session (a command prompt) like Telnet, but can also be configured to &amp;quot;tunnel&amp;quot; individual X-Windows applications as well.  This would allow a user to, for example, log in to a remote system and launch a graphical application and have the application appear on the user's system.  In such a scenario, the application would appear but NOT the full desktop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[XDMCP|Remote X-Windows with XDMCP]] - XDMCP allows remote login and access to an entire [[GUI]] environment through an X display manager such as Gnome's GDM (so long as the option is enabled).&lt;br /&gt;
&lt;br /&gt;
[[VNC]] - VNC is also designed to forward an entire GUI environment.  It is less efficient than X-Windows but the traffic is compressed (for low bandwidth connections), and clients exist for every major [[OS]]. It has a degree of protection for passwords, but the data itself is sent without encryption. It can be made more secure by tunnelling the connection via ssh.&lt;br /&gt;
&lt;br /&gt;
[[Telnet]] - Telnet was one of the earliest attempts at remote administration.  It is now considered inherently insecure (it sends everything in clear text) and largely obsolete, but may have some niche uses on trusted networks.  Telnet provides only a console session with no capability of forwarding X-Windows applications or GUI environments.&lt;br /&gt;
&lt;br /&gt;
[[rlogin]] - rlogin allows remote logins using the [[BSD]] &amp;quot;r&amp;quot; [[protocol]].  The &amp;quot;r&amp;quot; suite of utilities has been rendered obsolete by SSH, and like Telnet, is considered too insecure for regular use.&lt;br /&gt;
&lt;br /&gt;
[[rdesktop]] - RDesktop is a Linux client that can attach to a Windows Server running Terminal Services or to the built-in Remote Desktop capability of Windows XP Pro.  It is ideal for many who prefer to work from a Linux system, but who have an occasional need to access a Windows machine.  RDesktop replicates a full Windows desktop in a window within Linux. -- also capabile of showing just one application&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[X11 forwarding with OpenSSH]] -- can forward your whole desktop, or just the application that you want..  X was built with this functionality in mind.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Networking]]&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Common_Tasks&amp;diff=8578</id>
		<title>Common Tasks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Common_Tasks&amp;diff=8578"/>
		<updated>2004-04-16T05:00:40Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Desktop Linux is still under heavy development. While we all wish Linux was so intuitive nobody needed instructions, currently that isn't always the case. This section is meant for '''notes and quick guides''' on how to perform common tasks on Linux. &lt;br /&gt;
&lt;br /&gt;
If a section isn't yet written and you are able to write it, please do so!&lt;br /&gt;
&lt;br /&gt;
== General user tasks ==&lt;br /&gt;
&lt;br /&gt;
===Productivity===&lt;br /&gt;
* [[Browsing tasks]] - browsing the WWW and downloading safely&lt;br /&gt;
* [[Burning a CDROM]] - some pointers on how to write CDs.&lt;br /&gt;
* [[Emailing tasks]] - sending and receiving emails, setting up different mail applications&lt;br /&gt;
* [[Office tasks]] - word processing, spreadsheet, presentation, image manipulation and other&lt;br /&gt;
* [[Scanning]] - use a [[Scanner]] to convert you paper documents or images to an electronic format&lt;br /&gt;
&lt;br /&gt;
===Fun===&lt;br /&gt;
* [[Gaming]] - pass some time ''not'' working&lt;br /&gt;
* [[Multimedia tasks]] - listen to music, extract CDs, watch videos and DVDs&lt;br /&gt;
* [[Talking to friends online]] - how to access common instant messaging networks, see also [[IM]].&lt;br /&gt;
&lt;br /&gt;
===Technical===&lt;br /&gt;
* [[Command Line User Interface]] - Techniques for better experience&lt;br /&gt;
* [[Connecting to the net]] -  using your modem/network connection to get online&lt;br /&gt;
* [[GRUB Menu]] - Single Task - Removing  old kernel entries from your GRUB Menu boot up selections.&lt;br /&gt;
* [http://home.gagme.com/greg/linux/usbcamera.php How to Connect a Digital Camera to Linux (outside link)] - an excellent how-to on connecting digital cameras to Linux.&lt;br /&gt;
* [[Installing Software]] - how to find and manage additional software on a running Linux system&lt;br /&gt;
* [[Installing Windows fonts]] - installing your Windows fonts so they work with your Linux install.&lt;br /&gt;
* [[screenshots|Taking screenshots]] - You want to show somebody your desktop? There are tools that will help you make a [[screenshots | screenshot]] and [[record your desktop]] so that you can send movie-files of how nice your desktop looks.&lt;br /&gt;
&lt;br /&gt;
== Power user tasks ==&lt;br /&gt;
&lt;br /&gt;
* [[Compiling a Kernel]] - here is a guide for compiling a kernel&lt;br /&gt;
* [[Configure Storage Devices]] - how to partition a hard drive, add a new hard drive, use software RAID, or use LVM (logical volume management).&lt;br /&gt;
* [[Getting help from IRC]] - LinuxQuestions is a great forum, but it isn't the only one. If you know how, the IRC chat networks can also be a useful resource.&lt;br /&gt;
* [[GRUB boot menu]] - Configuration Guide.&lt;br /&gt;
* [[Installing NVIDIA drivers]] - Information on installing the newer (but closed-source) drivers released by NVIDIA. These drivers are sometimes required to run some games, like Unreal or Quake.&lt;br /&gt;
* [[Recover a Terminal Session]] - What to do if your screen's garbaged.&lt;br /&gt;
* [[Remote_Desktop_Connection|Access your System Remotely]] - Access your Linux system from another computer (running Linux, or some other OS) or use your Linux box to access another computer (running Linux, or some other OS).&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Distro specific tips &amp;amp; tricks]]&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Common_Tasks&amp;diff=7926</id>
		<title>Common Tasks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Common_Tasks&amp;diff=7926"/>
		<updated>2004-04-16T04:57:42Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Desktop Linux is still under heavy development. While we all wish Linux was so intuitive nobody needed instructions, currently that isn't always the case. This section is meant for '''notes and quick guides''' on how to perform common tasks on Linux. &lt;br /&gt;
&lt;br /&gt;
If a section isn't yet written and you are able to write it, please do so!&lt;br /&gt;
&lt;br /&gt;
== General user tasks ==&lt;br /&gt;
&lt;br /&gt;
===Productivity===&lt;br /&gt;
* [[Browsing tasks]] - browsing the WWW and downloading safely&lt;br /&gt;
* [[Burning a CDROM]] - some pointers on how to write CDs.&lt;br /&gt;
* [[Emailing tasks]] - sending and receiving emails, setting up different mail applications&lt;br /&gt;
* [[Office tasks]] - word processing, spreadsheet, presentation, image manipulation and other&lt;br /&gt;
* [[Scanning]] - use a [[Scanner]] to convert you paper documents or images to an electronic format&lt;br /&gt;
&lt;br /&gt;
===Fun===&lt;br /&gt;
* [[Gaming]] - pass some time ''not'' working&lt;br /&gt;
* [[Multimedia tasks]] - listen to music, extract CDs, watch videos and DVDs&lt;br /&gt;
* [[Talking to friends online]] - how to access common instant messaging networks, see also [[IM]].&lt;br /&gt;
&lt;br /&gt;
===Technical===&lt;br /&gt;
* [[Command Line User Interface]] - Techniques for better experience&lt;br /&gt;
* [[Connecting to the net]] -  using your modem/network connection to get online&lt;br /&gt;
* [[GRUB Menu]] - Single Task - Removing  old kernel entries from your GRUB Menu boot up selections.&lt;br /&gt;
* [http://home.gagme.com/greg/linux/usbcamera.php How to Connect a Digital Camera to Linux (outside link)] - an excellent how-to on connecting digital cameras to Linux.&lt;br /&gt;
* [[Installing Software]] - how to find and manage additional software on a running Linux system&lt;br /&gt;
* [[Installing Windows fonts]] - installing your Windows fonts so they work with your Linux install.&lt;br /&gt;
* [[screenshots|Taking screenshots]] - You want to show somebody your desktop? There are tools that will help you make a [[screenshots | screenshot]] and [[record your desktop]] so that you can send movie-files of how nice your desktop looks.&lt;br /&gt;
&lt;br /&gt;
== Power user tasks ==&lt;br /&gt;
&lt;br /&gt;
* [[Compiling a Kernel]] - here is a guide for compiling a kernel&lt;br /&gt;
* [[Configure Storage Devices]] - how to partition a hard drive, add a new hard drive, use software RAID, or use LVM (logical volume management).&lt;br /&gt;
* [[Getting help from IRC]] - LinuxQuestions is a great forum, but it isn't the only one. If you know how, the IRC chat networks can also be a useful resource.&lt;br /&gt;
* [[GRUB boot menu]] - Configuration Guide.&lt;br /&gt;
* [[Installing NVIDIA drivers]] - Information on installing the newer (but closed-source) drivers released by NVIDIA. These drivers are sometimes required to run some games, like Unreal or Quake.&lt;br /&gt;
* [[Recover a Terminal Session]] - What to do if your screen's garbaged.&lt;br /&gt;
* [[Remote_Desktop_Connection|Access your System Remotely]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Distro specific tips &amp;amp; tricks]]&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=6948</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=6948"/>
		<updated>2004-03-20T06:30:42Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Beginning to add info on RAID configuration.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1: Mirroring of Stripe sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 0+1 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 0+1 of four 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of Stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 0+1 can withstand the failure of a single drive (or multiple drives, so long as they are all from the same stripe set).&lt;br /&gt;
&lt;br /&gt;
=== RAID 10: Striping across Mirror sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 10 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 10 of four 10 GB disks, the usable size of the array is 20 GB. &lt;br /&gt;
&lt;br /&gt;
RAID 0+1 and RAID 10 are very similar but, by most measures of both performance and redundancy, RAID 10 is considered to be preferable.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across Mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 10 can withstand the failure of a single drive (or multiple drives, so long as they are NOT in the same mirror set).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50: Striping across RAID 5 sets===&lt;br /&gt;
&lt;br /&gt;
RAID 50 provides better write performance and improved redundancy over simple RAID 5 along with the redundancy that simple RAID 0 lacks. It requires at least six drives to implement and (assuming all drives are the same size) provides usable space equal to S * (N-1) * R where 'S' is the size of the smallest of the hard drives being used, 'N' is the number of disks in each RAID 5 array, and 'R' is the number of RAID 5 sets used in the stripe set. So, if I form a RAID 50 of six 10 GB disks, the usable size of the array is 40 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data5&lt;br /&gt;
Parity 9,11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Parity 5,7&lt;br /&gt;
Data9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 1,3&lt;br /&gt;
Data7&lt;br /&gt;
Data11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data6&lt;br /&gt;
Parity 10,12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data4&lt;br /&gt;
Parity 6,8&lt;br /&gt;
Data10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 2,4&lt;br /&gt;
Data8&lt;br /&gt;
Data12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 50 can withstand the failure of one drive in each RAID 5.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
Linux software RAID can be configured in several different ways.  Some installation tools allow for the creation of arrays during the OS install.  An older (but still maintained) set of tools known collectively as ''raidtools'' can be used to create or modify an array after the OS install.  A newer tool known as mdadm is considered by some to be easier to use.&lt;br /&gt;
&lt;br /&gt;
Post-installation configuration of Linux software RAID consists of several steps:&lt;br /&gt;
&lt;br /&gt;
    * Create partitions for use. Configure them as Linux RAID Automounting partitions (hex code &amp;quot;fd&amp;quot;)&lt;br /&gt;
    * Use mdadm to create the array.&lt;br /&gt;
    * Create the /etc/raidtab file (lsraid -R -p is useful to generate a template raidtab file, but it may require some editing).&lt;br /&gt;
    * Create a filesystem on the partition&lt;br /&gt;
    * Mount the partition and/or add the partition to /etc/fstab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5296</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5296"/>
		<updated>2004-03-18T22:13:53Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Added details on RAID 50&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1: Mirroring of Stripe sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 0+1 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 0+1 of four 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of Stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 0+1 can withstand the failure of a single drive (or multiple drives, so long as they are all from the same stripe set).&lt;br /&gt;
&lt;br /&gt;
=== RAID 10: Striping across Mirror sets ===&lt;br /&gt;
&lt;br /&gt;
RAID 10 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 10 of four 10 GB disks, the usable size of the array is 20 GB. &lt;br /&gt;
&lt;br /&gt;
RAID 0+1 and RAID 10 are very similar but, by most measures of both performance and redundancy, RAID 10 is considered to be preferable.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across Mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 10 can withstand the failure of a single drive (or multiple drives, so long as they are NOT in the same mirror set).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50: Striping across RAID 5 sets===&lt;br /&gt;
&lt;br /&gt;
RAID 50 provides better write performance and improved redundancy over simple RAID 5 along with the redundancy that simple RAID 0 lacks. It requires at least six drives to implement and (assuming all drives are the same size) provides usable space equal to S * (N-1) * R where 'S' is the size of the smallest of the hard drives being used, 'N' is the number of disks in each RAID 5 array, and 'R' is the number of RAID 5 sets used in the stripe set. So, if I form a RAID 50 of six 10 GB disks, the usable size of the array is 40 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data5&lt;br /&gt;
Parity 9,11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Parity 5,7&lt;br /&gt;
Data9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 1,3&lt;br /&gt;
Data7&lt;br /&gt;
Data11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data6&lt;br /&gt;
Parity 10,12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data4&lt;br /&gt;
Parity 6,8&lt;br /&gt;
Data10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 2,4&lt;br /&gt;
Data8&lt;br /&gt;
Data12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 50 can withstand the failure of one drive in each RAID 5.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5133</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5133"/>
		<updated>2004-03-18T21:44:53Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Added explanation about RAID 01 and 10.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
RAID 0+1 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 0+1 of four 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 0+1 can withstand the failure of a single drive (or multiple drives, so long as they are all from the same stripe set).&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
RAID 10 provides better performance than simple RAID 1 along with the redundancy that simple RAID 0 lacks. It requires at least four drives to implement and provides usable space equal to S*N/2 where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array. So, if I form a RAID 10 of four 10 GB disks, the usable size of the array is 20 GB. &lt;br /&gt;
&lt;br /&gt;
RAID 0+1 and RAID 10 are very similar but, by most measures of both performance and redundancy, RAID 10 is considered to be preferable.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A RAID 10 can withstand the failure of a single drive (or multiple drives, so long as they are NOT in the same mirror set).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data5&lt;br /&gt;
Parity 9,11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Parity 5,7&lt;br /&gt;
Data9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 1,3&lt;br /&gt;
Data7&lt;br /&gt;
Data11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data6&lt;br /&gt;
Parity 10,12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data4&lt;br /&gt;
Parity 6,8&lt;br /&gt;
Data10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 2,4&lt;br /&gt;
Data8&lt;br /&gt;
Data12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Mandriva&amp;diff=5144</id>
		<title>Mandriva</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Mandriva&amp;diff=5144"/>
		<updated>2004-03-18T15:47:35Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Revised for objectivity.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Mandrake''' Linux was created in 1998 with the goal of making [[Linux]] easier to use for everyone. At that time, Linux was still a developer's [[operating system]] and sound knowledge of the CLI was a must. It is a [[RPM]]-based [[distribution]], and while it began as a [[fork]] of [[Red Hat]],now it adds many features of its own, expecially on the user-friendliness side. It was one of the first distributions to be optimized for i586 processors (and superior). &lt;br /&gt;
&lt;br /&gt;
Mandrake most recent version is Mandrake Community 10.0&lt;br /&gt;
&lt;br /&gt;
MandrakeSoft saw this as an opportunity to integrate the best graphical desktop environments and contribute its own graphical configuration utilities and quickly became famous for setting the standard in ease-of-use and functionality.&lt;br /&gt;
&lt;br /&gt;
The [[GPL]] (General Public License) governs the development and redistribution of Mandrake Linux. &lt;br /&gt;
&lt;br /&gt;
Mandrake has now been widely acclaimed for providing all the power and stability of Linux to both individuals and professional users in an easy-to-use and pleasant environment.&lt;br /&gt;
&lt;br /&gt;
Mandrake Linux was also the first rpm-based distribution to provide automatic resolution of dependencies, with urpmi, which debuted in version 7.2. urpmi is now capable of updating the entire distribution, installing security updates, and many other features. A graphical interface to urpmi is provided in rpmdrake (and the MandrakeUpdate tool specifically for security updates).&lt;br /&gt;
&lt;br /&gt;
Mandrake Linux is community-driven to a large degree. Non-Mandrakesoft contributors have write access to packages in the main distribution, commit access to Mandrake's own tools in CVS, full bug tracking rights in [http://qa.mandrakesoft.com Mandrake's bugzilla] and the [http://qa.mandrakesoft.com/wiki Mandrake Development wiki]. Over half the packages in the entire distribution (combining &amp;quot;main&amp;quot; and &amp;quot;contrib&amp;quot;) are maintained by the community. For non-developers, support is available from the unofficial [http://mandrake.vmlinuz.ca Mandrake community wiki] and the [http://www.mandrakeusers.org Mandrake Users Board].&lt;br /&gt;
&lt;br /&gt;
Official website: http://www.mandrakelinux.com/en-us/&lt;br /&gt;
&lt;br /&gt;
With a graphical installation process recognized by many as the best available, Mandrake Linux offers the most advanced and efficient hardware detection. &lt;br /&gt;
&lt;br /&gt;
Visit http://www.mandrakelinux.com/en-us/concept.php3 to learn more.&lt;br /&gt;
&lt;br /&gt;
There is debate between some [[Linux]] experts about Mandrake (and other easy-to-use distributions) because the number of [[patch|patches]] that are added to the kernel to achieve up-to-date hardware compatibility can in rare cases create problems of stability and/or security. Therefore, while Mandrake Linux is a good and stable distribution, and one of the best [[distribution]]s for the home desktop, there is still no full consensus if it is fully tailored for other aims. Successful cases of the use of Mandrake in business settings are documented at [http://mandrakebizcases.com/ this site].&lt;br /&gt;
&lt;br /&gt;
Distributions similar to Mandrake include : [[Red Hat]] , [[SuSE]] , [[Lorma]] , [[Libranet]].&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Mandriva&amp;diff=5050</id>
		<title>Mandriva</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Mandriva&amp;diff=5050"/>
		<updated>2004-03-18T15:37:20Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Changed &amp;quot;last&amp;quot; to &amp;quot;most recent&amp;quot; -- &amp;quot;Last&amp;quot; could be taken as no more to come... ever.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Mandrake''' Linux was created in 1998 with the goal of making [[Linux]] easier to use for everyone. At that time, Linux was still a developer's [[operating system]] and sound knowledge of the CLI was a must. It is a [[RPM]]-based [[distribution]], and while it began as a [[fork]] of [[Red Hat]],now it adds many features of its own, expecially on the user-friendliness side. It was one of the first distributions to be optimized for i586 processors (and superior). &lt;br /&gt;
&lt;br /&gt;
Mandrake most recent version is Mandrake Community 10.0&lt;br /&gt;
&lt;br /&gt;
MandrakeSoft saw this as an opportunity to integrate the best graphical desktop environments and contribute its own graphical configuration utilities and quickly became famous for setting the standard in ease-of-use and functionality.&lt;br /&gt;
&lt;br /&gt;
The [[GPL]] (General Public License) governs the development and redistribution of Mandrake Linux. &lt;br /&gt;
&lt;br /&gt;
Mandrake has now been widely acclaimed for providing all the power and stability of Linux to both individuals and professional users in an easy-to-use and pleasant environment.&lt;br /&gt;
&lt;br /&gt;
Mandrake Linux was also the first rpm-based distribution to provide automatic resolution of dependencies, with urpmi, which debuted in version 7.2. urpmi is now capable of updating the entire distribution, installing security updates, and many other features. A graphical interface to urpmi is provided in rpmdrake (and the MandrakeUpdate tool specifically for security updates).&lt;br /&gt;
&lt;br /&gt;
Mandrake Linux is community-driven to a large degree. Non-Mandrakesoft contributors have write access to packages in the main distribution, commit access to Mandrake's own tools in CVS, full bug tracking rights in [http://qa.mandrakesoft.com Mandrake's bugzilla] and the [http://qa.mandrakesoft.com/wiki Mandrake Development wiki]. Over half the packages in the entire distribution (combining &amp;quot;main&amp;quot; and &amp;quot;contrib&amp;quot;) are maintained by the community. For non-developers, support is available from the unofficial [http://mandrake.vmlinuz.ca Mandrake community wiki] and the [http://www.mandrakeusers.org Mandrake Users Board].&lt;br /&gt;
&lt;br /&gt;
Official website: http://www.mandrakelinux.com/en-us/&lt;br /&gt;
&lt;br /&gt;
With a graphical installation process recognized by many as the best available, Mandrake Linux offers the most advanced and efficient hardware detection. &lt;br /&gt;
&lt;br /&gt;
Visit http://www.mandrakelinux.com/en-us/concept.php3 to learn more.&lt;br /&gt;
&lt;br /&gt;
There is debate between some [[Linux]] experts about Mandrake (and other easy-to-use distributions) because the number of [[patch|patches]] that are added to the kernel to achieve up-to-date hardware compatibility can in rare cases create problems of stability and/or security. Therefore, while Mandrake Linux is a good and stable distribution , and probably the [[distribution]] of choice for the home desktop, there is still no full consensus if it is fully tailored for other aims. Anyway [http://mandrakebizcases.com/ this site] reports where and how Mandrake has been used successfully in business.&lt;br /&gt;
&lt;br /&gt;
Distributions similar to Mandrake include : [[Red Hat]] , [[SuSE]] , [[Lorma]] , [[Libranet]].&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5131</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5131"/>
		<updated>2004-03-18T04:59:55Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Added RAID 50&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data5&lt;br /&gt;
Parity 9,11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Parity 5,7&lt;br /&gt;
Data9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 1,3&lt;br /&gt;
Data7&lt;br /&gt;
Data11&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| RAID 5&lt;br /&gt;
Set 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data6&lt;br /&gt;
Parity 10,12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data4&lt;br /&gt;
Parity 6,8&lt;br /&gt;
Data10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Parity 2,4&lt;br /&gt;
Data8&lt;br /&gt;
Data12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5037</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5037"/>
		<updated>2004-03-18T04:29:52Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Added RAID 10&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 0+1 (Mirroring of stripe sets)&lt;br /&gt;
{| border=1&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
| RAID 10 -- Striping across mirror sets&lt;br /&gt;
{| border=1&lt;br /&gt;
| Mirror 1&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 2&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data2&lt;br /&gt;
Data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| Mirror 3&lt;br /&gt;
{| border=1&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data3&lt;br /&gt;
Data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5036</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5036"/>
		<updated>2004-03-18T04:00:36Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Adding info on combination RAID levels -- added RAID 0+1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
Arrays can be built using other arrays just as they can from drives or partitions.  This allows the creation of &amp;quot;nested&amp;quot;, &amp;quot;multiple&amp;quot;, or &amp;quot;combination&amp;quot; RAID types.&lt;br /&gt;
&lt;br /&gt;
Combining simple RAID types with different strengths can often provide the best of both worlds.  For example, RAID 0 offers great performance but no redundancy while RAID 1 offers redundancy but no performance advantage.  Combining them into a RAID 0+1 or a RAID 10 offers both -- with even better redundancy that in a basic RAID 1.&lt;br /&gt;
&lt;br /&gt;
Combinations can be formed of any RAID types supported by Linux, but the most common variations are probably:&lt;br /&gt;
* RAID 0+1 -- Mirroring of strip sets&lt;br /&gt;
* RAID 10 -- Striping across mirror sets&lt;br /&gt;
* RAID 50 -- Striping across RAID 5 sets&lt;br /&gt;
&lt;br /&gt;
=== Naming Conventions ===&lt;br /&gt;
Although usage of these conventions is not always consistent, the general rule is that the first digit in the name describes the RAID type first or at the lowest level.  The second digit describes the RAID type applied second or at the logically higher level.  &lt;br /&gt;
&lt;br /&gt;
For example, a RAID 0+1 (so named to prevent people from assuming that a RAID 01 is the same as a RAID 1) is created by first building two or more stripe sets (identical size and configuration) and then building a mirror from them.&lt;br /&gt;
&lt;br /&gt;
A RAID 10 would be created in the opposite sequence -- building multiple mirrors from paired disks and then creating a strip set across them.&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
{| border 0&lt;br /&gt;
| RAID 0+1 (Mirroring of stripe sets)&lt;br /&gt;
{| border 0&lt;br /&gt;
| First Stripe Set&lt;br /&gt;
{| border 0&lt;br /&gt;
| Disk 1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 2&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 3&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
| Second Stripe Set&lt;br /&gt;
{| border 0&lt;br /&gt;
| Disk 4&lt;br /&gt;
&amp;lt;pre&amp;gt;Data1&lt;br /&gt;
Data4&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 5&lt;br /&gt;
&amp;lt;pre&amp;gt;Data2&lt;br /&gt;
Data5&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Disk 6&lt;br /&gt;
&amp;lt;pre&amp;gt;Data3&lt;br /&gt;
Data6&lt;br /&gt;
xxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5033</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5033"/>
		<updated>2004-03-17T19:51:37Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: RAID can be for basic PCs, not just servers!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Can I use it? ===&lt;br /&gt;
&lt;br /&gt;
RAID capabilities are considered essential for most server-class computers and are widely implemented on servers.  But there is no reason that RAID cannot be used on more basic PCs as well.  Any computer capable of supporting more than one hard-disk can use RAID.&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5011</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5011"/>
		<updated>2004-03-17T19:40:31Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: corrected typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5008</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=5008"/>
		<updated>2004-03-09T05:41:14Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Added RAID-5, corrected typos.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good redundancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a RAID-1 of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-4 of two 10 GB disks and one 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-5 is also known as &amp;quot;striping with distributed parity&amp;quot;.  It requires at least three disks to create. Each of them is used for both parity data and striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
parity3-4&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a RAID-5 of three 10 GB disks, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-5 can withstand the failure of any single drive without data loss. When any single drive fails the array can continue to function because all of the actual data is either still intact on the other drives or able to be reconstructed from the remaining data plus the parity information on the other drives. Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3515</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3515"/>
		<updated>2004-03-09T00:05:28Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: RAID-4 info added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good reduncancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a Linear RAID of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RAID-4 is also known as &amp;quot;striping with dedicated parity&amp;quot;.  It requires at least three disks to create. One of them is used exclusively for parity data and the rest contain striped data. &lt;br /&gt;
&lt;br /&gt;
This RAID level offers both redundancy and performance benefits, but the performance advantage is not as significant as in RAID-0.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data3&lt;br /&gt;
data5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data4&lt;br /&gt;
data6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parity1-2&lt;br /&gt;
parity3-4&lt;br /&gt;
parity5-6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is &amp;lt;code&amp;gt; S * (N-1) &amp;lt;/code&amp;gt; where 'S' is the size of the smallest of the hard drives being used and 'N' is the number of disks in the array.  So, if I form a Linear RAID of a 10 GB and a 20 GB disk, the usable size of the array is 20 GB.&lt;br /&gt;
&lt;br /&gt;
A RAID-4 can withstand the failure of any single drive without data loss. If the failed drive is the parity drive, the array can continue to function because all of the actual data is still intact on the other drives. If the failed drive is one of the data drives, the array can continue to function by using the parity information and the data on the remaining drive(s) to calculate what data the failed drive should be storing if it were functioning.  Although the array continues to function, performance is significantly reduced and the data is at risk if a second drive should fail before the first failed drive is replaced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3491</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3491"/>
		<updated>2004-03-08T23:39:36Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Add info on RAID 1 (Striping)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
'''RAID''' stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
RAID-1 is also known as &amp;quot;mirroring&amp;quot;.  It creates a duplicate copy of data on another hard drive (or several more) so that if one of the drives fails, no data is lost. This RAID level offers good reduncancy, but no performance benefit.  In fact, while read performance is equivalent to that of a single drive, write performance is a bit lower than when using a single drive.&lt;br /&gt;
&lt;br /&gt;
RAID-1 is most commonly implemented using only two drives, but Linux software RAID supports the use of multiple drive -- each an exact copy of the others. &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size. However, the array will only use space equal to the size of the smallest drive in the array.&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the same as the space available on the smallest of the hard drives being used.  So, if I form a Linear RAID of a 10 GB and a 20 GB disk, the usable size of the array is only 10 GB.&lt;br /&gt;
&lt;br /&gt;
Since each disk in the array is an exact copy of the same data, a RAID-1 array can withstand the failure of one or several drives, so long as at least one remains intact.&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3479</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3479"/>
		<updated>2004-03-08T23:22:25Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
RAID stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.  &lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  The disks do not have to be of the same size.  So, if I form a Linear RAID of a 10 GB and two 20 GB disks, the usable size of the array is the full 50 GB.&lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, only the files stored on the affected drive would be lost.  For example, in the illustration above, if disk 2 failed, only data4 and data5 would be lost.&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
RAID-0 is also known as &amp;quot;striping&amp;quot;.  It spreads data across several hard drives so that the system can be reading from several drives at once, increasing performance.  Like Linear RAID, RAID-0 offers no redundancy.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data4&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data2&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data3&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The available space for this type of RAID is the sum of the space available for each of the participating disks.  So, if I form a RAID-0 of three 20 GB disks, the usable size of the array is the full 60 GB. &lt;br /&gt;
&lt;br /&gt;
It is advisable, but not required, to use disks of identical size (the performance benefit to this RAID is reduced if one drive is substantially larger than the rest). &lt;br /&gt;
&lt;br /&gt;
In the event of a drive failure, since files can be spread across multiple disks, most or all of the data in the array will probably be lost.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3478</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3478"/>
		<updated>2004-03-08T23:04:11Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Added info on Linear RAID&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
RAID stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
There are only a few basic RAID types although they can be combined together to produce combination types.&lt;br /&gt;
&lt;br /&gt;
Basic RAID types supported by Linux software RAID include Linear, RAID-0, RAID-1, RAID-4, and RAID-5&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
A RAID in Linear mode offers no redundancy benefit and very little performance benefit.  It would be used only because it allows the storage space on multiple physical hard drives to be addressed as a single device.  As shown below, it fills the first device before writing to the next.&lt;br /&gt;
&lt;br /&gt;
{| border=0&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 1 &lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data1&lt;br /&gt;
data2&lt;br /&gt;
data3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 2&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data4&lt;br /&gt;
data5&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
Physical&lt;br /&gt;
Disk 3&lt;br /&gt;
{| border=2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
xxxxx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Use_software_RAID&amp;diff=22817</id>
		<title>Use software RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Use_software_RAID&amp;diff=22817"/>
		<updated>2004-03-08T19:23:59Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: moved to &amp;quot;RAID&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[RAID]]&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=User_talk:Texastwister&amp;diff=22331</id>
		<title>User talk:Texastwister</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=User_talk:Texastwister&amp;diff=22331"/>
		<updated>2004-03-06T16:46:55Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:Main_Page&amp;diff=1770</id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:Main_Page&amp;diff=1770"/>
		<updated>2004-03-05T20:31:32Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Using &amp;quot;#&amp;quot; characters&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Remote_desktop_connection&amp;diff=1305</id>
		<title>Remote desktop connection</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Remote_desktop_connection&amp;diff=1305"/>
		<updated>2004-03-05T06:45:25Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Adding detail, adding rdesktop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ssh]] - SSH (secure shell) is one of the best remote login clients and servers.  SSH can be used for a terminal or console session (a command prompt) like Telnet, but can also be configured to &amp;quot;tunnel&amp;quot; X-Windows applications as well.  This would allow a user to, for example, log in to a remote system and launch a graphical application and have the application appear on the users system.  In such a scenario, the application would appear but NOT the full desktop environment (such as Gnome or KDE).&lt;br /&gt;
&lt;br /&gt;
[[VNC]] - VNC is not as secure as ssh, but is easier to use and configure.  VNC is  designed primarily to forward an entire GUI environment (including Gnome or KDE if they are in use).&lt;br /&gt;
&lt;br /&gt;
[[Telnet]] - Telnet was one of the earliest attempts at remote administration.  It is now considered inherently insecure and largely obsolete, but may have some niche uses on trusted networks.  Telnet provides only a console session with not capability of forwarding X-Windows applications or GUI environments.&lt;br /&gt;
&lt;br /&gt;
[[rdesktop]] - RDesktop is a Linux client that can attach to a Windows Terminal Server or to the built in Remote Desktop capability of Windows 2000 and Windows XP.  It is ideal for many who prefer to work from a Linux system, but who have an occasional need to access a Windows machine.  RDesktop replicates the full Windows  desktop in a window withing Linux.&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3472</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=3472"/>
		<updated>2004-03-04T23:53:12Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: building this article...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
RAID stands for &amp;quot;Redundant Array of Independent Disks&amp;quot;.  It allows multiple physical hard drives to be used as one device.  There are many different types or &amp;quot;levels&amp;quot; of RAID for different purposes.  &lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
RAID capabilities can provide several benefits:&lt;br /&gt;
* Redundancy -- If one disk fails, one or more others have the same data and can prevent data loss until the failed drive is replaced.&lt;br /&gt;
* Performance -- Data can be written to more than one drive at a time, improving overall transfer rates.&lt;br /&gt;
* Convenience -- The space from several physical disks can be addressed as though it were single device.&lt;br /&gt;
&lt;br /&gt;
The different RAID levels provide these benefits in different combinations -- A linear RAID (sometime called &amp;quot;concatenation&amp;quot;) provides convenience, but no performance or redundancy benefits. RAID 0 offers performance benefits, but no redundancy.  RAID 1 offers redundancy but no performance benefit. Most other RAID types offer some combination of both performance and redundancy benefits.&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
RAID can be implemented either by a dedicated hardware device or through software.&lt;br /&gt;
&lt;br /&gt;
In hardware RAID, the drives are attached to a controller card with a dedicated processor chip.  The controller card handles the creation of the RAID and any parity calculations that must be made and presents the storage to the operating system as though each array were a single drive instead of an array of several physical drives.  Using hardware RAID, an operating system does not need to know anything about RAID since it simply sees what it believes to be physical disks.&lt;br /&gt;
&lt;br /&gt;
In software RAID, the creation of the array and all of the calculations involved are handled by the OS.&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=User:Texastwister&amp;diff=21947</id>
		<title>User:Texastwister</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=User:Texastwister&amp;diff=21947"/>
		<updated>2004-03-04T07:03:41Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Scott Purcell, the TexasTwister ==&lt;br /&gt;
&lt;br /&gt;
My handle comes from a hobby and 2nd job -- balloon entertainment (see http://www.texastwister.info ).  My full-time job is as a technical trainer for one of the world's largest computer companies.  I'm a Linux user for about three years (although the first year was just &amp;quot;dabbling&amp;quot;).  I've got my family using Linux exclusively for about the past year with only the occasional objection.  I currently run Red Hat Linux 9 on two boxes and Fedora Core 1 on my laptop.  I've also tried out Lycoris, Lindows, ELX, and others.  &lt;br /&gt;
&lt;br /&gt;
I'm excited about the potential for this wiki and look forward to contributing to it significantly.&lt;br /&gt;
&lt;br /&gt;
Scott Purcell, scott(at)texastwister.info&lt;br /&gt;
&lt;br /&gt;
[[User:Texastwister|Texastwister]] 02:03, Mar 4, 2004 (EST)&lt;br /&gt;
&lt;br /&gt;
Talk back to me below:&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=1099</id>
		<title>RAID</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=RAID&amp;diff=1099"/>
		<updated>2004-03-04T06:45:17Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Created the outline for content to come&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is RAID? ==&lt;br /&gt;
&lt;br /&gt;
=== Why Might I Want it? ===&lt;br /&gt;
&lt;br /&gt;
=== What is the Difference Between Software and Hardware RAID ===&lt;br /&gt;
&lt;br /&gt;
== Simple RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== Linear ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-0 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-4 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID-5 ===&lt;br /&gt;
&lt;br /&gt;
== Combination RAID Levels ==&lt;br /&gt;
&lt;br /&gt;
=== RAID 0+1 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 10 ===&lt;br /&gt;
&lt;br /&gt;
=== RAID 50 ===&lt;br /&gt;
&lt;br /&gt;
== Configuring Linux Software RAID ==&lt;br /&gt;
&lt;br /&gt;
=== Partition Drives ===&lt;br /&gt;
&lt;br /&gt;
=== Create the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create a filesystem on the RAID ===&lt;br /&gt;
&lt;br /&gt;
=== Create an &amp;lt;tt&amp;gt;/etc/raidtab&amp;lt;/tt&amp;gt; file ===&lt;br /&gt;
&lt;br /&gt;
=== Choose or create a mountpoint ===&lt;br /&gt;
&lt;br /&gt;
=== Modify the &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file to mount at boot ===&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Configure_Storage_Devices&amp;diff=3471</id>
		<title>Configure Storage Devices</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Configure_Storage_Devices&amp;diff=3471"/>
		<updated>2004-03-04T06:16:29Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Added Stub notice until topic is more fully fleshed-out&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''This article is a [[LinuxQuestions.org_Wiki:stub_articles|stub]] and needs to be finished. [[LinuxQuestions.org_Wiki:plunging_forward|Plunge forward]] and [[LinuxQuestions.org_Wiki:How_to_edit_a_page|help it grow]] !''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Add a new hard drive]]  -- This section will cover the steps necessary to take a new hard drive and prepare it for use in an already-in-use Linux system.  It refers back to several of the other topics on this page.&lt;br /&gt;
&lt;br /&gt;
[[Partition a hard drive]] -- During most install processes, partitioning is handled somewhat automatically using tools that are often specific to a particular distribution.  This section details how to do it manually from the command line using tools that will exist in almost any Linux distribution.&lt;br /&gt;
&lt;br /&gt;
[[Create a file system]] (&amp;quot;format&amp;quot; a partition) -- This section will describe how to create a file system on a partition.  For Windows users, this step is equivalent to &amp;quot;formatting a drive&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Use software RAID]] -- RAID (Redundant Array of Independent Disks) allows two or more storage devices to be treated as a single logical device to provide increased performance, increased redundancy, or both.  This section describes how to configure Linux software RAID.&lt;br /&gt;
&lt;br /&gt;
[[Use LVM]] -- Normal partitions are of a fixed size and cannot be &amp;quot;grown&amp;quot;.  When a partition is filled, it can be cumbersome to migrate the data to a larger partition.  LVM (Logical Volume Management) allows space to be added to &amp;quot;logical volumes&amp;quot; (equivalent to partitions) on the fly.  This section will describe how to configure LVM.&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Configure_Storage_Devices&amp;diff=1084</id>
		<title>Configure Storage Devices</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Configure_Storage_Devices&amp;diff=1084"/>
		<updated>2004-03-04T06:12:49Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Resequenced existing sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Add a new hard drive]]  -- This section will cover the steps necessary to take a new hard drive and prepare it for use in an already-in-use Linux system.  It refers back to several of the other topics on this page.&lt;br /&gt;
&lt;br /&gt;
[[Partition a hard drive]] -- During most install processes, partitioning is handled somewhat automatically using tools that are often specific to a particular distribution.  This section details how to do it manually from the command line using tools that will exist in almost any Linux distribution.&lt;br /&gt;
&lt;br /&gt;
[[Create a file system]] (&amp;quot;format&amp;quot; a partition) -- This section will describe how to create a file system on a partition.  For Windows users, this step is equivalent to &amp;quot;formatting a drive&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Use software RAID]] -- RAID (Redundant Array of Independent Disks) allows two or more storage devices to be treated as a single logical device to provide increased performance, increased redundancy, or both.  This section describes how to configure Linux software RAID.&lt;br /&gt;
&lt;br /&gt;
[[Use LVM]] -- Normal partitions are of a fixed size and cannot be &amp;quot;grown&amp;quot;.  When a partition is filled, it can be cumbersome to migrate the data to a larger partition.  LVM (Logical Volume Management) allows space to be added to &amp;quot;logical volumes&amp;quot; (equivalent to partitions) on the fly.  This section will describe how to configure LVM.&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Configure_Storage_Devices&amp;diff=1082</id>
		<title>Configure Storage Devices</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Configure_Storage_Devices&amp;diff=1082"/>
		<updated>2004-03-03T22:42:26Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Initial page creation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Partition a hard drive]] -- During most install processes, partioning is handled somewhat automatically using tools that are often specific to a particular distribution.  This section details how to do it manually from the command line using tools that will exist in almost any Linux distribution.&lt;br /&gt;
&lt;br /&gt;
[[Create a file system]] (&amp;quot;format&amp;quot; a partition) -- This section will describe how to create a file system on a partition.  For Windows users, this step is equivalent to &amp;quot;formatting a drive&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Add a new hard drive]]  -- This section will cover the steps necessary to take a new hard drive and prepare it for use in an already-in-use Linux system.  It refers back to several of the other topics on this page.&lt;br /&gt;
&lt;br /&gt;
[[Use software RAID]] -- RAID (Redundant Array of Independent Disks) allows two or more storage devices to be treated as a single logical device to provide increased performance, increased redundancy, or both.  This section describes how to configure Linux software RAID.&lt;br /&gt;
&lt;br /&gt;
[[Use LVM]] -- Normal partitions are of a fixed size and cannot be &amp;quot;grown&amp;quot;.  When a partition is filled, it can be cumbersome to migrate the data to a larger partition.  LVM (Logical Volume Management) allows space to be added to &amp;quot;logical volumes&amp;quot; (equivalent to partitions) on the fly.  This section will describe how to configure LVM.&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Common_Tasks&amp;diff=1115</id>
		<title>Common Tasks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Common_Tasks&amp;diff=1115"/>
		<updated>2004-03-03T21:18:47Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Add section on Storage Configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Desktop Linux is still under heavy development. While we all wish Linux was so intuitive nobody needed instructions, currently that isn't the case. This section is meant for notes and quick guides on how to perform common tasks on Linux. If a section isn't yet written and you are able to write it, please do so!&lt;br /&gt;
&lt;br /&gt;
* [[Connecting to the net]] -  using your modem/network connection to get online&lt;br /&gt;
* [[Talking to friends online]] - how to access common instant messaging networks&lt;br /&gt;
* [[Getting help from IRC]] - LinuxQuestions is a great forum, but it isn't the only one. If you know how, the IRC chat networks can also be a useful resource.&lt;br /&gt;
* [[Installing Software]] - there's an excellent guide to this in the forums, so use this page for random tips and notes on the process&lt;br /&gt;
* [[Compiling a Kernel]] - here is a guide for compiling a kernel&lt;br /&gt;
* You want to show somebody your desktop? There are tools that will help you [[make a screenshot]] and [[record your desktop]] so that you can send movie-files of how nice your desktop looks.&lt;br /&gt;
* [[Recover a Terminal Session]] - What to do if your screen's garbaged.&lt;br /&gt;
*[[GRUB boot menu]] - Remove the old kernel entries from your boot up options.&lt;br /&gt;
* [[Configure Storage Devices]] - how to partition a hard drive, add a new hard drive, use software RAID, or use LVM (logical volume management).&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=LQWiki:Section_suggestions&amp;diff=1080</id>
		<title>LQWiki:Section suggestions</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=LQWiki:Section_suggestions&amp;diff=1080"/>
		<updated>2004-03-03T19:07:21Z</updated>

		<summary type="html">&lt;p&gt;Texastwister: Suggesting a STORAGE CONFIGURATION section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please post any ideas you have for new sections below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
How about a section on &amp;quot;Storage configuration&amp;quot;.  I can contribute material on Linux Software RAID, LVM, and possibly material comparing the various supported file systems.&lt;br /&gt;
&lt;br /&gt;
[[User:Texastwister|Texastwister]] 14:07, Mar 3, 2004 (EST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Perhaps a section on the best way to install gnome from scratch, with a list of dependency etc would be very useful (to me it would have been anyway). Unfortunately I do not have the expertise/time to do this. Anyone who takes up the buck will have my support. &lt;br /&gt;
&lt;br /&gt;
[[User:Geniarse|generic_genus]] 03:33, Mar 2, 2004 (EST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I would love to see a section for &amp;quot;ex-windows power users&amp;quot;. For people who know what has to be done and how to do it in windows, but not yet how it is done in Linux. This would 'tasks equivalent' list partner to the software equivalent list available at http://linuxshop.ru/linuxbegin/win-lin-soft-en/table.shtml&lt;br /&gt;
&lt;br /&gt;
The key advantage of a task equivlent list would be ex-windows people would be able to search on key words which they already know to find the linux method of performing the task. Quite  a lot of the time I have taken to learn linux was taken up by just finding which keyword to seach on. One complication I've identified so far - we'll need instructions for the CLI, KDE &amp;amp; Gnome, but it would probably complicate things too much to support all the oher desktops etc out there...&lt;br /&gt;
&lt;br /&gt;
An example of a few items to get started:&lt;br /&gt;
&lt;br /&gt;
=====================&amp;lt;br&amp;gt;&lt;br /&gt;
Set File Associations&amp;lt;br&amp;gt;&lt;br /&gt;
=====================&lt;br /&gt;
&lt;br /&gt;
In Windows&amp;lt;br&amp;gt;&lt;br /&gt;
Explorer | Tools | Folder Options | File Types&lt;br /&gt;
&lt;br /&gt;
In Linux&amp;lt;br&amp;gt;&lt;br /&gt;
Configuration | KDE | Components | File Associations&lt;br /&gt;
&lt;br /&gt;
Gnome instructions go here...&lt;br /&gt;
&lt;br /&gt;
=====================&amp;lt;br&amp;gt;&lt;br /&gt;
Clear Browser History&amp;lt;br&amp;gt;&lt;br /&gt;
=====================&lt;br /&gt;
&lt;br /&gt;
Windows IE&lt;br /&gt;
&lt;br /&gt;
Internet Explorer | Tools | Internet Options | General Tab | Clear History&lt;br /&gt;
&lt;br /&gt;
Linux&lt;br /&gt;
&lt;br /&gt;
KDE&amp;lt;br&amp;gt;&lt;br /&gt;
The history is stored in ~/.kde/share/apps/konqueror/konq_history&lt;br /&gt;
To Clear Go Konqueror | Setting Configure Conqueror | History Sidebar (9th item down on left side panel) | Clear History&lt;br /&gt;
&lt;br /&gt;
==================&amp;lt;br&amp;gt;&lt;br /&gt;
Kill a crashed App&amp;lt;br&amp;gt;&lt;br /&gt;
==================&lt;br /&gt;
&lt;br /&gt;
In Windows&lt;br /&gt;
Ctrl-Alt-Delete &lt;br /&gt;
&lt;br /&gt;
In Linux&lt;br /&gt;
Ctrl-Esc bring up a task list, and allows the user to select and kill a process.&lt;br /&gt;
&lt;br /&gt;
Ctrl=Alt-Esc invokes XKill, which changes the cursor to Skull &amp;amp; Crossbones - and allows the user to kill a program by positioning the cursor over the crashed program and clicking to kill it.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I apologize for editing your comments (which I definitely don't think should be done as a general rule) but all I did was remove the excessive equal signs and put breaks in where your text indicated you wanted them. No need for pages that would be broken on anything but 1600x1200 or higher.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Quote:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;In Windows&amp;lt;br&amp;gt;&lt;br /&gt;
Explorer | Tools | Folder Options | File Types&lt;br /&gt;
&lt;br /&gt;
In Linux&amp;lt;br&amp;gt;&lt;br /&gt;
Configuration | KDE | Components | File Associations&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Impossible, really. That's not how Linux works. You don't 'set file associations in Linux'. Setting that varies from KDE to Gnome to non-IDEs and from file manager to file manager. You set file associations in midnight commander and gentoo and emelfm and and and. If you set file associations at all. bash has no file associations. But something like that could be very useful - it's a good idea. It'd just have to be carefully done and require a lot of qualifying - lots of ifs, ands, and buts. 'There's more than one way to do it' and Linux isn't so much about following a rote set of steps. Even './configure, make, make install' is excessive simplification.&lt;br /&gt;
&lt;br /&gt;
BTW, it's customary to separate and sign comments.&lt;br /&gt;
&lt;br /&gt;
[[User:Digiot|Digiot]] 06:50, Mar 1, 2004 (EST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
How about a section on hardware.  A place to let other know about what will work or not work.  I have been playing with an old Zaurus that I got off ebay aand could have used a couple of pointers on the little things that go with it.  I learned at least one thing not to do!&lt;br /&gt;
&lt;br /&gt;
pben&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Remember, you can sign your name with 4 tildes on an empty line like below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[User:Skyline|Skyline]] 22:29, Mar 2, 2004 (EST)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Texastwister</name></author>
	</entry>
</feed>