public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] installation / grub boot problem
@ 2009-03-10 21:09 Heping He
  2009-03-10 21:17 ` Neil Bothwick
  2009-03-15 20:06 ` Charles R., Porter
  0 siblings, 2 replies; 4+ messages in thread
From: Heping He @ 2009-03-10 21:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1701 bytes --]

Hi, I tried to install gentoo on my AMD 64 dual core machine. It has four
500 GB HDs. I followed the instruction on
http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml. I
replaced /dev/md4 with raid5 instead of raid0. Here is the list of each HD's
partitiion:

/dev/sda:
partition #,  boot   start    end     type
1                  *        1        18     fd
2                           19       361   fd
3                            362     end  fd

/dev/sdb
partition #,  boot   start    end     type
1                           1        361     82
2                           362     end    fd

/dev/sdc is the same to /dev/sda, and /dev/sdd = /dev/sdb

I created /dev/md1, /dev/md3 and /dev/md4:
mknod /dev/md1 b 9 1
mknod /dev/md3 b 9 3
mknod /dev/md4 b 9 4

and then form raid:
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdc1
mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda2 /dev/sdc2
mdadm --create /dev/md4 --level=5 --raid-devices=4 /dev/sda3 /dev/sdb2
/dev/sdc3 /dev/sdd2

/dev/sdb1 and /dev/sdd1 forms the swap space

mount:
mount /dev/md3 /mnt/gentoo
mount /dev/md1 /mnt/gentto/boot

/dev/md4 is for lvm2 and /usr, /home,  /opt and other common unix dir are
created there

after chroot and emerge, I issued emerge grub and modified
/boot/grub/grub.conf

default 0
timeout 10

title gentoo
root (hd0,0)
kernel /boot/kernel root=/dev/md3

and issue grub
grub> root (hd0,0)
....
grub> setup (hd0)
....
grub> root (hd2,0)
.....
grub> setup (hd2)
.....
grub> quit

When I reboot, the kernel issued a panic msg: it says can't read /dev/md/3
or (hd2,0) is invalid device.

Any idea what went wrong?

Thanks in advance for any suggestion.

--HH

[-- Attachment #2: Type: text/html, Size: 2005 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] installation / grub boot problem
  2009-03-10 21:09 [gentoo-user] installation / grub boot problem Heping He
@ 2009-03-10 21:17 ` Neil Bothwick
  2009-03-11 13:03   ` Heping He
  2009-03-15 20:06 ` Charles R., Porter
  1 sibling, 1 reply; 4+ messages in thread
From: Neil Bothwick @ 2009-03-10 21:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

On Tue, 10 Mar 2009 17:09:13 -0400, Heping He wrote:

> When I reboot, the kernel issued a panic msg: it says can't
> read /dev/md/3 or (hd2,0) is invalid device.

Did you build all the LVM and device mapper stuff into the kernel, not as
modules?


-- 
Neil Bothwick

The mechanic said I had blown a seal. I said, `Just fix the damn thing and
leave my private life out of it, OK?'

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] installation / grub boot problem
  2009-03-10 21:17 ` Neil Bothwick
@ 2009-03-11 13:03   ` Heping He
  0 siblings, 0 replies; 4+ messages in thread
From: Heping He @ 2009-03-11 13:03 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

I rebuilt the kernel and double checked to get these modules (raid1, raid5,
device mapper) linked into kernel, all to no avail. Any ideas?

--HH

On Tue, Mar 10, 2009 at 5:17 PM, Neil Bothwick <neil@digimed.co.uk> wrote:

> On Tue, 10 Mar 2009 17:09:13 -0400, Heping He wrote:
>
> > When I reboot, the kernel issued a panic msg: it says can't
> > read /dev/md/3 or (hd2,0) is invalid device.
>
> Did you build all the LVM and device mapper stuff into the kernel, not as
> modules?
>
>
> --
> Neil Bothwick
>
> The mechanic said I had blown a seal. I said, `Just fix the damn thing and
> leave my private life out of it, OK?'
>

[-- Attachment #2: Type: text/html, Size: 1002 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] installation / grub boot problem
  2009-03-10 21:09 [gentoo-user] installation / grub boot problem Heping He
  2009-03-10 21:17 ` Neil Bothwick
@ 2009-03-15 20:06 ` Charles R., Porter
  1 sibling, 0 replies; 4+ messages in thread
From: Charles R., Porter @ 2009-03-15 20:06 UTC (permalink / raw
  To: gentoo-user

Heping He wrote:
> Hi, I tried to install gentoo on my AMD 64 dual core machine. It has
> four 500 GB HDs. I followed the instruction on
> http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml. I
> replaced /dev/md4 with raid5 instead of raid0. Here is the list of
> each HD's partitiion:
>
> /dev/sda:
> partition #,  boot   start    end     type
> 1                  *        1        18     fd
> 2                           19       361   fd
> 3                            362     end  fd
>
> /dev/sdb
> partition #,  boot   start    end     type
> 1                           1        361     82
> 2                           362     end    fd
>
> /dev/sdc is the same to /dev/sda, and /dev/sdd = /dev/sdb
>
> I created /dev/md1, /dev/md3 and /dev/md4:
> mknod /dev/md1 b 9 1
> mknod /dev/md3 b 9 3
> mknod /dev/md4 b 9 4
>
> and then form raid:
> mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdc1
> mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda2 /dev/sdc2
> mdadm --create /dev/md4 --level=5 --raid-devices=4 /dev/sda3 /dev/sdb2
> /dev/sdc3 /dev/sdd2
>
> /dev/sdb1 and /dev/sdd1 forms the swap space
>
> mount:
> mount /dev/md3 /mnt/gentoo
> mount /dev/md1 /mnt/gentto/boot
>
> /dev/md4 is for lvm2 and /usr, /home,  /opt and other common unix dir
> are created there
>
> after chroot and emerge, I issued emerge grub and modified
> /boot/grub/grub.conf
>
> default 0
> timeout 10
>
> title gentoo
> root (hd0,0)
> kernel /boot/kernel root=/dev/md3
>
> and issue grub
> grub> root (hd0,0)
> ....
> grub> setup (hd0)
> ....
> grub> root (hd2,0)
> .....
> grub> setup (hd2)
> .....
> grub> quit
>
> When I reboot, the kernel issued a panic msg: it says can't read
> /dev/md/3 or (hd2,0) is invalid device.
>
> Any idea what went wrong?
>
> Thanks in advance for any suggestion.
>
> --HH
I'm running a similar RAID setup and I found that I must add   "
root=/dev/md3 md=3,sda3,sdb3,hda3 ".    It seems that md3 must be
defined.  At least I had kernel panics until I added this.

Chuck




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-15 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 21:09 [gentoo-user] installation / grub boot problem Heping He
2009-03-10 21:17 ` Neil Bothwick
2009-03-11 13:03   ` Heping He
2009-03-15 20:06 ` Charles R., Porter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox