LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-07-2006, 04:38 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 824

Rep: Reputation: 30
RAID Devices on Linux


Guys,

I wanted to setup a RAID on our file server. Can you please tell me what are the things that I need? Aside from 2 80 GB and 1 120 GB HD, what else do I need to make it run on Linux?
 
Old 07-07-2006, 11:53 PM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,591

Rep: Reputation: 162Reputation: 162
There are software raid, hardware/software raid (all cheap raid cards, and all motherboard based raid), and hardware raid. If you're going to go cheap, and I guarantee you will pay later, you can configure software raid with the md tools in linux. You just hook up the drives, and make sure the one with the good data is first (i.e. Paralell IDE 0 master is 0, usually. Paralell IDE 0 slave is 1, usually. If there are SATA connectors, and the SATA controller is configured, or active, sometimes SATA 1 is 0, and SATA 0 is 1. So, then SATA comes before PATA, or PIDE. IDE 1 might be last, but it might be in the middle.

It is a really bad idea to use different size drives with software raid. I think it's a really bad idea to use anything but hardware raid, and then only for data that is online 24/7, and changes frequently. A set of relational database tables, or a busy website are good examples. If you don't meet those conditions you are much better off with a backup machine, where you backup your data. In my opinion, the only decent PC based raid, for small systems, is raid 5 on a processor based, cached, hardware raid controller. This can be configured with four drives, any three of which contain all the data on all four. So, if one drive fails, you simply pop in a new one. You start to get a lot of parity data on each drive with only three drives, but any two can contain all the data on the three. You just waste more space with the parity data.

Now, unless you have hot swappable raid, you need to shut down to switch drives. When you boot back up the array will rebuild itself. 3ware makes the cheapest decent hardware raid cards that are compatible with linux. But, if your server is aging, you might want to hurry because 3ware has gone over to PCI 2.2. There are still plenty of older cards available now. I've seen them for $170.00.

If you won't listen to me, and you want to use software raid, use linux software raid with md tools, but get some drives that are all the same. And, get some extra drives for when one fails so it is exactly like the others.
 
Old 07-10-2006, 09:02 AM   #3
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
So, where do I start? Do I need to install any package in Linux? I'm using SM 3.4.3
 
Old 07-10-2006, 02:24 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
For ide and sata drives, you will be using software raid even if you are using an onboard controller. Using a server that has hot swappable scsi drive that are easy to access and that are controlled by the scsi raid subsystem would be the best solution. You could repair the raid array by first reseating the bad drive, and if it turns out there is hardware problem with the drive, replacing it. The system will repair the drive on the fly, and the server will keep running.

For ide and sata drives, there is only software raid. Even if you have an onboard controller.
If you want to use Linux raid, there are two programs to setup and control them. I think the one that is used now is "mdadm". Some distros like SuSE and Mandriva have GUI partitioner programs that allow you to set up you raid that way.

You could read the manpages for "mdadm" ,"mdadm.conf", and "md".
Consider printing then out for off-line study:
man -t mdadm | lpr
man -t mdadm.conf | lpr
man -t md | lpr

There are also some instructions in /usr/share/doc/packages/mdadm/.

The drives that make up an array should be at least the same type. To play it safe, they could be identical as well. You could have 2x80 GB drives and 2x120 GB drives but for redundancy it would be better to have more than two drives. The "md" and "mdadm" man pages detail the different types of raid arrays.

For performance reasons, if using ide raid, don't use the slave connectors on the drive controllers. There are different types of raid arrays. LINEAR (not really a raid array) and RAID0 offer no redundancy. Raid 1 uses mirroring, if the first drive goes bad, the second drive is used instead. RAID5 and RAID6 use parity for redunancy. There is also raid 10 which is raid 1+0. It combines RAID0 and RAID1 to allow you to have a raid partition that is larger than any of the drives, and uses RAID 1 for redunancy.

You may also want to use Google to search for "linux raid mdadm". You may run into some howtos. The /usr/share/packages/mdadm also has sample configurations.
 
Old 07-10-2006, 03:36 PM   #5
kdb4
LQ Newbie
 
Registered: May 2006
Posts: 5

Rep: Reputation: 1
Thanks for the info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RH 9 > Compaq Proliant 5000 > Smart 2/E Raid > "No valid devices were found..." boris57 Linux - Newbie 3 08-02-2006 09:29 PM
No valid devices found while installing Red Hat 7.2 on RAID 5 SCSI drives nickleus Red Hat 3 01-24-2006 08:36 AM
request for GRUB with RAID devices only info aus9 Linux - Software 15 10-08-2005 11:38 PM
changing devices in RAID 5 malo_umoran Slackware 3 03-31-2005 01:56 AM
RAID Devices on vmware m/c deepika Linux - Newbie 0 07-19-2003 06:03 PM


All times are GMT -5. The time now is 02:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration