LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-30-2003, 07:11 PM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
RAID, probably a dumb question, but I need help


Hi all,

I am thinking of setting up a RH 8 server and I am debating using RAID 1 with 2 Seagate SCSI disks. Now, I know nothing about RAID on a linux system. Basically, I will have the 2 HDD's on a SCSI controller, but I guess my question is:

Do I need this SCSI card to be a RAID card also, or can I set up software RAID in linux (on installation). Will this work ok? Will whatever partitions I set up and all data be copied (mirrored) to the other drive so if the primary drive fails, I can simply runn off of the second drive without missing a beat? I have been reading a little about RAID on linux, but I would really like some help. Thanks a million!

Chris

Or would it just be easier to buy a SCSI card that is a hardware RAID card? I know they cost a lot more, but money is not really a concern.

Last edited by WorldBuilder; 05-30-2003 at 07:20 PM.
 
Old 05-30-2003, 08:54 PM   #2
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
yes you can go the software way. i just did it and when i boot into the second drive i can't even tell, the only way that i know is that the test is larger on the boot scripts. it's pretty cool.

i'm not that familiar with scsi, so don't quote me. for eide, you want to have the drives set up on seperate ribbons so that if one fails the other drive won't be toast also. i don't know if you would want to do this with your scsi, but i would probably go that way if it were mine.

here's a tip.

cfdisk -P /dev/hda > partitions
cfdisk -P /dev/hdc < partitions

that will print out a partition list of your drive to a file and then have that file make the new partitions on the second. that way you know that they are identical.

good luck.
 
Old 05-31-2003, 06:02 PM   #3
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
linux software raid is great, you don't need a HW controller, try it with the sw raid first and see if you can afford a (minor) performance hit.

the advice emetib gave about the partitions is good, just make sure that your first hd is partitioned as you want it to be. If you are planning on RAID 1 I would just create 1 partition per disk (i have obtained best results with ext3 for RAID1).

you don't have to put devices on different ribbons, that would be silly on sCSI as each device is independent. The only way that they will both fail at the same time is if the cable itself fails, or if the controler fails.

Any other questions post here and we'll iron it out.
 
Old 05-31-2003, 11:27 PM   #4
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
Thanks,

I guess that's what is confusing to me. Perhaps it's the terminology. For instance:

I setup 2 HDD's.
I install RH 8, setting up, let's say:
5GB /
5GB /var
100MB /boot
1 GB swap
1 GB /etc
Remaing space /home

I set up all that on the first HDD, and then when the system boots for the first time, I set up a RAID 1 system. So, the entire setup of the first HD gets copied bit by bit to the second physical drive? If the first drive fails, I just boot off the second? Please elaborate, and thanks for the help so far!!!!!

Chris
 
Old 06-02-2003, 10:12 PM   #5
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
basically yes.

the reason that i set up my hd's on seperate controllers (ribbons) is so that if one does fail then your ok with the other. if both of your drives are on the same controller, and that fails then what was the purpose of having it mirrored? that's what i was saying.

for if your drive fails and you want to boot of the mirror, then drop in your boot disk/cd and tell it where to boot from-

linux root=/dev/hd??

the first ? is what drive and the second ? would be what partiiton.

you should be able to set up your raid on your install, mdk gave me an option on the install. don't know if rh does or not. so yes, set up your partition table and then go into the raid configuration after your reboot. the how-to's on raid are both easy to follow and confusing at the same time. i would read then though so that you have an idea on what to do to get it going. if you have any questions after that we'll be happy to help.

cheers.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dumb a*s question Jetta-GT- Linux - Newbie 3 01-08-2004 05:58 AM
dumb question! Athlon_Jedi Linux - Newbie 6 05-20-2003 12:51 PM
Really Dumb question ddrackham Linux - General 3 02-06-2003 02:02 AM
dumb question but anyways... 43w45r3e Linux - Distributions 2 01-26-2002 03:20 PM
dumb question Sveede Linux - Newbie 3 05-23-2001 05:59 PM


All times are GMT -5. The time now is 05:49 PM.

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