Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions
Arne Goetje
arne at linux.org.tw
Thu Apr 19 07:11:44 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 04/16/2012 03:56 PM, Colin Watson wrote:
> On Mon, Apr 16, 2012 at 12:17:59AM +0800, Arne Goetje wrote:
>> Upgrading from 1.99-17 to 1.99-21 on wheezy today renders the
>> system unbootable. Grub cannot detect any mdraid partition and is
>> therefor unable to load the kernel.
>
> Does it emit any error messages that might be useful to help us
> track this down?
Error message for each HD is "error: no such partition".
Since I have 4 HDs, the message appears 4 times.
>> Downgrading to 1.99-17 solves the problem.
> [...]
>> *********************** BEGIN /proc/mdstat Personalities :
>> [raid1] md1 : active raid1 sdc[0] sdd[1] 488386496 blocks [2/2]
>> [UU] md127 : active raid1 sda[0] sdb[1] 488386496 blocks [2/2]
>> [UU] unused devices: <none> *********************** END
>> /proc/mdstat
> [...]
>> * grub-pc/install_devices: /dev/sdc
>
> This jumped out at me. Are you quite sure that your BIOS is
> actually booting from /dev/sdc? It's possible that it's attempting
> to boot from an old copy of the GRUB core image installed to a
> different disk, which then gets confused by the newer modules in
> /boot/grub/. In this theory, downgrading to 1.99-17 would help
> because perhaps that core image is ABI-compatible with those
> modules; the support for non-512-byte sectors in 1.99-19 was
> probably a core/modules ABI break so this is plausible enough.
>
> My standard advice is to install GRUB to all fixed disks
> ('dpkg-reconfigure grub-pc') unless you have a good reason not to.
I remember I installed grub on all disks when I set up the machine.
However, 'dpkg-reconfigure grub-pc' doesn't give me any option to
configure that any more. I tried a manual 'grub-setup /dev/md127 ;
grub-setup /dev/md1' after installing the new version, but it didn't
help. grub-setup doesn't let me install on /dev/sd*, since the disks
are grouped into raid arrays now.
The boot device is /dev/md127 and the root partition /dev/md127p1.
(Itʼs named md127, because when I installed squeeze on the machine, I
chose the name md0 for the first raid array, not knowing that it would
secretly rename it to md127, since it somehow doesn't like the
numbering start from 0.)
Attached is my grub.cfg
HTH
Cheers
Arne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBCAAGBQJPj7qnAAoJENiwmJtstTzsdEsQAJMyrigq08JBYf4YJgHUQK4o
xV2qQrFI6Uk/3nfwRFx3G4287c+BTNKPusV7wtS/PaNPLntXgNoy3TGu0LQioKiu
Q3nsqUJjCiNT7CbxyVpBeEdH+msT4qgP67V9pbVqwJLVHETDkecxWk67tcAHaETi
NNLZWDxqx4afHuBfX+7WvVPuuLwFWqKn6AZYp7S3xCZk0j3V9r9wuwO69maW5iuA
Lxh34LExEvD6+wzUpupDZdxo7Q3Diz1Z1e/w2t4ADRwhAoTYJPLxQx6n4K7nIk6R
79fXa8Alkb+8fzop8NQkj+b79Xp2Tqb/6tfjBQbFXr4Cr/Oayk+QLuQt1MEnY8qm
nQtyY76FOPSiasWRT2smM7syif4vZBSCJVG6XCO2+geva40kjeq/iD/Qv3d7hsfS
wmM7nnvGGS4jPwDsl5mpKpUjzZmb8f1rBVUWcjMEpcispX1btrrpGTJDNCVOIWui
HgTRo0SHwQSQORMsOUJoQFuV5sA5giWzqEUV7bDeFKLhS+g6XifoEQocHnLT9qf0
yFbgOxcYStYDzjktM+MzmqScoGVxRvwmddWQQ/gEeTt8fxhANV+Am9XL47WMhukz
zZvZYwEkEckzw5srEYAx8lFbcLViPOGrffw4/46Efp34Wftlt/IdoVnigCImQhKr
j8ldZU6tWaUdpmjKvGFU
=bB4z
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: grub.cfg
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20120419/e39ef234/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub.cfg.sig
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20120419/e39ef234/attachment.pgp>
More information about the Pkg-grub-devel
mailing list