LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-08-2006, 07:51 PM   #1
mr_scary
Member
 
Registered: Aug 2006
Posts: 39

Rep: Reputation: 15
RAID0 on 2 SATA drives with reiserfs


I am runngin Slackware 11.0 with a 2.4 kernel. I have 3 identical SATA drives. I put the OS on the first one and want to set up RAID0 on the remaining two. I managed to get the RAID array going manually using the mkraid and mount commands but when I reboot I get an error like "invalid raid superblock magic". Do I need a RAM disk? Why would it work at the command line but not when booting?

/etc/fstab:

/dev/sda1 / reiserfs defaults 1 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 /tmp reiserfs defaults 1 2
/dev/sda5 /usr reiserfs defaults 1 2
/dev/sda6 /var reiserfs defaults 1 2
/dev/sda7 /home reiserfs defaults 1 2

/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0

/dev/md0 /mnt/raid reiserfs noauto 1 2

devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0



/etc/raidtab:

raiddev /dev/md0

raid-level 0
persistent-superblock 0
chunk-size 16

nr-raid-disks 2
nr-spare-disks 0

device /dev/sdb1
raid-disk 0

device /dev/sdc1
raid-disk 1
 
Old 11-09-2006, 12:59 AM   #2
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
You don't need a RAM disk if you already have everything you need to boot up compiled into the kernel as in "y" instead of "m". Like your filesystem and raid stuff.

It sounds like you're installing a different kernel from the kernel you are booting with for the install. Which means you should install the one that you're booting with so it has the same capabilities when you reboot.
 
Old 11-09-2006, 11:26 PM   #3
mr_scary
Member
 
Registered: Aug 2006
Posts: 39

Original Poster
Rep: Reputation: 15
I'm sorry but your response does not make any sense. Do you want to clarify that second paragraph?
 
Old 11-11-2006, 03:38 AM   #4
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
Well, let me ask you specifically since I'm not sure...

Are you running mkraid from an install CD or a boot floppy? In other words, what kernel are you using at the time you run mkraid and such? When you install Slackware you can install any kernel you want, but it's often a good rule of thumb to install the *same* kernel that you used *during* the install because it has already proven itself capable of seeing your hardware and booting your system.

For some reason your boot kernel is *not* capable of seeing the raid partition because the module hasn't been loaded in time during the boot process or because that support was never compiled into the kernel in the first place. The key here is to install a kernel that has the proper drivers you need. I would recommend the huge 2.6 kernel as it seems to have everything already in it.

I'm using raid 1 and that stock kernel worked for me. In the past I've had to roll my own kernels to get everything I wanted. That doesn't seem necessary with huge 2.6 anymore... at least I haven't needed anything it doesn't have yet ;-)
 
Old 11-11-2006, 09:30 AM   #5
pruhnke
LQ Newbie
 
Registered: Aug 2005
Distribution: RH9, FC4
Posts: 13

Rep: Reputation: 0
Other Option

Not to hijack the thread, but if you are talking about running RAID0. The two reasons I am aware of for running RAID0 is to either get a larger mount or to improve write/read performance to this area.

If performance is what you are looking for running RAID in software would obviously cut any perfromance gain by striping. In both instances I personally would be running RAID in hardware via a RAID capable SATA PCI / PCI Express card. They are running as low as $20 these days. I found a few to pick from at tigerdirect.com.

May not be what you are looking for but possibly an easy fix you overlooked. But it could possibly add another problem, finding support for the card in the kernel or elsewhere.
 
Old 11-11-2006, 01:27 PM   #6
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
pruhnke,
I don't disagree with anything you are saying, but mr_scary still has the same problem. Unless his kernel *happens* to support the raid card out of the box, he still has to either roll his own kernel or find another one. Slackware has kernels that *should* work. One of *those* should be installed like huge 2.6. Getting a raid card would just be icing on the cake, but certainly not necessary. I, for one, would never run raid 0 because I think hard drives are too unreliable. I burn one up every 3 to 6 months. More hard drives compounds your exposure when they are not redundant. In striping if you lose one, everything is hosed. But... I digress...

Hopefully, we'll get your stuff working. Let us know if there is anything else we can do to help;-)
 
  


Reply



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
SATA RAID0 on Intel 82801GR/GH frasse Linux - Hardware 6 10-17-2005 11:34 AM
sata raid0 on slackware iostream Slackware - Installation 2 03-20-2005 08:16 AM
Slack 10.1.0 and SATA RAID0 rmocius@auste.e Slackware 1 03-10-2005 10:28 AM
Fedora Core 3 and Sata Raid0 Didzi Fedora 1 01-28-2005 09:09 PM
boot to PATA raid0 on Promise 378 *and see* SATA raid0 ICH5 ? patr Linux - Hardware 2 02-25-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:36 AM.

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