Bug#593648: grub-pc install fails on RAID1
Jeroen Dekkers
jeroen at dekkers.ch
Thu Jun 9 18:50:48 UTC 2011
At Tue, 07 Jun 2011 17:58:21 -0700,
Ross Boylan wrote:
> > Since md0 isn't partitioned it seems like the problem is the
> > manifestation of another issue of GRUB accepting metadata at the end of
> > last partition as metadata for the whole disk. This is fixed for 1.x
> > metadata but is still a problem with 0.9 one due to 0.9 data sector not
> > containing enough info to determine where it belongs to easily and reliably.
>
> What metadata are you referring to? The md metadata?
Yes. The md 0.9 metadata is located at the end, they changed this to
the beginning in 1.1/1.2 (note that 1.0 still stores it at the
end). The problem is that if you have a partition which ends at the
last sector of the disk the metadata of a raid array on such a
patition will be at exactly the same place as the metadata of a raid
array that spans the whole disk.
I think we should first check the partitions for raid metadata and
make sure that the size of the raid is not bigger than that of the
partition. But as far as I remember (it has been a while since I did
grub development) we would need to do some refactoring to be able to
do that.
And we should really add test cases for all those different kind of
raid setups...
Regards,
Jeroen Dekkers
More information about the Pkg-grub-devel
mailing list