LILO+RAID1 problem pri zapise bootsektora

Martin Homola homola na brno.abbas.cz
Čtvrtek Srpen 12 23:12:12 CEST 2004


Zdravim vsetkych,

mam na testovacom systeme (Debian Woody) rozbehany root na RAID1, system 
bezi OK, s RAIDom som nezaznamenal ziadne problemy. Rad by som nastavil 
LILO tak, aby pri odpojeni ktorehokolvek disku z RAIDu system 
nabootoval. Vygooglil som toho kopec, a doleuvedene konfiguracie by mali 
fungovat. LILO vsak odmieta zapisat boot sektory na disky. Skusal som 
vela nastaveni, ale system nabootuje iba ked su zapojene oba disky.
Ked sa bootsektor pomocou prepinaca '-x' zapise, system bootuje, ale ked 
jeden disk odoberiem, LILO sa zacne natahovat a dopadne to takto:

L 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 
04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 
04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 
04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 
04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 ... atd

Z dokumentacie:
   L <error> ...   The first stage boot loader has been loaded
and started, but it can't load the second stage boot loader. The
two-digit error codes indicate the type of problem. (See also section 
"Disk error codes".) This condition usually indicates a media
failure or a geometry mismatch (e.g. bad disk parameters, see section 
"Disk geometry").

0x04 ``Sector not found''. This typically indicates a geometry mismatch. 
If you're booting a raw-written disk image, verify whether it was 
created for disks with the same geometry as the one you're using. If 
you're booting from a SCSI disk or a large IDE disk, you should check, 
whether LILO has obtained correct geometry data from the kernel or 
whether the geometry definition corresponds to the real disk geometry. 
(See section 3.4.) Removing compact may help too. So may adding linear.

Viete mi niekto poradit? Pripadne ak by niekto , komu to bezi, chcel 
zverejnit svoje konfiguraky ...
Len nie prispevky stylu: ja mam Redhat na Athlone a mne to bezi ;)
Rad by som tento problem _riesil_ ;)

Dakujem

Martin Homola


Dalej uvadzam nejake tie informacie o systeme a chybove hlasky:


###cat /etc/raidtab
raiddev                 /dev/md0
raid-level              1
persistent-superblock   1
nr-raid-disks           2
nr-spare-disks          0
chunk-size              4
device                  /dev/hdb1
raid-disk               0
device                  /dev/hda1
raid-disk               1


### cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hda1[1] hdb1[0]
       979840 blocks [2/2] [UU]
unused devices: <none>


### uname -a
Linux test0 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown


### cat /etc/lilo.conf

lba32
boot=/dev/md0
install=/boot/boot-menu.b
map=/boot/map
raid-extra-boot="/dev/hda1,/dev/hdb1"
delay=20
timeout=150
vga=normal
default=LinuxRAID
image=/vmlinuz
label=LinuxRAID
initrd=/boot/initrd.raid
root=/dev/md0
read-only


### lilo -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

Fatal: Cannot write to a partition within a RAID set:  /dev/hda1

### lilo -v -x auto
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

Ignoring entry 'raid-extra-boot'
Warning: using BIOS device code 0x80 for RAID boot blocks
Reading boot sector from /dev/md0
Merging with /boot/boot-menu.b
Boot image: /vmlinuz -> boot/vmlinuz-2.4.18-bf2.4
Mapping RAM disk /boot/initrd.raid
Added LinuxRAID *

/boot/boot.0900 exists - no backup copy made.
Writing boot sector.
The boot record of

### cat /proc/ide/hda/geometry
physical     59320/16/63
logical      3722/255/63

### cat /proc/ide/hdb/geometry
physical     39870/16/63
logical      2501/255/63

###dmesg
Linux version 2.4.18-bf2.4 (root na zombie) (gcc version 2.95.4 20011002 
(Debian prerelease)) #1 Son Apr 14 09:53:28 CEST 2002
BIOS-provided physical RAM map:
  BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
  BIOS-e820: 0000000000100000 - 0000000008000000 (usable)
  BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Kernel command line: BOOT_IMAGE=LinuxRAID ro root=900
Initializing CPU#0
Detected 399.695 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 797.90 BogoMIPS
Memory: 124172k/131072k available (1783k kernel code, 6516k reserved, 
549k data, 280k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Before vendor init, caps: 0183fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
CPU: After vendor init, caps: 0183fbff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff 00000000 00000000 00000000
CPU:             Common caps: 0183fbff 00000000 00000000 00000000
CPU: Intel Celeron (Mendocino) stepping 05
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 399.6532 MHz.
..... host bus clock speed is 66.6088 MHz.
cpu: 0, clocks: 666088, slice: 333044
CPU0<T0:666080,T1:333024,D:12,S:333044,C:666088>
mtrr: v1.40 (20010327) Richard Gooch (rgooch na atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb3c0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 2: assuming transparent
PCI: Using IRQ router VIA [1106/0596] at 00:07.0
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
vga16fb: initializing
vga16fb: mapped to 0xc00a0000
Console: switching to colour frame buffer device 80x30
fb0: VGA16 VGA frame buffer device
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ 
SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c596a (rev 06) IDE UDMA33 controller on pci00:07.1
     ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:pio, hdb:pio
     ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:pio, hdd:pio
hda: SAMSUNG SV3064D, ATA DISK drive
hdb: IBM-DTLA-305020, ATA DISK drive
hdc: Maxtor 7270 AV, ATA DISK drive
hdd: SAMSUNG SCR-3232, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 59794560 sectors (30615 MB) w/434KiB Cache, CHS=3722/255/63
hdb: 40188960 sectors (20577 MB) w/380KiB Cache, CHS=2501/255/63
hdc: 527510 sectors (270 MB) w/32KiB Cache, CHS=959/11/50
hdd: ATAPI 32X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
ide-floppy driver 0.97.sv
Partition check:
  hda: hda1
  hdb: hdb1
  hdc: hdc1
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Loading I2O Core - (c) Copyright 1999 Red Hat Software
I2O configuration manager v 0.04.
   (C) Copyright 1999 Red Hat Software
loop: loaded (max 8 devices)
Compaq CISS Driver (v 2.4.5)
HDLC support module revision 1.02 for Linux 2.4
Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
ide-floppy driver 0.97.sv
Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found
Highpoint HPT370 Softwareraid driver for linux version 0.01
No raid array found
SCSI subsystem driver Revision: 1.00
Red Hat/Adaptec aacraid driver, Apr 14 2002
DC390: 0 adapters found
3ware Storage Controller device driver for Linux v1.02.00.016.
3w-xxxx: No cards with valid units found.
request_module[scsi_hostadapter]: Root fs not mounted
request_module[scsi_hostadapter]: Root fs not mounted
i2o_scsi.c: Version 0.0.1
   chain_pool: 0 bytes @ c7e45500
   (512 byte buffers X 4 can_queue X 0 i2o controllers)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 1512 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 1512k freed
VFS: Mounted root (cramfs filesystem).
Freeing unused kernel memory: 280k freed
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: raid1 personality registered as nr 3
  [events: 0000001a]
  [events: 0000001a]
md: autorun ...
md: considering hda1 ...
md:  adding hda1 ...
md:  adding hdb1 ...
md: created md0
md: bind<hdb1,1>
md: bind<hda1,2>
md: running: <hda1><hdb1>
md: hda1's event counter: 0000001a
md: hdb1's event counter: 0000001a
md: RAID level 1 does not need chunksize! Continuing anyway.
md0: max total readahead window set to 124k
md0: 1 data-disks, max readahead per data-disk: 124k
raid1: device hda1 operational as mirror 1
raid1: device hdb1 operational as mirror 0
raid1: raid set md0 active with 2 out of 2 mirrors
md: updating md0 RAID superblock on device
md: hda1 [events: 0000001b]<6>(write) hda1's sb offset: 979840
md: hdb1 [events: 0000001b]<6>(write) hdb1's sb offset: 979840
md: ... autorun DONE.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding Swap: 263692k swap-space (priority -1)
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on md(9,0), internal journal
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
eth0: 3c5x9 at 0x300, 10baseT port, address  00 60 97 c2 1c 4a, IRQ 7.
3c509.c:1.18a 17Nov2001becker na scyld.com
http://www.scyld.com/network/3c509.html
eth0: Setting Rx mode to 1 addresses.


Další informace o konferenci Linux