LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 01-05-2005, 05:36 PM   #1
syamajala
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 4

Rep: Reputation: 0
Grub software raid problems


hi! i'm having problems with grub. My system has 6 scsi drives with 2 scsi controllers. 3 drives r connected to each controller. My / partition is a software raid 0. I'm using 1 drive from ea. controller for the / partition (so only 2 drives r in the raid 0 /dev/sda1, /dev/sdd1) I don't have a separate boot partition. When I run root (hd0,0) everything is ok and it tells me the partition type is xfs which is what i am using on my / partition. When i run setup (hd0) it says it can't find the stage1 file and fails. I also tried root (hd1,0) and setup (hd1) it also tells me the file system is xfs, but fails when it looks for the stage1 file. Also, grub only shows me 4 drives (hd0, hd1, hd2, hd3). BTW I'm using gentoo. I know about
lists.us.dell.com/pipermail/linux-poweredge/2003-July/014331.html i've used it many times on systems with ide drives and a software raid and it has worked fine every single time.
 
Old 01-06-2005, 07:45 AM   #2
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
I think you need a seperate boot filesystem that is either a raid 1 or a single disk, IMHO.

Linux can't boot from a stripe, ie raid0, raid 5 etc
 
Old 01-06-2005, 08:47 AM   #3
syamajala
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah, i backed up everything on my / and redid my partitions. I now have a raid 1 /boot, i installed grub, but when i boot the system after it detects all the hd nothing happens. It just sits there i never see the grub prompt or anything. Any ideas?
 
Old 01-06-2005, 02:27 PM   #4
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
did you write grub out to the mbr ? theres a good howto to grub and raid here

http://lists.us.dell.com/pipermail/l...ly/014331.html
 
Old 01-07-2005, 03:37 AM   #5
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
hope you boys don't mind me chipping in...
I'm having raid and grub problems as well... mine's simple, just a raid1 with 2 200gb drives.
my problem is everytime i reboot my server, grub won't load my kernel, i have to load it manually...
i tried grub-install but it keeps giving me this message:
/dev/md0 does not have any corresponding BIOS drive

what should i do?
 
Old 01-07-2005, 12:44 PM   #6
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
I have a similar setup here, 2 120G drives, my mdstat looks like this

# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 hda1[0] hdc1[1]
192640 blocks [2/2] [UU]

md1 : active raid1 hda2[0] hdc2[1]
117049472 blocks [2/2] [UU]

unused devices: <none>

I have md0 for /boot and I'm using lvm2 over md1 (root on lvm)

my grub device map
# cat /boot/grub/device.map
(hd0) /dev/hda
(hd1) /dev/hdc


And my grup menu.lst looks like: (comments removed)
# cat /boot/grub/menu.lst

title Debian GNU/Linux, kernel 2.6.8-1-386
root (hd0,0)
kernel /vmlinuz-2.6.8-1-386 root=/dev/mapper/vg01-root ro devfs=nomount
initrd /initrd.img-2.6.8-1-386
savedefault
boot

I think your root line should be something like root=/dev/md?/ ro


hope this helps
 
Old 01-07-2005, 06:56 PM   #7
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
ahh, cool~
Looks identical, just that I have some different settings that's all...
Code:
# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hdc2[1] hda2[0]
      152191680 blocks [2/2] [UU]
       
md2 : active raid1 hdc3[1] hda3[0]
      20482752 blocks [2/2] [UU]
       
md3 : active raid1 hdc5[1] hda5[0]
      20482752 blocks [2/2] [UU]
       
md0 : active raid1 hdc1[1] hda1[0]
      104320 blocks [2/2] [UU]
       
unused devices: <none>
Code:
# cat /boot/grub/device.map
(fd0)   /dev/fd0
(hd0)   /dev/hda
(hd1)   /dev/hdb
Code:
# cat /boot/grub/menu.lst
default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
 
title Red Hat Linux (2.6.6-1)
        root (hd0,0)
        kernel /vmlinuz-2.6.6-1 ro root=/dev/md3
        initrd /initrd-2.6.6-1.img
 
title Red Hat Linux (2.4.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=/dev/md3 hdd=ide-scsi
        initrd /initrd-2.4.20-8.img
Do have trouble with grub NOT automatically loading your kernel? Been trying to solve this mess for months!

Last edited by kenji1903; 01-07-2005 at 06:57 PM.
 
Old 01-07-2005, 07:10 PM   #8
syamajala
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
i was able to get my setup working after i read the grub faq. it says to disable int13 extensions and try grub, this is a known problem with some scsi controllers.
 
  


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
Software RAID 1 setup on CentOS using Grub boot loader kumarsundaram Linux - Software 1 11-30-2005 12:57 PM
Gentoo software raid boot problems MaDDeePee Linux From Scratch 1 08-28-2004 10:57 AM
Software RAID with mdadm problems... robbow52 Debian 2 04-19-2004 07:06 PM
RH9 Software Raid 1 hard drive failure - GRUB loader errors Mynar Linux - Newbie 1 01-28-2004 10:25 AM
Software RAID & Installation Problems Dr_Cooke Linux - General 1 09-19-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

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