1 |
Hi, |
2 |
I'm doing an install roughly following this guide: |
3 |
|
4 |
http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml |
5 |
|
6 |
Differences: |
7 |
|
8 |
1) AMD64 |
9 |
2) A non-RAID Gentoo install already resides /dev/sda |
10 |
3) I'm doing the RAID install on /dev/sdb3 & /dev/sdc3 |
11 |
4) RAID1 only |
12 |
5) No LVM |
13 |
6) Shared /boot & grub |
14 |
7) grub not installed for the RAID installation as I am using the |
15 |
non-raid grub to boot options |
16 |
|
17 |
The install is complete but it won't boot. grub finds the kernel |
18 |
and starts booting but then I get the typical VFS file sync error as |
19 |
the kernel starts looking for the install on /dev/md3. What I'm not |
20 |
understanding is how does the boot process get the information |
21 |
required to assemble the RAID device. By hand in the non-RAID install |
22 |
I do this: |
23 |
|
24 |
keeper ~ # mdadm -A /dev/md3 /dev/sdb3 /dev/sdc3 |
25 |
mdadm: /dev/md3 has been started with 2 drives. |
26 |
keeper ~ # cat /proc/mdstat |
27 |
Personalities : [raid1] |
28 |
md3 : active raid1 sdb3[0] sdc3[1] |
29 |
52436092 blocks super 1.1 [2/2] [UU] |
30 |
|
31 |
unused devices: <none> |
32 |
keeper ~ # |
33 |
|
34 |
but when I try to boot the RAID install it says it cannot find /dev/md3. |
35 |
|
36 |
From within the non-RAID install I can mount md3. It's got the RAID |
37 |
install and I can chroot into it and continue doing install like |
38 |
things so all the data is there but I cannot boot it. |
39 |
|
40 |
I don't see what allows grub (I gruss) to start up mdadm, assemble |
41 |
the device and then continue the boot. What am I missing? |
42 |
|
43 |
grub.conf and fdisk info follows. |
44 |
|
45 |
Thanks, |
46 |
Mark |
47 |
|
48 |
|
49 |
keeper ~ # cat /boot/grub/grub.conf |
50 |
default 0 |
51 |
timeout 30 |
52 |
splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
53 |
|
54 |
title /dev/sda1 Gentoo Linux 2.6.33-gentoo |
55 |
root (hd0,0) |
56 |
kernel (hd0,0)/boot/bzImage-2.6.33-gentoo root=/dev/sda3 |
57 |
|
58 |
title /dev/sda1 Gentoo Linux 2.6.33-gentoo-RAID |
59 |
root (hd0,0) |
60 |
kernel (hd0,0)/boot/bzImage-2.6.33-gentoo-RAID root=/dev/md3 |
61 |
|
62 |
keeper ~ # |
63 |
|
64 |
|
65 |
keeper ~ # fdisk -l /dev/sda /dev/sdb /dev/sdc |
66 |
|
67 |
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes |
68 |
255 heads, 63 sectors/track, 121601 cylinders |
69 |
Units = cylinders of 16065 * 512 = 8225280 bytes |
70 |
Disk identifier: 0x1d23ae47 |
71 |
|
72 |
Device Boot Start End Blocks Id System |
73 |
/dev/sda1 * 1 14 112423+ 83 Linux |
74 |
/dev/sda2 16 538 4200997+ 82 Linux swap / Solaris |
75 |
/dev/sda3 2048 5964 31463302+ 83 Linux |
76 |
/dev/sda4 6000 121601 928573065 5 Extended |
77 |
/dev/sda5 6000 19054 104864256 83 Linux |
78 |
|
79 |
Disk /dev/sdb: 500.1 GB, 500107862016 bytes |
80 |
255 heads, 63 sectors/track, 60801 cylinders |
81 |
Units = cylinders of 16065 * 512 = 8225280 bytes |
82 |
Disk identifier: 0xa06ef201 |
83 |
|
84 |
Device Boot Start End Blocks Id System |
85 |
/dev/sdb1 1 14 112423+ 83 Linux |
86 |
/dev/sdb2 16 538 4200997+ 82 Linux swap / Solaris |
87 |
/dev/sdb3 544 7071 52436160 fd Linux raid autodetect |
88 |
|
89 |
Disk /dev/sdc: 500.1 GB, 500107862016 bytes |
90 |
255 heads, 63 sectors/track, 60801 cylinders |
91 |
Units = cylinders of 16065 * 512 = 8225280 bytes |
92 |
Disk identifier: 0x2ab15637 |
93 |
|
94 |
Device Boot Start End Blocks Id System |
95 |
/dev/sdc1 1 14 112423+ 83 Linux |
96 |
/dev/sdc2 16 538 4200997+ 82 Linux swap / Solaris |
97 |
/dev/sdc3 544 7071 52436160 fd Linux raid autodetect |
98 |
keeper ~ # |
99 |
|
100 |
|
101 |
From the RAID1 fstab |
102 |
|
103 |
/dev/sda1 /boot ext2 noauto,noatime 1 2 |
104 |
/dev/md3 / ext3 noatime 0 1 |
105 |
/dev/sda2 none swap sw 0 0 |
106 |
/dev/sdb2 none swap sw 0 0 |
107 |
/dev/sdc2 none swap sw 0 0 |