Re: grub2/grub-pc install not possible on mdadm

From
John Robinson <hidden>
Date
2012-03-02 09:24:15
Reply to
Stefan Priebe - Profihost AG, 2012-03-02
On 02/03/2012 09:11, Stefan Priebe - Profihost AG wrote:
Am 02.03.2012 10:06, schrieb Lars Täuber:
quoted
quoted
Correct that's why i've also tried to install it on sda / sdb but then
grub complains about not finding any partition table.
do you have a partition table inside the raid?
This will not work I expect. The kernel might find the partition table but
grub?

Or do you have no partition table at all and a filesystem directly on the
raid device?
No partition table on sda / sdb. Partition table is on md127. This
scenario works fine with metadata 0.9. And as far as i understand it
should work with 1.2 too.
No, I don't think it should - 1.2's metadata is offset 4K into the component devices and the data starts later, at 1M or so. That means that the BIOS can't find the partition table where it expects to. Using 1.0, which has its data right at the beginning and metadata at the end, might work if 0.90 does. It's still not 100% because a UEFI BIOS isn't going to find the backup GPT partition table where it ought to.

Unless you are using IMSM or another BIOS-readable RAID, you ought to be creating partition tables on all your drives, installing GRUB into the bios-grub partitions, and building arrays from the rest of the partitions (typically a RAID-1 /boot and any level you like for the rest; I use RAID-10 for swap and on two drives RAID-10,f2 for the root).

Cheers,

John.

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (22 messages) 22 messages, 4 authors, last reply 2012-03-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help