Bug#523106: mdadm: [sparc64] initramfs assembly of mdraid fails due to partitions detected only later
Hermann Lauer
Hermann.Lauer at iwr.uni-heidelberg.de
Wed Apr 8 14:52:20 UTC 2009
Package: mdadm
Version: 2.6.7.2-1
Severity: normal
On a Sunfire 250 Ultrasparc machine detecting scsi harddrives and partitions took
to long, so the /usr/share/initramfs-tools/scripts/local-top/mdadm script
in the initramfs fails.
Adding a "sleep 10" before starting the md raid as a workaround made it working
and the system booting from that raid1.
Below is an excerpt from the screen output during startup (reconstructed,
so not nessesary complete), but it shows that scsi drive and partitions detecting
is not finished when mdrun tries to start the array already.
---- console output excerpt ---
Begin: Assembling all MD arrays ...
[ 127.685294] md: md0 stopped
[ 127.825795] sd 0:0:0:0: [sda] Write Protect is off
[ 128.012243] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 128.544108] sd 0:0:0:0: [sda] Attached SCSI disk
[ 128.716252] sr0: scsi-1 drive
[ 129.013264] sd 0:0:8:0: [sdb] Spinning up disk...
mdadm: no devices found for /dev/md0
/dev/md0: File exists
md: invalid raid superblock magic on sda
[ 129.554739] md: sda does not have a valid v0.90 superblock, not importing!
[ 129.772413] md: md_import_device returned -22
[ 129.930044] md: md0 stopped.
mdadm: failed to add 8:1 to /dev
mdadm: failed to RUN_ARRAY /dev/md/0: Invalid argument
mdadm: Not enough devices to start the array.
Failure: failed to assemble all arrays.
done.
Begin: Waiting for udev to process events ..ready
[ 156.224682] sd 0:0:8:0: [sdb] 97693755 512-byte hardware sectors (50019 MB)
[ 156.445639] sd 0:0:8:0: [sdb] Write Protect is off
[ 156.613153] sd 0:0:8:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 156.937574] sd 0:0:8:0: [sdb] 97693755 512-byte hardware sectors (50019 MB)
[ 157.157975] sd 0:0:8:0: [sdb] Write Protect is off
[ 157.325482] sd 0:0:8:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 157.855802] sd 0:0:8:0: [sdb] Attached SCSI disk
[ 158.089960] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 158.268411] sr 0:0:6:0: Attached scsi generic sg1 type 5
[ 158.448554] sd 0:0:8:0: Attached scsi generic sg2 type 0
done.
Begin: Running /scripts/local-premount ... done.
mount: mounting /dev/md0 on /root failed: No such device
-- Package-specific info:
--- mount output
/dev/md0 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)
--- 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 partitions
# 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 num-devices=2 UUID=6c4fc6f5:a53b5892:f071fd95:8a076a83
--- /proc/mdstat:
Personalities : [raid1]
md0 : active raid1 sdb1[0] sda1[1]
7815552 blocks [2/2] [UU]
unused devices: <none>
--- /proc/partitions:
major minor #blocks name
8 0 8844633 sda
8 1 7815622 sda1
8 2 1028160 sda2
8 3 8843782 sda3
8 16 48846877 sdb
8 17 7815622 sdb1
8 18 1028160 sdb2
8 19 8843782 sdb3
9 0 7815552 md0
--- initrd.img-2.6.26-1-sparc64:
35116 blocks
scripts/local-top/mdadm
etc/mdadm
etc/mdadm/mdadm.conf
sbin/mdadm
lib/modules/2.6.26-1-sparc64/kernel/drivers/md/multipath.ko
lib/modules/2.6.26-1-sparc64/kernel/drivers/md/raid10.ko
lib/modules/2.6.26-1-sparc64/kernel/drivers/md/linear.ko
lib/modules/2.6.26-1-sparc64/kernel/drivers/md/raid1.ko
lib/modules/2.6.26-1-sparc64/kernel/drivers/md/md-mod.ko
lib/modules/2.6.26-1-sparc64/kernel/drivers/md/raid456.ko
lib/modules/2.6.26-1-sparc64/kernel/drivers/md/raid0.ko
--- /proc/modules:
raid1 21120 1 - Live 0x0000000010094000
md_mod 84576 2 raid1, Live 0x000000001007c000
--- volume detail:
--- /proc/cmdline
root=/dev/md0 ro rootdelay=10
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: sparc (sparc64)
Kernel: Linux 2.6.26-1-sparc64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages mdadm depends on:
ii debconf 1.5.24 Debian configuration management sy
ii libc6 2.7-18 GNU C Library: Shared libraries
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii makedev 2.3.1-88 creates device files in /dev
ii udev 0.125-7 /dev/ and hotplug management daemo
Versions of packages mdadm recommends:
ii exim4-daemon-light [mail-tran 4.69-9 lightweight Exim MTA (v4) daemon
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
mdadm suggests no packages.
-- 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: false
More information about the pkg-mdadm-devel
mailing list