Raid-What it is and how it works

Reply

Join Date: Dec 2006
Posts: 95
Reputation: Teachingmyself is an unknown quantity at this point 
Solved Threads: 4
Teachingmyself's Avatar
Teachingmyself Teachingmyself is offline Offline
Junior Poster in Training

Raid-What it is and how it works

 
0
  #1
Dec 4th, 2006
Explanation of RAID and installation guide

Thanks to 'Stein for the coding.

Greetings,

It's come to my attention, both from call volume in work and online forums, that most people do not realize the diversity of RAID controllers available, nor how to fully benefit from them.

This tutorial aims to explain in simple terms the four main types of RAID utilized by home users, point out the advantages and disadvantages of each setup, and give a general installation and troubleshooting overview.
-------------------------------------------------------------------------------------------

What is RAID?


RAID originally stood for "redundant array of independent disks," but you may also see the phrase "redundant array of inexpensive disks." The second was originally a marketing blurb but it has stuck.

All RAID groups (arrays) can be broken down to two types at their most basic level: striping(0) or mirroring(1).

More advanced Raid arrays (6 & 7) also make use of parity drives and distributed parity, but these are outside the scope of this tutorial.

How it works:

The hard drives are hooked up to the RAID controller, which is itself connected to the Operating System. The Operating System sees the RAID controller as a single hard drive and writes to it in this manner.The RAID controller then decides how to distribute the data between the hard drives.

Anything below the RAID controller is invisible to the Operating System unless you have specialized software to enable you to see the status of your RAID array. For this reason many people have incredible trouble installing RAID.


Different Raid controllers:

Depending on how much you're willing to pay, controller performance differs greatly. Here are some of the main features available.

Onboard cache - determines what size of files a controller can store in short term memory, thus speeding up write speeds as you don't have to write at the speed of the HD. The bigger the better.

Battery backup - Prevents losing the data stored in the RAID cache (short term memory) in the event of a power cut. If a battery isn't installed anything not yet written to the physical hard drive will be lost.

Also the types of arrays that each controller supports differ.



-------------------------------------------------------------------------------------------
The different types
-------------------------------------------------------------------------------------------

Raid 0(striping)

Raid 0 on its own is not technically a raid array as it does not contain "redundant" or "independent" disks. For this reason a Raid 0 configuration is generally just called "striping."


This diagram shows how data is distributed in a striped array for file "ABCD."

_________________
|............................|- Operating system sends
| Operating.............| "ABCD" to what it
| System................| thinks is the hard drive.
|________________|
|
|
|
|
_________________
|Raid......................|- RAID controller tells the
|Controller..............| O.S. that it has written
|________________| "ABCD" to itself.
|..............|
|..............|
|..............|

________ _______
|............||............|- To speed things up, RAID
| HD1.....|| HD2.....| distributes A & C to HD1 and
|_______||_______| B & D. See why it's called
|..A........||...B.......| "Striping."
|_______||_______|
|..C........||...D.......|
|............||............|
|_______||_______|


Advantages: Fast read/write; Utilizes full HD space.

Disadvantages: All data lost with single HD failure; Drives operate at speed of slowest.


I would only recommend a Striped array if your files really don't matter to you and your main use would be games. In this case, make sure you buy two hard drives of the same speed.

--------------------------------------------------------------------------------------------
Mirroring(raid 1)

Mirroring uses a backup hard drive to keep an exact copy of your files. The main problem is that you only utilize the space available in your smallest hard drive (if I have a 40 GB and a 150 GB hooked up to a mirrored array, my total HD size is only 40 GB.)


Again this diagram is based on the file "ABCD."


_________________
|............................|- Operating system sends
|Operating.............| "ABCD" to what it thinks is
|System................| the hard drive.
|________________|
|
|
|
|
_________________
|..Raid....................|- RAID controller tells the
|..Controller............| O.S. that it has written
|............................| "ABCD" to itself. If write
|............................| back caching is enabled, it
|............................| stores the file in memory
|________________| to speed up the process.
|..........|
|..........|
|..........|

________ _______
|............||............|- RAID writes the file twice:
|HD1.....||HD2.....| once on each hard drive. In
|............||............| this way, you maintain a
|............||............| "mirror" image of your
|............||............| hard drive. If one hard drive
|............||............| fails, RAID switches to the
|............||............| backup and the O.S.
|"ABCD".||"ABCD".| doesn't even blink.
|............||............|
|............||............|
|_______||_______|


With mirroring, the write speeds will be slower and the read speeds will not be noticeably quicker unless you enable "write back" and "read ahead" caching respectively.The disadvantage of "write back" caching is that any files stored in the cache but not yet written will be lost in a power cut, unless you're controller is equipped with a battery. Read ahead caching will read faster if you are reading contiguous data or if it guesses correctly what you will look at next (again, all depending on the price you pay).

If a hard drive does fail, you can replace the broken one and RAID will build a new image onto it, independent of your CPU and RAM, so Windows works fine (HD's are obviously busy though)

Advantages: Hard drive can run at independent speeds; backup copy is maintained and can be written to new hard drives; Much improved speed (assuming caching is enabled).

Disadvantages: Possible data loss with power cut (if no RAID battery is present); only utilizes 50% of available space (assuming matched hard drives).

-------------------------------------------------------------------------------------------
RAID 0+1 and RAID 10

By far the best option, if you can afford it, is four hard drives. Both arrays utilize the best parts of both mirroring and striping and are only slightly different in how they store data.


RAID 0 + 1 uses striping and maintains a backup of the array so you can sustain one HD failure, and possibly two, if you are lucky enough to retain one of each striped disk.

Raid 10 is very similar to 0 + 1 with the single exception that the backup striped disk is on the same sub array as the original.
-------------------------------------------------------------------------------------------

Installing a Raid array:

Once you have connected all the hardware together, you need to install the RAID drivers and BIOS. Unfortunately in most cases, this means re-installing Windows and pressing F6 with the floppy in the drive.

Once this is done, you restart the computer and during POST hold "ctrl" and "first letter of controller manufacturer (example Nvidea = "ctrl + "n")."

Generally, a RAID BIOS has available HDs on the left which you move to the right to create an array. Select which type of array you would like and then follow the instructions at the bottom of the screen to create an array.

Voila, "Robert's you're father's brother", as they say in England.
-------------------------------------------------------------------------------------------

Please Note - I have omitted quite a lot of detail, both for the sake of simplicity and the fact that there are quite a lot of things that can go wrong. If anyone is having a RAID problem P.M. me the link to your post and I'll have a look A.S.A.P.

Please do not mail problems directly to me!
Last edited by 'Stein; Dec 5th, 2006 at 5:17 pm.
THEY MADE ME DO IT
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 160
Reputation: raybay is an unknown quantity at this point 
Solved Threads: 5
raybay raybay is offline Offline
Junior Poster

Re: Raid-What it is and how it works

 
0
  #2
Dec 8th, 2006
Nice write-up.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 9
Reputation: pintree3 is an unknown quantity at this point 
Solved Threads: 0
pintree3 pintree3 is offline Offline
Newbie Poster

Re: Raid-What it is and how it works

 
0
  #3
Jan 15th, 2007
Excuse my ignorance but I feel the question "What is it?" is not answered--or at least not completely for I fail to still know what it is. Is it a physical device that u can buy and plug into your mother board install, is it software? In my BIOS, RAID is disabled, hence my interest in reading this since I saw the term many times. Therefore I asked myslef, Why is it disabled is it because it's, whatever it is, does not exist within my PC or is it something else?
Based on the rest of your explanation, it appears to be something that one may want/need if installing 2 or more Hard Drives within a computer or network (but not needed if only one HD is connected). Is this assumption correct?

Knowledge presupposes previous knowledge and in this case I feel people reading this already have some idea therefore able to understand what was written.

My intentions for writing this are good, my purpose not being to bad mouth what was written (my apologies if it sounded that way for it was not my intention) but only to inform what was not understood, which I feel may be of importance.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 9
Reputation: articles is an unknown quantity at this point 
Solved Threads: 0
articles articles is offline Offline
Newbie Poster

Re: Raid-What it is and how it works

 
0
  #4
Mar 12th, 2007
See this also; http://www.ezinearticles.com/?RAID--...lity&id=416852

I also tried to explain RAID and its advantages, disadvantages.

Teachingmyself, a good article indeed. It explains the technical aspects about working process of different levels of RAID effectively.

----------
Data recovery software solutions for every data recovery need!
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1
Reputation: ranjikvp is an unknown quantity at this point 
Solved Threads: 0
ranjikvp ranjikvp is offline Offline
Newbie Poster

Re: Raid-What it is and how it works

 
0
  #5
Mar 12th, 2007
thanks for sharing the info...
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 55
Reputation: darsh999 is an unknown quantity at this point 
Solved Threads: 3
darsh999 darsh999 is offline Offline
Junior Poster in Training

Re: Raid-What it is and how it works

 
0
  #6
Jan 7th, 2008
Well it seems to be a operating system to me and the flag like structure are the tracks of hard drive...
Asta La Vista !!!
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,142
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 531
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Raid-What it is and how it works

 
0
  #7
Jan 7th, 2008
RAID originally stood for "redundant array of independent disks," but you may also see the phrase "redundant array of inexpensive disks
My server from ~1996 uses the second definition.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 13
Reputation: dian69 is an unknown quantity at this point 
Solved Threads: 0
dian69 dian69 is offline Offline
Newbie Poster

Re: Raid-What it is and how it works

 
0
  #8
Feb 27th, 2009
thanks for sharing. good info...
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 51
Reputation: Gerryx1 is an unknown quantity at this point 
Solved Threads: 0
Gerryx1 Gerryx1 is offline Offline
Junior Poster in Training

Re: Raid-What it is and how it works

 
0
  #9
Feb 27th, 2009
A clear and well written article.
Gerryx1
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,082
Reputation: hughv is on a distinguished road 
Solved Threads: 86
hughv hughv is offline Offline
Veteran Poster

Re: Raid-What it is and how it works

 
0
  #10
Feb 28th, 2009
But, realistically:
"Why RAID is (usually) a Terrible Idea"
http://www.pugetsystems.com/articles.php?id=29
This will make more sense when you've had a couple of RAID failures, as I have.
BS, PH, CIB
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Storage Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC