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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-07-2006, 04:38 AM
|
#1
|
Member
Registered: Sep 2005
Posts: 861
Rep:
|
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?
|
|
|
07-07-2006, 11:53 PM
|
#2
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
07-10-2006, 09:02 AM
|
#3
|
Member
Registered: Sep 2005
Posts: 861
Original Poster
Rep:
|
So, where do I start? Do I need to install any package in Linux? I'm using SM 3.4.3
|
|
|
07-10-2006, 02:24 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
07-10-2006, 03:36 PM
|
#5
|
LQ Newbie
Registered: May 2006
Posts: 5
Rep:
|
Thanks for the info
|
|
|
All times are GMT -5. The time now is 09:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|