CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Raymond Lewallen

Professional Learner

Information on RAID configurations

RAID stands for Redundant Array of Inexpensive Disks.  RAID levels that exists are levels 0 – 7, but the most popular are 0,1,3 and 5.  I will give a brief overview of those levels below.

RAID provides you with redundancy and fault tolerance of your data, in most configurations.  This allows for high availability of your data even when a hard drive completely fails.

Always have hotspares configured.  A hotspare is a disk that is configured to take the place of a failed disk.  When a disk failure in the RAID occurs, the hotspare will add itself to the array to take the place of the failed disk.  The RAID will then begin to rebuild itself, at the same time still providing you access to your data, naturally with a performance hit until the RAID has completed rebuilding itself.

Use hardware RAID whenever possible.  This means using a controller, just like a SCSI controller, to configure and host the RAID.

  • Higher performance because the hardware handles the array.
  • You can boot from a RAID.  In order to house your operating system on a RAID 1, you must use hardware RAID controllers.
  • Greater features and flexibility.
  • You can move the controller and hard disks to a different machine and your RAID is still intact.

Avoid software RAID configurations if possilbe.

  • You take a major performance hit.
  • You cannot boot to a software RAID because the operating system must be running in order to access the RAID.
  • You cannot configure hotspares in a software RAID.
  • You cannot move the RAID to a different machine.  Only the operating system that configured the RAID has the information required to access and configure the array.
  • If your OS crashes, so does your RAID.  All gone, bye bye data.

RAID 0

  • No redundancy in this configuration, but allows for the best performance because of it.  Fastest write performance of any RAID configuration.
  • At least 2 hard disks are required, usually of the same size and speed.
  • Size is equal to the smallest hard drive in the RAID * the number of drives.

RAID 1

  • Also referred to as “mirroring”.  Redundancy is is acheived by writing identical data to both drives.  If one drive fails, the other drives has all your data.
  • Requires 2 and only 2 hard disks.
  • The size of the array is the size of the smallest drive in the array.
  • Commonly used for operating systems.

RAID 3

  • In an R3 configuration, data gets striped across multiple disks at the byte level.  A single disk is used to store parity information and the failure of any one disk, including the parity disk, will not cause failure of the array.  The major bottleneck in this solution is the single parity disk, which much be accessed every time information is written to the array.
  • Requires at least 3 hard disks.  2 for storing data and 1 parity drive.
  • Size of the array is equal to the size of the smallest drive * (total number of drives – 1)
  • RAID 4 – Same as RAID 3, but the data is stiped in block and not bytes.  This improves the performance of reading data.

RAID 5

  • This is the most popular RAID configuration for storing data, such as your database files.  Unlike RAID 3, parity information is striped across all disks in the array, just like the rest of the data.  This gives R5 a performance increase over R3 when writing data.  Like RAID 4, it uses block level striping for improved read performance.  Fault tolerance is maintained by making sure that the parity information for any particular block of data is not written on the same drive that contains the actual data.
  • Perfect for storing of data where the majorty of access to the RAID will be read access, especially when configured with smaller stripe sizes.
  • Requires at least 3 hard disks.
  • Size of the array is equal to the size of the smallest drive * (total number of drives – 1)
  • RAID 6 – same as RAID 5, but parity information is written twice.  The difference in R5 and R6 is improved fault tolerance, but with a performance hit.


Comments

Eddie Garmon said:

You forgot one of the most important aspects of raid, (hardware raid in particular) in that you can combine raid 0 and 1 in one instance. This is how I have every one of my servers and development machines set up. Here you get the performance of 'striping' (raid 0) and the redundancy of 'mirroring' (raid 1). The only drawback to this is the required 4 physical discs, but it has saved me even when I had 2 drives fail at once.

My current favorite setup is (1+0) over 4 250G SATA drives on a Promise FastTrak S150 TX4 card (with 256M of live cache on the card).
# June 29, 2005 8:00 AM

Eddie Garmon said:

You forgot one of the most important aspects of raid, (hardware raid in particular) in that you can combine raid 0 and 1 in one instance. This is how I have every one of my servers and development machines set up. Here you get the performance of 'striping' (raid 0) and the redundancy of 'mirroring' (raid 1). The only drawback to this is the required 4 physical discs, but it has saved me even when I had 2 drives fail at once.

My current favorite setup is (1+0) over 4 250G SATA drives on a Promise FastTrak S150 TX4 card (with 256M of live cache on the card).
# June 29, 2005 8:00 AM

Raymond Lewallen said:

You're exactly right Eddie. 1+0 is a very popular setup. Thanks for the information!
# June 29, 2005 8:08 AM

darrell said:

It's good that you explained Raid 3 (and 4), but since Raid 5 is better in all respects than 3 and 4, they are not really used all that much in my experience.
# June 29, 2005 9:37 AM

Raymond Lewallen said:

Darrell,

I don't know why anybody would use level 3 over level 5. Both are comparable when writing data, and 5 is faster when reading. The fault tolerance is better, as well as the recovering from a disk failure is better in level 5. But, I still see it around. Level 5 does have a bit more overhead when maintaining and computing parity information once you start dealing with very large amounts of data (smaller chunks of data outperform level 3 in both reading and wrting, especially when the stripe sizes are configured optimally), but nothing really worth noting, especially when compared to other features that allow it to be a better solution over levels 3 and 4.

Was going to explain 2 and 7, but most people don't know that they exists.
# June 29, 2005 11:00 AM

Adi said:

Even so, please explaine 2 and 7 as it would be at least interesting to know the differences and advantages / disadvantages of these compared to those already explained. (at leat for educational purposes).

Thanks

# September 4, 2006 7:21 AM

syed khaja afzal hussain said:

Hi, thanks for your support, iam new in storage administrator. I have dell poweredge 2950 and i was used software that come with server. i boot the system with that CD which come with server. after installed windows 2003 server, when i am try to create volume in extended partition Raid 5 option is disable and only one option enable that is simple volume. Please can u help me to configure Raid5 on windows 2003 server. I am new in these storage work.

# October 7, 2006 5:49 PM

Raymond Lewallen said:

Syed,  do you have 3 hard disks?  RAID 5 requires a minimum of 3 hard disks, so let's start there first.

# October 10, 2006 10:35 AM

Saggylj said:

HI!!,

I am new to raid configuratuion, i have purchased a Dell Poweredge 2950 with 2x73gb and 4x300gb hard drives. i want to configure the 2, 73gb drives in RAID 1 while the rest 4, 300gb drives into RAID 5.

When i use the dell server management wizard it asks me the option to select the RAID level i want to use and the disks that i want to configure, after selecting the options i proceeds to configure the selected options and installs the OS. but i dont know how to configure the remaining 4 drives in RAID 5. it does not accept multiple raid options at the time of initial configuration.

Anyone able to help. please reply..

Thanks.

# January 14, 2007 6:15 PM

Haris said:

Hi...

Worth reading all informations provided......

Thanks Raymond.

Haris

# February 23, 2008 3:03 AM

analyn said:

i like the way u summarize the details about raid configuration

# March 27, 2008 4:57 AM

Hader said:

I am new to raid configuratuion, i have purchased a Dell Poweredge 2950 with 2x146gb and 4x300gb hard drives. i want to configure the 2, 146gb drives in RAID 1 while the rest 4, 300gb drives into RAID 5

Can any one help please

# November 3, 2008 3:06 AM

Michael Carrick said:

New to Raid 5.  When I set the array in BIOS it shows all three 250 Gig SATA drives and lets me add them to the array but when it constructs the array the size of the array is approx 478 and the only drive that shows is C with the same size.  Gigabyte GA-M78SM-S2H mobo.

Any help greatly appreciated

michaelcarrick@comcast.net

# December 4, 2008 1:21 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Raymond Lewallen

Working primarily in the public sector during his career, Raymond has designed and built several high profile enterprise level applications for all levels of the government. Raymond now works for MTM Recognition. Raymond is a Microsoft MVP C# and also president of the Oklahoma Agile Developers Group. Raymond spends a lot of his time learning and teaching such things as lean methodologies, Behavior Driven Design, Domain Driven Design, Design Patterns and Extreme Programming practices and principles, to name a few. Check out Devlicio.us!

Our Sponsors

Proudly Partnered With