LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-11-2004, 06:35 PM   #1
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
software RAID on the root partition


I'm trying to set up software raid on my root partition, but I keep getting kernel panics when i boot.
Here's my setup:
/dev/sda1: boot partition
/dev/md0: raid0 swap partition consisting of /dev/sd[bcd]1
/dev/md1: raid0 /opt partition consisting of /dev/sd[abcd]2
/dev/md2: raid5 root partition consisting of /dev/sd[abcd]3

My SATA controller is Silicon image sil1114 and I have compiled the relevant module _into_ the kernel (ie. not as a module). I have compiled raid0 and raid5 support _into_ the kernel. I have compiled reiserfs support _into_ the kernel.

GRUB loads properly. I can select the appropriate entry and boot. The kernel detects my SATA drives:
Code:
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
I'm not sure if it detects the RAID arrays:
Code:
md: Autodetecting RAID arrays
md: autorun...
md: ...autorun DONE
It then fails with
Code:
VFS: Cannot open root device "md2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
My append line is "root=/dev/md2". I have also tried "root=/dev/sda3" and "root=/dev/hda3"

Any suggestions? TIA
 
Old 08-12-2004, 08:36 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I'm not sure of the specifics off-hand, but I recompiled the kernel on my SuSE box yesterday (I have a software RAID as my root partition too).

I noticed that it had another setting (possibly a patch?) to allow booting from RAID, in addition to the driver modules. I don't have the details to hand, but I will post them later when I get home (assuming I remember).

<< EDIT: The obscure message I get when I run "make modules modules_install install" is
Code:
Modules:
none
Including:      raidautorun
Bootsplash:     SuSE (1024x768)
I don't know what this means and I can't see any reference to raidautorun anywhere in the kernel source tree. Possibly it's a SuSE thing, but my system does boot from RAID. //>>

It's possible that it can't find the /dev/md0 file; are you using something like devfs, or do you have /dev/ as a simple directory?

One option is probably to create a little non-RAID / partition to include /dev, and boot from that, then remount / over the top. Or you could just install SuSE (which supports software RAID root partitions out of the box using the advanced options in the installer).

You may also find something to help here: http://www.tldp.org/HOWTO/Software-R...O-7.html#ss7.5

Last edited by rjlee; 08-14-2004 at 06:59 AM.
 
Old 08-12-2004, 03:36 PM   #3
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Original Poster
Rep: Reputation: 30
I moved my root partition to a non-RAID disk but the same thing happens (yes, I did remember to change to "root=" boot option). Which is really strange because, about 10 lines before the kernel panics, it lists all my hard dives correctly (capacity, model numbers, etc.). And then it says it can't mount /dev/sda3. I compiled devfs support into the kernel and told it to mount automatically at boot.
 
Old 08-12-2004, 04:15 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
RAID 0 or RAID 5 will not help LINUX to speed up because all the files are very small. RAID 1 will speed up access files in LINUX because it will use each hard drive in the array to access different files at a time. If you have four hard drives in a RAID 1 setup, about four files can be access at a time which will decrease the amount of time a program loads up. With RAID 1 setups you do not have to worry much about hard drive failures as it were in RAID 0 or RAID 5.

Just my
 
Old 08-12-2004, 05:56 PM   #5
fedorafreak
Member
 
Registered: Aug 2004
Location: North Carolina
Distribution: Fedora Core 2
Posts: 64

Rep: Reputation: 15
here click here
just change it to raid 0
 
Old 08-12-2004, 11:28 PM   #6
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Original Poster
Rep: Reputation: 30
I have now demonstrated my stupidity twice on these forums. Although I had compiled support for my SATA chipset into my kernel, I had compiled SCSI disk support as a module (I'm not sure why that's possible but it is). Sorry for wasting your time.
 
  


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
How to Image/Backup a Software RAID Partition? SiegeX Slackware 6 02-24-2005 04:14 PM
Root on Software RAID cryptodev Linux - Software 0 04-16-2004 12:50 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM
Software RAID 1 setup w/ existing ext2fs partition system Linux - General 3 01-26-2002 11:07 PM
boot + root on software raid 1 kris.kj.jacobs Linux - Software 2 06-03-2001 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:57 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