Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting LILO from RAID-1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mgbowman
n00b
n00b


Joined: 31 Jul 2005
Posts: 47

PostPosted: Thu Aug 17, 2006 4:13 pm    Post subject: Booting LILO from RAID-1 Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Thu Aug 17, 2006 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
mgbowman
n00b
n00b


Joined: 31 Jul 2005
Posts: 47

PostPosted: Fri Aug 18, 2006 7:54 am    Post subject: Reply with quote

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
Code:
boot=/dev/sda

to both
Code:
boot=/dev/sdb

and
Code:
boot=/dev/sdc

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) :P

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Fri Aug 18, 2006 1:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
dgrant
Apprentice
Apprentice


Joined: 28 May 2003
Posts: 158
Location: Vancouver, BC, Canada

PostPosted: Thu Jan 25, 2007 6:00 am    Post subject: Reply with quote

I think you can use the raid-extra-boot option to specify all 3 three drives...
Back to top
View user's profile Send private message
MerlinYoda
n00b
n00b


Joined: 23 May 2007
Posts: 17
Location: Indiana, United States, Earth, Sol System, Milky Way Galaxy, "The Universe"

PostPosted: Thu May 24, 2007 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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