public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How does grub assemble a RAID1 for / ??
@ 2010-04-03 23:07 Mark Knecht
  2010-04-03 23:37 ` Neil Bothwick
  2010-04-03 23:45 ` [gentoo-user] " Albert Hopkins
  0 siblings, 2 replies; 25+ messages in thread
From: Mark Knecht @ 2010-04-03 23:07 UTC (permalink / raw
  To: gentoo-user

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



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

end of thread, other threads:[~2010-04-05 11:03 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-03 23:07 [gentoo-user] How does grub assemble a RAID1 for / ?? Mark Knecht
2010-04-03 23:37 ` Neil Bothwick
2010-04-04  1:01   ` Mark Knecht
2010-04-04  2:38     ` [gentoo-user] " Kerin Millar
2010-04-04 14:20       ` Mark Knecht
2010-04-04 17:32         ` Kerin Millar
2010-04-04 17:50           ` Mark Knecht
2010-04-04 18:13             ` Kerin Millar
2010-04-04 18:43               ` Mark Knecht
2010-04-04 19:29                 ` Kerin Millar
2010-04-04 19:52                   ` Mark Knecht
2010-04-04 20:06                     ` Kerin Millar
2010-04-04 22:16                       ` Mark Knecht
2010-04-04 22:47                         ` Kerin Millar
2010-04-04 23:12                           ` Mark Knecht
2010-04-04 23:51                             ` Kerin Millar
2010-04-04 23:58                               ` Mark Knecht
2010-04-05  0:28                                 ` Kerin Millar
2010-04-05  0:34                                 ` Mark Knecht
2010-04-05  0:47         ` walt
2010-04-05  1:03           ` Mark Knecht
2010-04-05 10:38           ` Mick
2010-04-03 23:45 ` [gentoo-user] " Albert Hopkins
2010-04-04  9:57   ` Xavier Parizet
2010-04-04 14:21     ` Mark Knecht

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