Bug#514338: grub-common: grub-probe fails on RAID with "error: array->nr_devs > array->total_devs (2)?!?"

Rasmus Bøg Hansen rasmus at msconsult.dk
Fri Feb 6 14:41:50 UTC 2009


Felix Zielcke wrote:
> Am Freitag, den 06.02.2009, 14:12 +0100 schrieb Rasmus Bøg Hansen:
>
>> error: array->nr_devs > array->total_devs (2)?!?
>
> This error appears if you have removed a disk/partition from a mdraid
> array and forgot to `mdadm --zero-superblock' it.

Ok, I can remove the spares from the fourth drive on system 2 and grub
becomes able to install. However it begins to complain again when I re-add
the spares.

Is this due to superblocks on the first three disks not having the fourth
(spare) disk listed? Is it necessary to have the superblocks updated
somehow to make grub able to install?

>> On system 1, however, neither etch grub, lenny grub or lenny grub-pc
>> will install without the error message. If I install grub 0.97-51
>> (experimental) and grub-common (1.96+20081201-1) grub installs without
>> error message.
>>
>> I have not tried rebooting system 2 with the grub installations that
>> gives error messages as the system is located abroad (4 hours total
>> travel time by plane). System 1 is just 10km away but unreachable for
>> the next week and I have only tried the etch grub.
>
> Since version 1.96+20080831-1 the raid code had an overhaul, though
> `array->nr_devs > array->total_devs' is still checked.
> It should boot fine if grub-probe doestn't complain about it anymore.

I removed the spares, installed grub (lenny versions of grub and
grub-common) with no errors and system boots fine.

It seems a bit complex to remove the spares, zero their superblocks,
install grub and re-add the spares :-)

Regards
/Rasmus

-- 
Rasmus Bøg Hansen
MSC Aps
Bøgesvinget 8
2740 Skovlunde
44 53 93 66






More information about the Pkg-grub-devel mailing list