Bug#531573: grub-pc: does not install onto partitionable mdadm mirror (raid1)

Felix Zielcke fzielcke at z-51.de
Tue Jun 2 15:03:49 UTC 2009


Am Dienstag, den 02.06.2009, 18:45 +0400 schrieb Vladimir Stavrinov:
> Thanks for quick reply.
> 
> On Tue, Jun 02, 2009 at 04:12:13PM +0200, Felix Zielcke wrote:
> 
> > That means you have to create a partition on all your RAID disks and
> > then setup the RAID over it, though you can still use a partionable RAID
> > array on it.
> 
> I have created mirror /dev/md_d0 on /dev/hda and /dev/hdb and then create
> /dev/md_d0p1 boot partition 64 MB and root /dev/md_d0p2. If I make
> partition /dev/hda1 then how it is possible to create patitionable array on
> the whole disk? If this will be OK:
> 
> mdadm -C /dev/md_d0 -ap5 -l1 -n2 /dev/hd[ab]

Make a partition over /dev/hda[ab] which is as big as your disks and
then just make the RAID over /dev/hda[ab]1 instead.
You can still use partitions over the RAID. Grub2 supports this.

> And what about to create first partition on the mirror (/dev/md_d0p1) with
> 64kb offset instead of creating such partition on the array member's
> (i.e. /dev/hda1)? Is it right way?

I don't know if it would work. grub-setup checks the partition table
stored in MBR if it's able to embed or not.
But AFAIK the RAID 0.90 superblock is stored at the end of the disk not
at the beginning.

-- 
Felix Zielcke






More information about the Pkg-grub-devel mailing list