[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

LILO + boot raid1 (software)



Hi 

I recently decided that it was time we did a kernel upgrade on a server
of ours running software RAID1 on a Debian 3 Woody machine. The raid
devices are set up fine and running ok:

Filesystem            Size  Used Avail Use% Mounted on
/dev/md0              478M   68M  410M  15% /
/dev/md1              2.8G  513M  2.2G  18% /usr
/dev/md2              9.3G  3.6G  5.7G  39% /var
/dev/md3              5.9G  3.2G  2.7G  54% /home

Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hdc1[1] hda1[0]
      489856 blocks [2/2] [UU]

md1 : active raid1 hdc2[1] hda2[0]
      2931776 blocks [2/2] [UU]

md2 : active raid1 hdc3[1] hda3[0]
      9767424 blocks [2/2] [UU]

md3 : active raid1 hdc5[1] hda5[0]
      6233088 blocks [2/2] [UU]

unused devices: <none>

My lilo.conf looks like this:

lba32
boot=/dev/md0
root=/dev/md0
install=/boot/boot.b
map=/boot/map
delay=20
default=raid
vga=normal

image=/vmlinuz
	label=Linux
	read-only
	restricted
image=/boot/vmlinuz-2.4.26
	label=two4twenti6
	read-only
	restricted
image=/boot/vmlinuz-2.4.20-raid
	label=raid
	read-only
	restricted

When I try run lilo I get the following:

blubox:~# lilo -v -v
LILO version 22.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 05-Feb-2002 and compiled at 20:57:26 on Apr 13 2002.
MAX_IMAGES = 27

RAID info:  nr=2, raid=2, active=2, working=2, failed=0, spare=0
md: RAIDset device 0 = 0x0301
Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x80
Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x81
bios_dev: PT match found 2 matches (0x80)
RAID scan: geo_get: returns geo->device = 0x80 for device 0301
disk->start = 63                raid_offset = 0 (00000000)
md: RAIDset device 1 = 0x1601
bios_dev: PT match found 2 matches (0x80)
RAID scan: geo_get: returns geo->device = 0x81 for device 1601
disk->start = 63                raid_offset = 0 (00000000)
Warning: using BIOS device code 0x80 for RAID boot blocks
raid_setup returns offset = 00000000
raid flags: at bsect_open  0x02
Reading boot sector from /dev/md0
Merging with /boot/boot.b
Secondary loader: 15 sectors.
map_create:  boot=0900  map=0301
Fatal: map file must be on the boot RAID partition
blubox:~#

As far as I can see the map file *is* on the boot RAID partition. Is
there something I am missing here? I have other machine set up like this
too and they seem to work fine. Any help will be greatly appreciated!

Thanks
Dave



Reply to: