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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-05-2005, 05:36 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 4
Rep:
|
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.
|
|
|
01-06-2005, 07:45 AM
|
#2
|
Member
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44
Rep:
|
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
|
|
|
01-06-2005, 08:47 AM
|
#3
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 4
Original Poster
Rep:
|
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?
|
|
|
01-07-2005, 03:37 AM
|
#5
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Rep:
|
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?
|
|
|
01-07-2005, 12:44 PM
|
#6
|
Member
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44
Rep:
|
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
|
|
|
01-07-2005, 06:56 PM
|
#7
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Rep:
|
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.
|
|
|
01-07-2005, 07:10 PM
|
#8
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|