Bug#402106: mdadm: Error in initramfs hook: last /dev/ of DEVICE
line is treated as md device
Daniel Dehennin
dad at baby-gnu.org
Fri Dec 8 07:32:07 CET 2006
Package: mdadm
Version: 2.5.6-6
Severity: normal
Hello,
I have errors messages when generating the initramfs with md devices.
As I can see, the problem comes from the while loop line 186 of
/usr/share/initramfs-tools/hooks/mdadm.
the last argument of the DEVICE line is treated as md devices.
==== Start error LOG ====
# update-initramfs -v -c -k 2.6.18-3-sparc64-smp
update-initramfs: Generating /boot/initrd.img-2.6.18-3-sparc64-smp
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/usb/host/ehci-hcd.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/usb/host/ohci-hcd.ko
[...]
Calling hook mdadm
Adding binary /sbin/mdadm
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/md-mod.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/linear.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/multipath.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid0.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid1.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/xor.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid456.ko
Adding module /lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid10.ko
I: mdadm: using configuration file: /etc/mdadm/mdadm.conf
mdadm: /dev/sdb2 does not appear to be an md device
mdadm: /dev/sdb4 does not appear to be an md device
mdadm: /dev/sdb5 does not appear to be an md device
I: mdadm: will start all available MD arrays from the initial ramdisk.
I: mdadm: use `dpkg-reconfigure --priority=low mdadm` to change this.
Calling hook thermal
==== END error LOG ====
Maybe the loop should check if the line begins with 'ARRAY' ?
Regards.
-- Package-specific info:
--- mount output
/dev/md1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /boot type ext3 (rw)
/dev/mapper/ancalagon-home on /home type ext3 (rw)
/dev/mapper/ancalagon-tmp on /tmp type ext3 (rw)
/dev/mapper/ancalagon-usr on /usr type ext3 (rw)
/dev/mapper/ancalagon-usr--local on /usr/local type ext3 (rw)
/dev/mapper/ancalagon-usr--src on /usr/src type ext3 (rw)
/dev/mapper/ancalagon-var on /var type ext3 (rw)
/dev/mapper/ancalagon-var--cache on /var/cache type ext3 (rw)
/dev/mapper/ancalagon-var--log on /var/log type ext3 (rw)
--- mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE /dev/sd[ab]2
DEVICE /dev/sd[ab]4
DEVICE /dev/sd[ab]5
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 devices=/dev/sda2,/dev/sdb2 num-devices=2 UUID=bd41c3dd:c44d13a3:83890f3c:23af010b
ARRAY /dev/md1 level=raid1 devices=/dev/sda4,/dev/sdb4 num-devices=2 UUID=199f2696:2e917275:f2a79f4d:4abea903
ARRAY /dev/md2 level=raid1 devices=/dev/sda5,/dev/sdb5 num-devices=2 UUID=e1f85fd5:c35a5f26:ba171253:1b9f4ea2
# This file was auto-generated on Wed, 06 Dec 2006 17:42:52 +0000
# by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $
--- /proc/mdstat:
Personalities : [raid1]
md2 : active raid1 sdb5[1] sda5[0]
142239424 blocks [2/2] [UU]
md1 : active raid1 sdb4[1] sda4[0]
497920 blocks [2/2] [UU]
md0 : active raid1 sdb2[1] sda2[0]
128448 blocks [2/2] [UU]
unused devices: <none>
--- /proc/partitions:
major minor #blocks name
8 0 143369664 sda
8 1 498015 sda1
8 2 128520 sda2
8 3 143364060 sda3
8 4 498015 sda4
8 5 142239510 sda5
8 16 143369664 sdb
8 17 498015 sdb1
8 18 128520 sdb2
8 19 143364060 sdb3
8 20 498015 sdb4
8 21 142239510 sdb5
9 0 128448 md0
9 1 497920 md1
9 2 142239424 md2
253 0 262144 dm-0
253 1 2097152 dm-1
253 2 1048576 dm-2
253 3 1048576 dm-3
253 4 1048576 dm-4
253 5 1048576 dm-5
253 6 1048576 dm-6
253 7 1048576 dm-7
--- initrd.img-2.6.18-3-sparc64-smp:
30205 blocs
sbin/mdadm
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/linear.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/dm-mod.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid0.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/md-mod.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid456.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/multipath.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/xor.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/dm-snapshot.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid10.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/dm-mirror.ko
lib/modules/2.6.18-3-sparc64-smp/kernel/drivers/md/raid1.ko
etc/mdadm
etc/mdadm/mdadm.conf
scripts/local-top/mdadm
--- /proc/modules:
dm_mirror 25776 0 - Live 0x0000000010178000
dm_snapshot 20408 0 - Live 0x0000000010170000
dm_mod 64032 19 dm_mirror,dm_snapshot, Live 0x000000001015e000
raid1 27200 3 - Live 0x0000000010154000
md_mod 93024 4 raid1, Live 0x000000001013a000
--- volume detail:
--- /proc/cmdline
root=/dev/md1 ro video=atyfb:off
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: sparc (sparc64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-sparc64-smp
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages mdadm depends on:
ii debconf [debconf-2.0] 1.5.9 Debian configuration management sy
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii lsb-base 3.1-22 Linux Standard Base 3.1 init scrip
ii makedev 2.3.1-83 creates device files in /dev
Versions of packages mdadm recommends:
ii exim4-daemon-light [mail-tran 4.63-11 lightweight exim MTA (v4) daemon
ii module-init-tools 3.3-pre3-1 tools for managing Linux kernel mo
-- debconf information:
mdadm/initrdstart_msg_errexist:
mdadm/initrdstart_msg_intro:
mdadm/autostart: true
mdadm/autocheck: true
mdadm/initrdstart_msg_errblock:
mdadm/mail_to: root
mdadm/initrdstart_msg_errmd:
mdadm/initrdstart: all
mdadm/initrdstart_msg_errconf:
mdadm/initrdstart_notinconf: false
mdadm/start_daemon: true
More information about the pkg-mdadm-devel
mailing list