Hi Neil,
On 04/19/11 21:12, NeilBrown wrote:
I seem to remember that I had to do something special to grub to get it to
boot initially, but I also vaguely remember that after some series of updates
(this is Debian) it seemed to get a lot easier. My "grub.cfg" contains:
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod ext2
set root='(md0,1)'
search --no-floppy --fs-uuid --set 03e9951f-d174-4d88-9b4c-dd7a31c0de61
echo 'Loading Linux 2.6.32-5-686 ...'
linux /vmlinuz-2.6.32-5-686 root=UUID=6e8a3564-5588-476e-bbe5-a68c967c6c8e ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-686
}
which was all automatically created, and it seems to "just work".
Yes, I am also reminded now that grub and md was a bit strange, mostly
because I was converting a single drive system to a RAID1 system, and I
had dd-d /dev/sda onto /dev/sdb. Grub seemed to struggle with the fact
that the UUID was the same on /dev/sda1, /dev/sdb1, and naturally
/dev/md0p1, which was initially created on top of /dev/sda. It refused
to boot a couple of times complaining about the UUID, which was easily
resolved by editing the grub entry on the fly in the grub prompt, and
changing root=UUID=6e8a3564-5588-476e-bbe5-a68c967c6c8e to
root=/dev/md0p1 (note that the UUID is just an example UUID), and
booting that way. Afterward, doing:
grub-install --modules="raid" /dev/md0
seemed to eventually placate grub. Also, I did not really see any change
in grub.cfg, but then again, I didn't actually do a "diff" of grub.cfg
before and after. The point is that it still uses UUID, the UUID is
still the same among all these devices (naturally, since this is RAID1),
and it *no longer complains*. It's a bit disconcerting, but I will learn
to live with it :D.
I hope this helps!
Iordan
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html