-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Sep 28, 2007 at 11:43:33AM +0200, Jens Thiele wrote: >On 17 Sep 2007, [EMAIL PROTECTED] wrote: >> hey guys sorry if you still use lilo, you need to do >> manual intervence, i see no other way. >> >> unless a real strong argument comes up, i'll close that bug in a >> month. > >AFAIK grub does not support LVM on top of md raid1 whereas lilo does? >The installer allows to setup LVM on top of raid and as far as I >remember then suggests usage of lilo. > >Just as explanation / usage scenario: >I use lvm on top of raid1 on a laptop and run the raid in degraded state >most of the time. From time to time I attach an external usb disk and >resync it. (incremental resync that is)
GRUB does not support LVM or RAID, but your syncing goal can be reach if you store /boot on RAID1 but outside LVM. This is what I use for servers, which should work fine for your use too: /dev/sda -> GRUB stage1 /dev/sdb -> GRUB stage1 (backup) /dev/sda1 + /dev/sdb1 -> /dev/md0 (RAID1) -> /boot /dev/sda2 + /dev/sdb2 -> /dev/md1 (RAID1) -> swap /dev/sda3 = /dev/sdc3 -> /dev/md2 (RAID1) -> LVM2 -> ... The trick used is that data on RAID1 is readable directly without knowledge of RAID, so GRUB reads /boot on /dev/sda1. Just make sure to not use the "savedefault" feature of GRUB (you don't ever want to _write_ directly to a RAID1 partition!). The grub-install wrapper (or is it install-grub?) does not support this trick (it cannot reliably resolve the underlying partition of a RAID1), but you can do it manually like this: 1) Copy GRUB stage2 and stage3 into mounted /boot RAID1 partition: mkdir /boot/grub cp /usr/lib/grub/i386-pc/* /boot/grub/ 2) Install GRUB stage1 onto bootsector grub ...and then within the GRUB shell: root (hd0,0) setup (hd0) quit Hope that helps (to get rid of that old ugly LILO). - Jonas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHgkPyn7DbMsAkQLgRAnZhAJ4rlwiFW4m96Yv/OASCCHGSgtw2SwCbB0XY R7Wg8k0lGju30lhfc6xYsf0= =idza -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]