Bug#549535: mdadm: Ditto.

Jamie Thompson debian-bugs at jamie-thompson.co.uk
Sun Oct 4 17:27:42 UTC 2009


Package: mdadm
Version: 3.0-2
Severity: normal


I upgraded grub and mdadm this afternoon, and whilst the process appeared successful,
after rebooting the system would not come up - my mirrored root device was seemingly 
gone.

Attempting to start it from the mdadm included in my initrd failed, claiming that 
there is no raid on /dev/hda1 nor /dev/hdb1 (where md0 lives). It did however happily
start my raid5 array on /dev/sda1 and /dev/sdb1 (md1 - lvm host).

Lacking any other initrd images to work from, I booted up to a partedmagic live cd,
which using a 2.x version of mdadm, happily assembled my raid1 array. Once mounted, I
noticed a backup initrd image in my /boot directory, which when used in place of the
generated one, brought the system right up. mdadm 3 is happily working with my raid1
array now the system has booted.

It's been a fraught afternoon - this was my internet router...so I've been reading
this bug report on my mobile phone as a reference as I had no other access!

-- 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)
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/mapper/main-homes on /home type ext3 (rw,usrquota,grpquota,user_xattr,acl)
/dev/mapper/main-static on /usr type ext3 (rw)
/dev/mapper/main-variable on /var type ext3 (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (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/md/0 UUID=6d66a8f0:69850e92:34f60c42:f5b4e29a

ARRAY /dev/md0 level=raid1 num-devices=2 UUID=6d66a8f0:69850e92:bc0ff4f8:54d58438
ARRAY /dev/md1 level=raid5 num-devices=2 UUID=d5dbca69:f53cca71:504f250c:4c9146a7

# This file was auto-generated on Sun, 03 May 2009 15:51:05 +0100
# by mkconf $Id$

--- /proc/mdstat:
Personalities : [raid1] [raid6] [raid5] [raid4] 
md0 : active raid1 hda1[0] hdb1[1]
      1951744 blocks [2/2] [UU]
      
md1 : active raid5 sda1[0] sdb1[1]
      487572608 blocks level 5, 64k chunk, algorithm 2 [2/2] [UU]
      
unused devices: <none>

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

   8        0  488232960 sda
   8        1  488231383 sda1
   8       16  487577600 sdb
   8       17  487572718 sdb1
   3        0    1965600 hda
   3        1    1965568 hda1
   3       64    1965600 hdb
   3       65    1965568 hdb1
   9        1  487572608 md1
   9        0    1951744 md0
 253        0   48824320 dm-0
 253        1   29294592 dm-1
 253        2  390623232 dm-2
 253        3    3145728 dm-3

--- initrd.img-2.6.30-1-686:
39532 blocks
6e7bc5a5bed9c9fee0cabf27e8543b97  ./sbin/mdadm
6826aa7947f934cb1d6a272d2c716c61  ./etc/mdadm/mdadm.conf
6519a6f7d4258abde7d52a192c721f07  ./lib/modules/2.6.30-1-686/kernel/drivers/md/raid6_pq.ko
5ecc94ae0b5ba4f24fac048c6ed0843d  ./lib/modules/2.6.30-1-686/kernel/drivers/md/dm-log.ko
a385e1af3c8c8a1588012540bc116a2e  ./lib/modules/2.6.30-1-686/kernel/drivers/md/raid1.ko
a33e4f2a582f12f488e18ab5660137a9  ./lib/modules/2.6.30-1-686/kernel/drivers/md/raid10.ko
6897500fe89c3ad3a008fa871eee5120  ./lib/modules/2.6.30-1-686/kernel/drivers/md/dm-mirror.ko
4dabbd92980157067cd297057ae24f81  ./lib/modules/2.6.30-1-686/kernel/drivers/md/dm-region-hash.ko
841ff04b38e956b6df74d858cdd449d8  ./lib/modules/2.6.30-1-686/kernel/drivers/md/dm-snapshot.ko
1ef1fad05ee1a5c00fb627d5a6849601  ./lib/modules/2.6.30-1-686/kernel/drivers/md/dm-mod.ko
f0fbfe02e5072748796a63f2f1b8d2ed  ./lib/modules/2.6.30-1-686/kernel/drivers/md/linear.ko
9b1a6b4769067b0739741c3469e9e51f  ./lib/modules/2.6.30-1-686/kernel/drivers/md/raid456.ko
fb661383a6296228a60811f0014af4fa  ./lib/modules/2.6.30-1-686/kernel/drivers/md/raid0.ko
92fd8b1ac2482d756ac29c40c14deb22  ./lib/modules/2.6.30-1-686/kernel/drivers/md/md-mod.ko
7bf3178e3428053be516189a0670d06d  ./lib/modules/2.6.30-1-686/kernel/drivers/md/multipath.ko
c0a345350c52294fc565638303a5afde  ./lib/modules/2.6.30-1-686/kernel/drivers/video/console/mdacon.ko
6b782ae76f866914ec236b2d14b43f24  ./scripts/local-top/mdadm

--- /proc/modules:
dm_mod 49992 12 - Live 0xf85e8000
raid456 43708 1 - Live 0xf85c4000
raid6_pq 80656 1 raid456, Live 0xf859a000
async_xor 2888 1 raid456, Live 0xf857e000
async_memcpy 1720 1 raid456, Live 0xf8574000
async_tx 3172 3 raid456,async_xor,async_memcpy, Live 0xf856b000
xor 13480 2 raid456,async_xor, Live 0xf855e000
raid1 18476 1 - Live 0xf854d000
md_mod 77780 4 raid456,raid1, Live 0xf852c000
aacraid 59844 4 - Live 0xf8262000
scsi_mod 131800 4 firewire_sbp2,sd_mod,aacraid,libata, Live 0xf807f000

--- /var/log/syslog:

--- volume detail:
/dev/hda is not recognised by mdadm.
/dev/hda1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 6d66a8f0:69850e92:34f60c42:f5b4e29a
  Creation Time : Sat May  2 23:41:59 2009
     Raid Level : raid1
  Used Dev Size : 1951744 (1906.32 MiB 1998.59 MB)
     Array Size : 1951744 (1906.32 MiB 1998.59 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Sun Oct  4 18:10:38 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 3faae072 - correct
         Events : 180102


      Number   Major   Minor   RaidDevice State
this     0       3        1        0      active sync   /dev/hda1

   0     0       3        1        0      active sync   /dev/hda1
   1     1       3       65        1      active sync   /dev/hdb1
--
/dev/hdb is not recognised by mdadm.
/dev/hdb1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 6d66a8f0:69850e92:34f60c42:f5b4e29a
  Creation Time : Sat May  2 23:41:59 2009
     Raid Level : raid1
  Used Dev Size : 1951744 (1906.32 MiB 1998.59 MB)
     Array Size : 1951744 (1906.32 MiB 1998.59 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Sun Oct  4 18:10:38 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 3faae0b4 - correct
         Events : 180102


      Number   Major   Minor   RaidDevice State
this     1       3       65        1      active sync   /dev/hdb1

   0     0       3        1        0      active sync   /dev/hda1
   1     1       3       65        1      active sync   /dev/hdb1
--
/dev/hdc is not recognised by mdadm.
/dev/sda is not recognised by mdadm.
/dev/sda1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : d5dbca69:f53cca71:504f250c:4c9146a7 (local to host mrlinux)
  Creation Time : Sun May  3 13:23:42 2009
     Raid Level : raid5
  Used Dev Size : 487572608 (464.99 GiB 499.27 GB)
     Array Size : 487572608 (464.99 GiB 499.27 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Sun Oct  4 18:10:41 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : c304b2e1 - correct
         Events : 302374

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     0       8        1        0      active sync   /dev/sda1

   0     0       8        1        0      active sync   /dev/sda1
   1     1       8       17        1      active sync   /dev/sdb1
--
/dev/sdb is not recognised by mdadm.
/dev/sdb1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : d5dbca69:f53cca71:504f250c:4c9146a7 (local to host mrlinux)
  Creation Time : Sun May  3 13:23:42 2009
     Raid Level : raid5
  Used Dev Size : 487572608 (464.99 GiB 499.27 GB)
     Array Size : 487572608 (464.99 GiB 499.27 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Sun Oct  4 18:10:43 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : c304b2f5 - correct
         Events : 302374

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     1       8       17        1      active sync   /dev/sdb1

   0     0       8        1        0      active sync   /dev/sda1
   1     1       8       17        1      active sync   /dev/sdb1
--

--- /proc/cmdline
root=/dev/md0 ro rootdelay=15 quiet

--- grub2:
insmod raid
insmod raid5rec
set root=(main-static)
	insmod raid
	set root=(md0)
	linux	/boot/vmlinuz-2.6.30-1-686 root=UUID=6f7e434b-019e-4f0a-acdc-33bbc0ff830a ro rootdelay=15 quiet
	insmod raid
	set root=(md0)
	linux	/boot/vmlinuz-2.6.30-1-686 root=UUID=6f7e434b-019e-4f0a-acdc-33bbc0ff830a ro single rootdelay=15

--- grub legacy:
kernel		/boot/vmlinuz-2.6.30-1-686 root=/dev/md0 ro rootdelay=15 quiet
kernel		/boot/vmlinuz-2.6.30-1-686 root=/dev/md0 ro rootdelay=15 single

--- udev:
ii  udev           0.141-2        /dev/ and hotplug management daemon
46b1564ce5f5dedb5c7e2e6af67d48b7  /lib/udev/rules.d/64-md-raid.rules

--- /dev:
brw-rw---- 1 root disk 9, 0 Oct  4 17:10 /dev/md0
brw-rw---- 1 root disk 9, 1 Oct  4 17:10 /dev/md1

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Oct  4 17:10 ata-FLASH_CARD_CF000000000000000191 -> ../../hdb
lrwxrwxrwx 1 root root 10 Oct  4 17:10 ata-FLASH_CARD_CF000000000000000191-part1 -> ../../hdb1
lrwxrwxrwx 1 root root  9 Oct  4 17:10 ata-FLASH_CARD_CF0000000000000001B6 -> ../../hda
lrwxrwxrwx 1 root root 10 Oct  4 17:10 ata-FLASH_CARD_CF0000000000000001B6-part1 -> ../../hda1
lrwxrwxrwx 1 root root 23 Oct  4 17:10 dm-name-main-homes -> ../../mapper/main-homes
lrwxrwxrwx 1 root root 24 Oct  4 17:10 dm-name-main-static -> ../../mapper/main-static
lrwxrwxrwx 1 root root 22 Oct  4 17:10 dm-name-main-swap -> ../../mapper/main-swap
lrwxrwxrwx 1 root root 26 Oct  4 17:10 dm-name-main-variable -> ../../mapper/main-variable
lrwxrwxrwx 1 root root 22 Oct  4 17:10 dm-uuid-LVM-iLxe7pmKYx7Y9CMlYvFRIlaZN6fIpMHxCNdwe3xE5sniLLqf5NKfs38OZGvdD4o1 -> ../../mapper/main-swap
lrwxrwxrwx 1 root root 26 Oct  4 17:10 dm-uuid-LVM-iLxe7pmKYx7Y9CMlYvFRIlaZN6fIpMHxKzMYFsgQ80PVZaX4hUyZ4KHlSa82FvwK -> ../../mapper/main-variable
lrwxrwxrwx 1 root root 24 Oct  4 17:10 dm-uuid-LVM-iLxe7pmKYx7Y9CMlYvFRIlaZN6fIpMHxTVXZx6pWXKUB121IPzxQWkNFwV0GtVf9 -> ../../mapper/main-static
lrwxrwxrwx 1 root root 23 Oct  4 17:10 dm-uuid-LVM-iLxe7pmKYx7Y9CMlYvFRIlaZN6fIpMHxrCQvcPZn5iBhd7wfFs5aD88i0aGyhvSw -> ../../mapper/main-homes
lrwxrwxrwx 1 root root  9 Oct  4 17:10 md-uuid-6d66a8f0:69850e92:34f60c42:f5b4e29a -> ../../md0
lrwxrwxrwx 1 root root  9 Oct  4 17:10 md-uuid-d5dbca69:f53cca71:504f250c:4c9146a7 -> ../../md1
lrwxrwxrwx 1 root root  9 Oct  4 17:10 scsi-SAdaptec_2820SA_Volume_04CB13A0 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct  4 17:10 scsi-SAdaptec_2820SA_Volume_04CB13A0-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Oct  4 17:10 scsi-SAdaptec_2_9FE0A1A7 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct  4 17:10 scsi-SAdaptec_2_9FE0A1A7-part1 -> ../../sdb1

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Oct  4 17:10 pci-0000:00:1f.1-ide-0:0 -> ../../hda
lrwxrwxrwx 1 root root 10 Oct  4 17:10 pci-0000:00:1f.1-ide-0:0-part1 -> ../../hda1
lrwxrwxrwx 1 root root  9 Oct  4 17:10 pci-0000:00:1f.1-ide-0:1 -> ../../hdb
lrwxrwxrwx 1 root root 10 Oct  4 17:10 pci-0000:00:1f.1-ide-0:1-part1 -> ../../hdb1
lrwxrwxrwx 1 root root  9 Oct  4 17:10 pci-0000:00:1f.1-ide-1:0 -> ../../hdc
lrwxrwxrwx 1 root root  9 Oct  4 17:10 pci-0000:03:0c.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct  4 17:10 pci-0000:03:0c.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Oct  4 17:10 pci-0000:03:0c.0-scsi-0:0:1:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct  4 17:10 pci-0000:03:0c.0-scsi-0:0:1:0-part1 -> ../../sdb1

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 22 Oct  4 17:10 288bafcd-cdea-4f02-a527-c4871a303493 -> ../../mapper/main-swap
lrwxrwxrwx 1 root root 26 Oct  4 17:10 55f5cb8c-927a-4e68-940e-ee0201c04e8e -> ../../mapper/main-variable
lrwxrwxrwx 1 root root  9 Oct  4 17:10 6f7e434b-019e-4f0a-acdc-33bbc0ff830a -> ../../md0
lrwxrwxrwx 1 root root 24 Oct  4 17:10 7562dd35-50fe-46ad-a59a-612d432e11cd -> ../../mapper/main-static
lrwxrwxrwx 1 root root 23 Oct  4 17:10 8a621f52-1e5d-48f1-81bb-e09c06343a91 -> ../../mapper/main-homes

/dev/md:
total 0
brw-rw---- 1 root disk 9, 0 Oct  4 17:10 0

Auto-generated on Sun, 04 Oct 2009 18:10:43 +0100
by mdadm bugscript 3.0-2

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mdadm depends on:
ii  debconf                       1.5.27     Debian configuration management sy
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  makedev                       2.3.1-89   creates device files in /dev
ii  udev                          0.141-2    /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  module-init-tools             3.10-3     tools for managing Linux kernel mo
ii  postfix [mail-transport-agent 2.6.5-2    High-performance mail transport ag

mdadm suggests no packages.

-- debconf information:
  mdadm/autostart: true
  mdadm/mail_to: root
  mdadm/initrdstart_msg_errmd:
* mdadm/initrdstart: all
  mdadm/initrdstart_msg_errconf:
  mdadm/initrdstart_notinconf: false
  mdadm/initrdstart_msg_errexist:
  mdadm/initrdstart_msg_intro:
  mdadm/autocheck: true
  mdadm/initrdstart_msg_errblock:
  mdadm/start_daemon: true





More information about the pkg-mdadm-devel mailing list