Re: Problem with raid boot

From: Connor T (madman_dan_at_hotmail.com)
Date: 10/31/05


Date: 31 Oct 2005 12:52:02 -0800

Ok, many apolologies for taking so long to come back to this, but i've
just tried this, got lilo installed, and it seems to update on both
hdd's when i run lilo -v.

So, I have /dev/md0 happily running. I turned the pc off, disconnected
the primary hdd, and powered back on. The system came up, but LILO
only got to the LI stage, which is apparently something to do with
drive geometry differences? Admittedly the drives are _not_ identical.

Any ideas?

Michael Heiming wrote:
> In comp.os.linux.setup Michael Heiming <michael+USENET@www.heiming.de>:
> > In comp.os.linux.setup Peter T. Breuer <ptb@oboe.it.uc3m.es>:
> >> Connor T <madman_dan@hotmail.com> wrote:
> [..]
>
> >>> ( Centos is a RHEL clone )
>
> [..]
>
> >> In the obvious way! I believe lilo has an option to do that
> >> automatically, or does do it autmatically.
>
> > Yep, just point the loader to the md device containing "/" and
> > rerun 'lilo -v', you should see it writing on both disks and
> > both will be perfectly bootable, at least with RHEL.
>
> In addition, look at this example of a working softraid 1
> configuration:
>
> Presuming "root=/dev/md5", put in lilo.conf:
>
> boot=/dev/md5
>
> Now run 'lilo -v':
>
> # lilo -v
> LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
> 'lba32' extensions Copyright (C) 1999,2000 John Coffman
>
> boot = /dev/sdb, map = /boot/map.0811
> Reading boot sector from /dev/sdb
> Merging with /boot/boot.b
> [..]
> /boot/boot.0810 exists - no backup copy made.
> Writing boot sector.
> boot = /dev/sda, map = /boot/map.0801
> Reading boot sector from /dev/sda
> Merging with /boot/boot.b
> [..]
>
> As you can see, lilo happily writes the boot sector to both disks
> and the system can boot from both. This example uses SCSI disks,
> but that doesn't matter, it works as fine with IDE. Just be aware
> that not all distro allow this out of the box.
>
> [..]
>
> --
> Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
> mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
> #bofh excuse 376: Budget cuts forced us to sell all the power
> cords for the servers.



Relevant Pages

  • Re: Problem with raid boot
    ... Now run 'lilo -v': ... Reading boot sector from /dev/sdb ... This example uses SCSI disks, ... Michael Heiming ...
    (comp.os.linux.setup)
  • Re: LILO with root-raid nightmare - please help.
    ... Kernel & BIOS return differing head/sector geometries for device 0x80 ... /dev/hda is not on the first disk /boot/boot.0300 exists - no boot sector backup copy made. ... I believe the problem may have stemmed from the fact that I originally set up the array on woody with a version of lilo that needed to overwrite the mbr of each of the physical disks, apparently this isn't the default behavior for raid in newer versions of lilo. ...
    (Debian-User)
  • Re: grubby: unable to open /boot/boot.b: No such file or directory
    ... Thomas Rabaix wrote: ... Development beyond version 21 Copyright 1999-2006 John Coffman ... The boot sector and the map file have *NOT* been altered. ... this is true, as noted in 1st line of lilo response, it proves out ...
    (Fedora)
  • Re: RAID-1 root/boot/lilo problem
    ... My original intention was to make lilo write to a degraded /dev/md0 to get ... RAID list: /dev/hdc is device 0x1600 ... Reading boot sector from /dev/md0 ... The boot record of /dev/md0 has been updated. ...
    (comp.os.linux.setup)
  • Re: lilo not "accepting" a new kernel
    ... LILO version 22.6.1, ... Debian GNU/Linux ... Reading boot sector from /dev/hda ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)