Gentoo Archives: gentoo-user

From: joost@××××××××.org
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: [O/T] RAID help - now won't boot
Date: Sun, 20 Oct 2013 14:31:22
Message-Id: 30a1c0c8-79ea-4606-9961-c4c9e95a6d91@email.android.com
In Reply to: Re: [gentoo-user] Re: [O/T] RAID help - now won't boot by Michael Hampicke
1 Michael Hampicke <mh@××××.biz> wrote:
2 >Am 20.10.2013 15:13, schrieb Mick:
3 >> On Sunday 20 Oct 2013 13:57:34 Michael Hampicke wrote:
4 >>> Am 20.10.2013 11:54, schrieb Mick:
5 >>>> Any ideas why the Ubuntu installation won't boot?
6 >>>
7 >>> My guess would be, you cannot boot, because if you install grub in
8 >>> /dev/md0.
9 >>>
10 >>> Upon boot the bios cannot find stage1 of the bootloader, which
11 >normally
12 >>> lies in the MBR (which also houses the partition table).
13 >>
14 >> I see ... so installing the MBR code in the /dev/md0 block device is
15 >further
16 >> down the disk than where BIOS is looking for it and that's why it
17 >errors out?
18 >>
19 >
20 >That would be my guess. Maybe someone more knowledgeable on how mdadm
21 >writes stuff on the disk can jump in and provide additional info. But
22 >I'm pretty sure, if you install grub in md0, it's not in that place on
23 >the disk where the bios is actually looking for.
24 >
25 >>
26 >> It seems to me then that I *have* to create normal partitions on
27 >/dev/sda &
28 >> /dev/sdb, or I would need a different boot drive. Is there another
29 >way to
30 >> overcome this problem.
31 >
32 >Maybe create two mds. md1 (sda1, sdb1) is a small boot partition which
33 >contains stage2+, the kernel and the initramfs. And md2 (sda2, sdb2)
34 >which acts as another block device with partition table, etc...
35 >In this setup you could install grub in the mbr of sda and sdb
36 >(grub-install /dev/sda...)
37 >
38 >A quick google on this subject returned no usable results. But I am off
39 >now until tomorrow.
40
41 I would suggest trying it by usong the older metadata format.
42 Check the man pages, but I thinl it would be --metadata=0.90 (or similar) during creation.
43 That might put the metadata at the end, rather then at the front. (Or it's the other way round and new metadata does it at the end.)
44
45 --
46 Joost
47 Ps. I have never tried it this way (full disk raid for boot device) using linux software raid.
48 --
49 Sent from my Android device with K-9 Mail. Please excuse my brevity.

Replies

Subject Author
Re: [gentoo-user] Re: [O/T] RAID help - now won't boot Mick <michaelkintzios@×××××.com>