View previous topic :: View next topic |
Author |
Message |
mgbowman n00b
Joined: 31 Jul 2005 Posts: 47
|
Posted: Thu Aug 17, 2006 4:13 pm Post subject: Booting LILO from RAID-1 |
|
|
So I have my /boot setup on RAID-1 and following this guide I setup my lilo.conf as follows:
Code: | gaia ~ # cat /etc/lilo.conf
disk=/dev/md3
bios=0x80
sectors=63
heads=255
cylinders=30401
partition=/dev/md1
start=63
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/hardened-2.6.16-r11
label=gentoo
read-only
root=/dev/md3 |
Now my question is - this being a 3 disk mirror across /dev/sda, /dev/sdb, and /dev/sdc - when I execute lilo, the software raid should mirror to all 3 disks regardless of the config saying boot=/dev/sda and nothing about /dev/sdb and /dev/sdc - correct?
Thanks,
--mgb _________________ "Computer programs only do what you tell them to do, not what you want them to do." |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Thu Aug 17, 2006 8:31 pm Post subject: |
|
|
mgbowman,
It would be correct if the lilio insall was wholly within the filesystem but its not.
Lilo (and grub) install on the MBR and the otherwise wasted space before the the first partition.
This space, being outside the filesystem, is not mirrored. Therefore you need to install lilo on each part of the mirror seperately, every time you update the kernel or change lilo.conf. At least with grub, you only do it once, when grub is installed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mgbowman n00b
Joined: 31 Jul 2005 Posts: 47
|
Posted: Fri Aug 18, 2006 7:54 am Post subject: |
|
|
NeddySeagoon wrote: | Lilo (and grub) install on the MBR and the otherwise wasted space before the the first partition |
Now I knew this and it totally escaped me! (sometimes I can be so "we-tall-did").
So in order to use LILO, I would need to change
to both
and
in lilo.conf and run lilo 3 times? (no bueno!)
NeddySeagoon wrote: | At least with grub, you only do it once, when grub is installed. |
So I only have to do it once with grub? Thinking LILO wasn't such a great choice after all (just used to it)
Thanks for the input,
--mgb _________________ "Computer programs only do what you tell them to do, not what you want them to do." |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri Aug 18, 2006 1:23 pm Post subject: |
|
|
mgbowman,
Right on both counts, you need to edit lilo.conf and run lilo 3 times and Lilo is not such a good choice as grub in this situation. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
dgrant Apprentice
Joined: 28 May 2003 Posts: 158 Location: Vancouver, BC, Canada
|
Posted: Thu Jan 25, 2007 6:00 am Post subject: |
|
|
I think you can use the raid-extra-boot option to specify all 3 three drives... |
|
Back to top |
|
|
MerlinYoda n00b
Joined: 23 May 2007 Posts: 17 Location: Indiana, United States, Earth, Sol System, Milky Way Galaxy, "The Universe"
|
Posted: Thu May 24, 2007 12:01 am Post subject: |
|
|
dgrant wrote: | I think you can use the raid-extra-boot option to specify all 3 three drives... |
You can.
Code: | raid-extra-boot=/dev/sda,/dev/sdb,/dev/sdc |
That's how I did it in LILO (with one less drive though). I really don't understand why so many people in the community tend to favor GRUB over LILO for even "simpler setups" though.
By design, GRUB seems a little more cryptic, especially in how much may need to be put on one line (particularly the kernel declaration and it's additional parameters). GRUB's config file also seems "less friendly" to use as far as visually scanning and interpreting it (probably depends on tastes though). I guess if GRUB is actually "a more powerful bootloader tool" than LILO, then I can see why it would be more adopted in a community that attracts more users that thrive on customization (in with I include myself in that group ). However, I haven't seen evidence anywhere of cases in which you can't duplicate certain functionality (a.k.a. results) in LILO that you get in GRUB. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|