LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2006, 02:53 AM   #1
blakeless
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Rep: Reputation: 15
RAID 0 setup in Debian Sarge


Basically I'm looking for instructions to setup RAID 0. I'd like to use the installer but don't know where to start. I have 2 x 250 GB SATA drives and I'd like to put them in RAID 0. I'm unsure what kind of partitions I need to setup in the installer.
If this isn't possible then the other way I was thinking was putting an older style hdd on the same controller as the CDROM - installin Debian on that and then via the OS, just enable RAID 0 for the other 2 HDDs that are SATA.
Any help would be appreciated.
Blake
 
Old 07-23-2006, 05:30 AM   #2
mjolnir
Member
 
Registered: Apr 2003
Posts: 774

Rep: Reputation: 87
site:linuxquestions.org "raid 0" +sarge

Results 1 - 10 of about 354 from linuxquestions.org for "raid 0" +sarge. (0.41 seconds)

http://www.google.com/search?hl=en&l...ge&btnG=Search

I don't know anything about raid but you might start here.
 
Old 07-23-2006, 07:56 AM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
When I wanted to set up RAID0 with Debian, I just sort of jumped in and muddled with the installer's partitioner and figured it out. The most important thing is to realize that you need a seperate /boot partition which is NOT in a RAID. So, for example, you could set things up like this:

sda1 - 64megs - ext3 - /boot
sda5 - 3gigs - RAID0 (for /)
sda6 - 1gig - swap
sda7 - 245gigs - RAID0 (for /home)

sdb1 - 3gigs - RAID0 (for /)
sdb5 - 1gig - swap
sdb6 - 245gigs - RAID0 (for /home)

After seting up these partitions, you then select the "Configure Software RAID" option near the top. Here, you will create two RAID partitions. For each one, it will ask what type of RAID you want, and which partitions to put into the RAID array. These will be called md0 and md1.

Then you return to the main partitioning screen and you'll notice two new partitions in the list--md0 and md1. You select them and tell it where to mount them (in this case, "/" and "/home" respectively).

Note that you do NOT need to put swap partitions into a RAID array. The OS will automatically stripe swap partitions as if they were a RAID0 array.
 
Old 07-23-2006, 05:35 PM   #4
blakeless
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
Cheers for your help. This is what I've got:
Using SATA Drives:
SCSI1 (0,0,0)(sda) - 250.1 GB ATA WDC
#1 primary 65.8 MB ext3 /boot
#2 primary 3.0 GB raid
#3 primary 1.0 GB swap swap
#4 primary 245.0 GB raid
unusable 987.0 MB unusable

SCSI2 (0,0,0) (sdb) - 250.1 GB ATA WDC
#1 primary 3.0 GB raid
#2 primary 1.0 GB swap swap
#3 primary 245.0 GB raid
pri/log 1.1 GB FREE SPACE

Problem now is, I go to configure Software RAID, go to create MD and RAID 0 and it comes up with this prompt:

[ ] /dev/scsi/host0/bus0/target0/lun0/part2
[ ] /dev/scsi/host0/bus0/target0/lun0/part4
[ ] /dev/scsi/host1/bus0/target0/lun0/part1
[ ] /dev/scsi/host1/bus0/target0/lun0/part3

whatever I do here, for example select the top 2, then the bottom 2 or 1 and 3, then 2 and 4 to create md0 and md1I get this prompt:
No RAID Partitions available
No unused paritions of the type "Linux Raid Autodetect" are available. Please create such a partition, or delete an already used multidisk device to free its partitions.

Any ideas?

Blake
 
Old 07-24-2006, 11:24 AM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I don't know why it's not working. It sounds like you were using the same steps I had used. But I should note that I was using the Debian Etch installer, so maybe the Sarge installer was a bit different. I know that at least part of the partitioner looks a bit different in Sarge vs Etch.
 
Old 07-24-2006, 09:23 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You need to select the filesystem type, and choose space for RAID. It is the same place where you can choose ext3 or reiserfs. Just choose space for RAID, proceed, then when you select the first and 3rd of your choices it will allow you to create a RAID 0 array with them, and the same with 2nd and 4th. Once that is done, you tell the partitioner that the 6 GB space should be formatted as whatever, and the same with the massive 490 GB space.

Also, strongly suggested that you NOT make every partition on the first drive primary. You won't see any difference making one of them logical, and doing it the way you have listed doesn't ever allow you to use the free space on the disk. If you make either the 3 GB or the 245 GB space logical, then the space can eventually be formatted if you need to. If you stick with 4 primary partitions, you can never make a logical partition, and that left over space is thrown away.

Peace,
JimBass
 
Old 07-25-2006, 03:25 AM   #7
blakeless
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
Setting Partitions as RAID

See number 4 on the first drive:

#4 primary 245.0 GB raid

I've set it as RAID there - is that right?
 
Old 07-25-2006, 06:58 AM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Yes, it has to be labeled as space for RAID. If it is labeled as ext3, or anything else, it won't work.

Peace,
JimBass
 
Old 07-25-2006, 04:34 PM   #9
blakeless
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
"You need to select the filesystem type, and choose space for RAID" - so haven't I already done this for numbers 2,4 in sda and 1,3 in sdb?
 
Old 07-25-2006, 05:24 PM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I'm guessing not, or else it would have allowed you to setup software RAID on it. Just having identical spaces doesn't allow you to set up RAID0 arrays, the installer needs to know they are space for raid.

Peace,
JimBass
 
  


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
How to setup SATA RAID w/ debian sarge glenn69 Linux - Newbie 3 01-31-2007 07:55 AM
Can't setup modem in Debian Sarge Cage47 Linux - Hardware 1 07-20-2006 07:10 PM
SATA RAID Controller for Debian Sarge ? Best pick ? TACtech Debian 9 04-14-2006 01:43 PM
PCI ATA 133 RAID on Debian Sarge, Where do I go from here? elliotfuller Debian 6 08-31-2005 10:11 AM
Debian Sarge Server Setup LinuxGeek Debian 4 10-19-2004 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration