Bug#536644: initramfs-tools: Boot failure from software-RAID1 with debian Lenny

D. North rold5 at tditx.com
Sun Jul 12 22:23:55 UTC 2009


Thus spake martin f krafft (madduck at debian.org):

> also sprach D. North <rold5 at tditx.com> [2009.07.12.0535 +0200]:
> > Discovering multipaths...
> 
> Do you have multipaths?

The multipath tools are installed -- but I don't think they're required. The
selected packages for this system came from a package list on an etch system
which this machine is replacing.
 
> Why are you not using mdadm for multipaths?

Per the above, multipaths should not be required for this configuration.
Additionally, I didn't make a concious selection of one over the other,
so unfortunately I can't give you a helpful answer to that. -- Should
I simply attempt to remove the multipaths-related packages?

> Do you have the dmraid package installed?

No.

> Can you please check out http://wiki.debian.org/InitramfsDebug at
> the bottom and make sure to submit the trace log of a failed boot
> with the debug kernel option?

I can certainly do that... however, enabling 'debug' on the kernel boot line
affects the timing enough that the problem doesn't occur any more. Do you still
want the debug log?

-----
Thank you for the information on HOMEHOST ... now the last half of that UUID
being the same makes sense.

I have copied the requested output from /usr/share/bug/mdadm/script
below -- I will try to get to the 'strace' testing within the
next day... The segfault in mdadm does not occur every time, so it
may be a bit harder to catch.

phoenix:~# /usr/share/bug/mdadm/script 3>&1
--- 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)

--- 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=abdd9eb3:faeb7c80:e30e8841:87878c43
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=abdd9eb3:faeb7c80:34b6d411:a56b552d
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=8d97d0a5:41763dfc:34b6d411:a56b552d

# This file was auto-generated on Thu, 02 Jul 2009 20:38:29 -0500
# by mkconf $Id$

--- /proc/mdstat:
Personalities : [raid1] 
md1 : active raid1 dm-3[0] dm-5[1]
      29302464 blocks [2/2] [UU]
      
md0 : active raid1 dm-2[0] dm-4[1]
      256896 blocks [2/2] [UU]
      
unused devices: <none>

--- /proc/partitions:
major minor  #blocks  name

   8     0 1465138584 sda
   8     1     257008 sda1
   8     2   29302560 sda2
   8    16 1465138584 sdb
   8    17     257008 sdb1
   8    18   29302560 sdb2
 254     0 1465138584 dm-0
 254     1 1465138584 dm-1
 254     2     257008 dm-2
 254     3   29302560 dm-3
 254     4     257008 dm-4
 254     5   29302560 dm-5
   9     0     256896 md0
   9     1   29302464 md1

--- initrd.img-2.6.26-2-686:
34790 blocks
8201107a7ff6f5dd640a0ed1f1b4112d  ./etc/mdadm/mdadm.conf
ea9abd44166c288560f8c9789cb3949d  ./sbin/mdadm
6992557752f284596c23923749a4a49d  ./lib/modules/2.6.26-2-686/kernel/drivers/md/dm-multipath.ko
d8eab1e682b691f6f1721688d3d0dd80  ./lib/modules/2.6.26-2-686/kernel/drivers/md/raid456.ko
08540cbe514ace087bf5212a2e99ecb8  ./lib/modules/2.6.26-2-686/kernel/drivers/md/dm-log.ko
3b44f0bc10916fb24b18f66e829ebd9d  ./lib/modules/2.6.26-2-686/kernel/drivers/md/dm-mirror.ko
548a79e85ca844b52e0b91d714ea164a  ./lib/modules/2.6.26-2-686/kernel/drivers/md/raid10.ko
f3770f5935467286a47059e880efdef0  ./lib/modules/2.6.26-2-686/kernel/drivers/md/dm-round-robin.ko
705b7ddf811fdd5bbd3b00a226cd75e5  ./lib/modules/2.6.26-2-686/kernel/drivers/md/dm-emc.ko
358d290765df0456f4dd0de43e8f0137  ./lib/modules/2.6.26-2-686/kernel/drivers/md/linear.ko
16fab000929d0c7d4a0bb108dc97542e  ./lib/modules/2.6.26-2-686/kernel/drivers/md/dm-mod.ko
c115ac530f79c6850886efbea2c6cb78  ./lib/modules/2.6.26-2-686/kernel/drivers/md/raid0.ko
f195929c5d8f2a3bb6aa0c87e6603e49  ./lib/modules/2.6.26-2-686/kernel/drivers/md/raid1.ko
893a16924cb7e15e82cd4224f081d945  ./lib/modules/2.6.26-2-686/kernel/drivers/md/multipath.ko
f645b1d4cd9945d255893c6759222f5e  ./lib/modules/2.6.26-2-686/kernel/drivers/md/md-mod.ko
22d3ea716544bdba4fb3c24e9fe3f7b2  ./lib/modules/2.6.26-2-686/kernel/drivers/md/dm-snapshot.ko
e1e2d0e985196fecaf41fb42e9968af2  ./scripts/local-top/mdadm

--- /proc/modules:
dm_mirror 15104 0 - Live 0xf894e000
dm_log 8484 1 dm_mirror, Live 0xf894a000
dm_snapshot 14340 0 - Live 0xf88e1000
raid1 18016 2 - Live 0xf8944000
md_mod 67068 3 raid1, Live 0xf8954000
dm_round_robin 2656 1 - Live 0xf88e6000
dm_emc 4384 0 - Live 0xf88a3000
dm_multipath 14920 3 dm_round_robin,dm_emc, Live 0xf8931000
dm_mod 46184 18 dm_mirror,dm_log,dm_snapshot,dm_multipath, Live 0xf8896000

--- /var/log/syslog:

--- volume detail:
/dev/hda is not recognised by mdadm.
/dev/sda is not recognised by mdadm.
/dev/sda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : abdd9eb3:faeb7c80:34b6d411:a56b552d
  Creation Time : Mon Jul  6 09:45:58 2009
     Raid Level : raid1
  Used Dev Size : 256896 (250.92 MiB 263.06 MB)
     Array Size : 256896 (250.92 MiB 263.06 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Sun Jul 12 15:45:53 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : bec6dcad - correct
         Events : 78


      Number   Major   Minor   RaidDevice State
this     0     254        2        0      active sync   /dev/dm-2

   0     0     254        2        0      active sync   /dev/dm-2
   1     1     254        4        1      active sync   /dev/dm-4
--
/dev/sda2:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 8d97d0a5:41763dfc:34b6d411:a56b552d
  Creation Time : Thu Jul  2 20:33:24 2009
     Raid Level : raid1
  Used Dev Size : 29302464 (27.95 GiB 30.01 GB)
     Array Size : 29302464 (27.95 GiB 30.01 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Sun Jul 12 17:03:03 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : e8c2d8e6 - correct
         Events : 14632


      Number   Major   Minor   RaidDevice State
this     0     254        3        0      active sync   /dev/dm-3

   0     0     254        3        0      active sync   /dev/dm-3
   1     1     254        5        1      active sync   /dev/dm-5
--
/dev/sdb is not recognised by mdadm.
/dev/sdb1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : abdd9eb3:faeb7c80:34b6d411:a56b552d
  Creation Time : Mon Jul  6 09:45:58 2009
     Raid Level : raid1
  Used Dev Size : 256896 (250.92 MiB 263.06 MB)
     Array Size : 256896 (250.92 MiB 263.06 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Sun Jul 12 15:45:53 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : bec6dcb1 - correct
         Events : 78


      Number   Major   Minor   RaidDevice State
this     1     254        4        1      active sync   /dev/dm-4

   0     0     254        2        0      active sync   /dev/dm-2
   1     1     254        4        1      active sync   /dev/dm-4
--
/dev/sdb2:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 8d97d0a5:41763dfc:34b6d411:a56b552d
  Creation Time : Thu Jul  2 20:33:24 2009
     Raid Level : raid1
  Used Dev Size : 29302464 (27.95 GiB 30.01 GB)
     Array Size : 29302464 (27.95 GiB 30.01 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Sun Jul 12 17:03:03 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : e8c2d8ea - correct
         Events : 14632


      Number   Major   Minor   RaidDevice State
this     1     254        5        1      active sync   /dev/dm-5

   0     0     254        3        0      active sync   /dev/dm-3
   1     1     254        5        1      active sync   /dev/dm-5
--

--- /proc/cmdline
root=/dev/md1 rootdelay=5 ro quiet

--- grub legacy:
kernel          /vmlinuz-2.6.26-2-686 root=/dev/md1 rootdelay=5 ro quiet
kernel          /vmlinuz-2.6.26-2-686 root=/dev/md1 rootdelay=5 ro single
kernel          /vmlinuz-2.6.26-1-686 root=/dev/md1 ro quiet
kernel          /vmlinuz-2.6.26-1-686 root=/dev/md1 ro single

--- udev:
ii  udev           0.125-7+lenny1 /dev/ and hotplug management daemon
cd6f5683974ea65603f04ec699b3cff2  /etc/udev/rules.d/65_mdadm.vol_id.rules

--- /dev:
brw-rw---- 1 root disk 9, 0 2009-07-12 15:45 /dev/md0
brw-rw---- 1 root disk 9, 1 2009-07-12 15:45 /dev/md1

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 2009-07-12 15:45 ata-ST31500341AS_9VS18N0F -> ../../sda
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 ata-ST31500341AS_9VS18N0F-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 ata-ST31500341AS_9VS18N0F-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 2009-07-12 15:45 ata-ST31500341AS_9VS1W0L7 -> ../../sdb
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 ata-ST31500341AS_9VS1W0L7-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 ata-ST31500341AS_9VS1W0L7-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-name-SATA_ST31500341AS_9VS18N0F -> ../../dm-0
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-name-SATA_ST31500341AS_9VS18N0F-part1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-name-SATA_ST31500341AS_9VS18N0F-part2 -> ../../dm-3
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-name-SATA_ST31500341AS_9VS1W0L7 -> ../../dm-1
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-name-SATA_ST31500341AS_9VS1W0L7-part1 -> ../../dm-4
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-name-SATA_ST31500341AS_9VS1W0L7-part2 -> ../../dm-5
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-uuid-mpath-SATA_ST31500341AS_9VS18N0F -> ../../dm-0
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-uuid-mpath-SATA_ST31500341AS_9VS1W0L7 -> ../../dm-1
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-uuid-part1-mpath-SATA_ST31500341AS_9VS18N0F -> ../../dm-2
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-uuid-part1-mpath-SATA_ST31500341AS_9VS1W0L7 -> ../../dm-4
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-uuid-part2-mpath-SATA_ST31500341AS_9VS18N0F -> ../../dm-3
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 dm-uuid-part2-mpath-SATA_ST31500341AS_9VS1W0L7 -> ../../dm-5
lrwxrwxrwx 1 root root  9 2009-07-12 15:45 md-uuid-8d97d0a5:41763dfc:34b6d411:a56b552d -> ../../md1
lrwxrwxrwx 1 root root  9 2009-07-12 15:45 md-uuid-abdd9eb3:faeb7c80:34b6d411:a56b552d -> ../../md0
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 scsi-SATA_ST31500341AS_9VS18N0F -> ../../dm-0
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 scsi-SATA_ST31500341AS_9VS18N0F-part1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 scsi-SATA_ST31500341AS_9VS18N0F-part2 -> ../../dm-3
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 scsi-SATA_ST31500341AS_9VS1W0L7 -> ../../dm-1
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 scsi-SATA_ST31500341AS_9VS1W0L7-part1 -> ../../dm-4
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 scsi-SATA_ST31500341AS_9VS1W0L7-part2 -> ../../dm-5

/dev/disk/by-label:
total 0
lrwxrwxrwx 1 root root 9 2009-07-12 15:45 BOOT -> ../../md0
lrwxrwxrwx 1 root root 9 2009-07-12 15:45 ROOT -> ../../md1

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 2009-07-12 15:45 pci-0000:00:1f.1-ide-0:0 -> ../../hda
lrwxrwxrwx 1 root root  9 2009-07-12 15:45 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 pci-0000:00:1f.2-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 2009-07-12 15:45 pci-0000:00:1f.2-scsi-1:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 pci-0000:00:1f.2-scsi-1:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2009-07-12 15:45 pci-0000:00:1f.2-scsi-1:0:0:0-part2 -> ../../sdb2

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 9 2009-07-12 15:45 688c2a33-3ecf-4cc9-b411-496e531850fc -> ../../md1
lrwxrwxrwx 1 root root 9 2009-07-12 15:45 b5ced6a7-2390-4e9f-ae91-1a732865f887 -> ../../md0

/dev/md:
total 0
brw-rw---- 1 root disk 9, 0 2009-07-12 15:45 0


--end--






More information about the pkg-mdadm-devel mailing list