Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320423 - sys-boot/lilo-22.8-r2 failed on raid devices with missing 1 drive
Summary: sys-boot/lilo-22.8-r2 failed on raid devices with missing 1 drive
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joshua Kinard
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 16:01 UTC by Jacek
Modified: 2021-06-06 20:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,3.63 KB, text/plain)
2010-05-18 16:01 UTC, Jacek
Details
patch from debian.org (lilo.diff,515 bytes, patch)
2010-05-18 16:02 UTC, Jacek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek 2010-05-18 16:01:28 UTC
I have I drive failed in RAID1. Due to hardware (harddisk) failure, drive was marked as failed (mdadm /dev/md0 --set-faulty), removed from an array (mdadm /dev/md0 -r) and detached.

Running lilo:
# lilo
Fatal: Not all RAID-1 disks are active; use '-H' to install to active disks only
# lilo -H
Warning: Partial RAID-1 install on active disks only; booting is not failsafe

Warning: Faulty disk in RAID-1 array; boot with caution!!
Fatal: Unusual RAID bios device code: 0xFF



Some guys from Debian (link in URL) already fixed it with a patch.


Reproducible: Always

Steps to Reproduce:
1. create array RAID1
2. remove /dev/sda from array
3. try to run lilo

Actual Results:  
Warning: Partial RAID-1 install on active disks only; booting is not failsafe

Warning: Faulty disk in RAID-1 array; boot with caution!!
Fatal: Unusual RAID bios device code: 0xFF


Expected Results:  
lilo installed

# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb1[1]
      24426688 blocks [2/1] [_U]
      bitmap: 175/187 pages [700KB], 64KB chunk

unused devices: <none>

# ls -l /dev/sd*
brw-rw---- 1 root disk 8, 16 05-08 01:27 /dev/sdb
brw-rw---- 1 root disk 8, 17 05-08 01:27 /dev/sdb1
brw-rw---- 1 root disk 8, 18 05-08 01:27 /dev/sdb2
brw-rw---- 1 root disk 8, 19 05-08 01:27 /dev/sdb3

# important entries in /etc/lilo.conf
boot = /dev/md0
raid-extra-boot=mbr-only

emerge --info (attached).
Comment 1 Jacek 2010-05-18 16:01:52 UTC
Created attachment 231993 [details]
emerge --info
Comment 2 Jacek 2010-05-18 16:02:23 UTC
Created attachment 231995 [details, diff]
patch from debian.org
Comment 3 Wormo (RETIRED) gentoo-dev 2010-05-23 07:04:05 UTC
Thanks for pointing out this patch -- assigning to maintainers.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-15 17:13:13 UTC
This patch isn't in 23.0 yet.
Comment 5 Jacek 2010-07-15 21:37:12 UTC
(In reply to comment #4)
> This patch isn't in 23.0 yet.

Who cares, if no one attached this patch to current tree for 22.8 (which is the only one in the tree)?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-16 17:48:06 UTC
(In reply to comment #5)
> (which is the only one in the tree)?

You're mistaken.
Comment 7 Joshua Kinard gentoo-dev 2021-06-06 20:08:17 UTC
Marking OBSOLETE due to the current lilo-24.2 source containing the Debian fix.