Hi,
   I'm doing an install roughly following this guide:

http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

Differences:

1) AMD64
2) A non-RAID Gentoo install already resides /dev/sda
3) I'm doing the RAID install on /dev/sdb3 & /dev/sdc3
4) RAID1 only
5) No LVM
6) Shared /boot & grub
7) grub not installed for the RAID installation as I am using the
non-raid grub to boot options

   The install is complete but it won't boot. grub finds the kernel
and starts booting but then I get the typical VFS file sync error as
the kernel starts looking for the install on /dev/md3. What I'm not
understanding is how does the boot process get the information
required to assemble the RAID device. By hand in the non-RAID install
I do this:

keeper ~ # mdadm -A /dev/md3 /dev/sdb3 /dev/sdc3
mdadm: /dev/md3 has been started with 2 drives.
keeper ~ # cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sdb3[0] sdc3[1]
      52436092 blocks super 1.1 [2/2] [UU]

unused devices: <none>
keeper ~ #

but when I try to boot the RAID install it says it cannot find /dev/md3.

   From within the non-RAID install I can mount md3. It's got the RAID
install and I can chroot into it and continue doing install like
things so all the data is there but I cannot boot it.

   I don't see what allows grub (I gruss) to start up mdadm, assemble
the device and then continue the boot. What am I missing?

   grub.conf and fdisk info follows.

Thanks,
Mark


keeper ~ # cat /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title /dev/sda1 Gentoo Linux 2.6.33-gentoo
root (hd0,0)
kernel (hd0,0)/boot/bzImage-2.6.33-gentoo root=/dev/sda3

title /dev/sda1 Gentoo Linux 2.6.33-gentoo-RAID
root (hd0,0)
kernel (hd0,0)/boot/bzImage-2.6.33-gentoo-RAID root=/dev/md3

keeper ~ #


keeper ~ # fdisk -l /dev/sda /dev/sdb /dev/sdc

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1d23ae47

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          14      112423+  83  Linux
/dev/sda2              16         538     4200997+  82  Linux swap / Solaris
/dev/sda3            2048        5964    31463302+  83  Linux
/dev/sda4            6000      121601   928573065    5  Extended
/dev/sda5            6000       19054   104864256   83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa06ef201

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          14      112423+  83  Linux
/dev/sdb2              16         538     4200997+  82  Linux swap / Solaris
/dev/sdb3             544        7071    52436160   fd  Linux raid autodetect

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2ab15637

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          14      112423+  83  Linux
/dev/sdc2              16         538     4200997+  82  Linux swap / Solaris
/dev/sdc3             544        7071    52436160   fd  Linux raid autodetect
keeper ~ #


>From the RAID1 fstab

/dev/sda1               /boot           ext2            noauto,noatime  1 2
/dev/md3                /               ext3            noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/sdb2               none            swap            sw              0 0
/dev/sdc2               none            swap            sw              0 0

Reply via email to