Bug#538843: mdadm 3 fails to assemble root array

Frédéric Brière fbriere at fbriere.net
Wed Aug 5 16:59:06 UTC 2009


On Tue, Aug 04, 2009 at 07:45:27PM -0400, Frédéric Brière wrote:
> Notice how they switched to the same suffix, which was already present
> in /dev/md2.  (/dev/md2 is a one-drive RAID1 array, so it's always been
> a bit funky.)  Also notice how md0 and md1 used to share the same

Come to think of it, they were created at different times, in different
circumstances.  (md[01] also used to be md1[01] before I renumbered
them.)

I'm attaching the output of /usr/share/bug/mdadm/script, in case it
helps.


-- 
<james> Are we going to make an emacs out of apt?
        APT - Debian in a program.  It even does your laundry
		-- Seen on #Debian
-------------- next part --------------
--- mount output
/dev/mapper/vg0-root 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/md0 on /boot type ext3 (rw)
/dev/mapper/vg0-home on /home type ext3 (rw)
/dev/mapper/vg0-nobak on /home/fbriere/nobak type ext3 (rw)
/dev/mapper/vg1-noraid on /home/fbriere/noraid type ext3 (rw)
fusectl on /sys/fs/fuse/connections type fusectl (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/md2 UUID=c2a032c9:727b1dd3:2afa2a14:7e11b5d8
ARRAY /dev/md0 UUID=9900cea9:6a368469:2afa2a14:7e11b5d8
ARRAY /dev/md1 UUID=e86dbf11:5b1671f1:2afa2a14:7e11b5d8

# This configuration was auto-generated on Tue, 04 Aug 2009 17:47:03 -0400
# by mkconf 3.0-2

--- /proc/mdstat:
Personalities : [raid1] 
md1 : active raid1 hde2[0] sda2[1]
      195232384 blocks [2/2] [UU]
      
md0 : active raid1 hde1[0] sda1[1]
      128448 blocks [2/2] [UU]
      
md2 : active raid1 sda3[0]
      429770816 blocks [1/1] [U]
      
unused devices: <none>

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

   8     0  625131864 sda
   8     1     128519 sda1
   8     2  195232464 sda2
   8     3  429770880 sda3
  33     0  195360984 hde
  33     1     128519 hde1
  33     2  195232464 hde2
   9     2  429770816 md2
   9     0     128448 md0
   9     1  195232384 md1
 253     0  209715200 dm-0
 253     1  157286400 dm-1
 253     2     499712 dm-2
 253   255    7811072 dm-255
 253     3   15622144 dm-3
 253     4   64487424 dm-4
 253     5   69079040 dm-5

--- initrd.img-2.6.26.8:
39349 blocks
6e7bc5a5bed9c9fee0cabf27e8543b97  ./sbin/mdadm
6b782ae76f866914ec236b2d14b43f24  ./scripts/local-top/mdadm
cf0a5a12bbbbcddc2dfd73d0eebdd474  ./etc/mdadm/mdadm.conf
54ce6a186b5e65a5fc21e44cfb545f96  ./lib/modules/2.6.26.8/kernel/drivers/video/console/mdacon.ko
c47ac83494f8c4f97a398a4033a3cd51  ./lib/modules/2.6.26.8/kernel/drivers/md/dm-mod.ko
5f38496d735a4ce41269c5edbf9cdab7  ./lib/modules/2.6.26.8/kernel/drivers/md/linear.ko
8d30a06b0c4d2b55562c3cbf733b9d94  ./lib/modules/2.6.26.8/kernel/drivers/md/raid1.ko
7982b6191200a294c7c18ca9dc0579a0  ./lib/modules/2.6.26.8/kernel/drivers/md/dm-snapshot.ko
1b81a1a1ffac67d492f00ed93e52e8b4  ./lib/modules/2.6.26.8/kernel/drivers/md/dm-log.ko
377f35411b162f0617035604b9067a94  ./lib/modules/2.6.26.8/kernel/drivers/md/raid456.ko
8edc70be33d0d7ea7f110e4c8cb5f7cb  ./lib/modules/2.6.26.8/kernel/drivers/md/md-mod.ko
10bb629d9a7e86680b854923a5785622  ./lib/modules/2.6.26.8/kernel/drivers/md/dm-mirror.ko
5c752ef8ac985b19184c03062a798c45  ./lib/modules/2.6.26.8/kernel/drivers/md/raid10.ko
4eb2cd81e1c7afccb20c56b6bf3eb0c4  ./lib/modules/2.6.26.8/kernel/drivers/md/raid0.ko
4230a5bf721b6fd733a8143d771d6d4c  ./lib/modules/2.6.26.8/kernel/drivers/md/dm-crypt.ko
98fe6a2afab5495f307140046df537d8  ./lib/modules/2.6.26.8/kernel/drivers/md/multipath.ko

--- /proc/modules:
dm_crypt 11108 0 - Live 0xf0b38000
crypto_blkcipher 15076 2 cbc,dm_crypt, Live 0xf0b17000
dm_mirror 15744 0 - Live 0xf0943000
dm_log 8388 1 dm_mirror, Live 0xf0948000
dm_snapshot 14436 0 - Live 0xf096d000
dm_mod 45876 16 dm_crypt,dm_mirror,dm_log,dm_snapshot, Live 0xf0991000
raid1 18048 3 - Live 0xf0967000
md_mod 67772 4 raid1, Live 0xf097f000

--- /var/log/syslog:

--- volume detail:
/dev/hda is not recognised by mdadm.
/dev/hdc is not recognised by mdadm.
/dev/hde is not recognised by mdadm.
/dev/hde1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 9900cea9:6a368469:2afa2a14:7e11b5d8
  Creation Time : Wed Dec 17 17:13:31 2008
     Raid Level : raid1
  Used Dev Size : 128448 (125.46 MiB 131.53 MB)
     Array Size : 128448 (125.46 MiB 131.53 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Wed Aug  5 12:56:08 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : e933b820 - correct
         Events : 1590


      Number   Major   Minor   RaidDevice State
this     0      33        1        0      active sync   /dev/hde1

   0     0      33        1        0      active sync   /dev/hde1
   1     1       8        1        1      active sync   /dev/sda1
--
/dev/hde2:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : e86dbf11:5b1671f1:2afa2a14:7e11b5d8
  Creation Time : Wed Dec 17 17:17:49 2008
     Raid Level : raid1
  Used Dev Size : 195232384 (186.19 GiB 199.92 GB)
     Array Size : 195232384 (186.19 GiB 199.92 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Wed Aug  5 12:56:09 2009
          State : active
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 35700cd8 - correct
         Events : 5141869


      Number   Major   Minor   RaidDevice State
this     0      33        2        0      active sync   /dev/hde2

   0     0      33        2        0      active sync   /dev/hde2
   1     1       8        2        1      active sync   /dev/sda2
--
/dev/sda is not recognised by mdadm.
/dev/sda1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 9900cea9:6a368469:2afa2a14:7e11b5d8
  Creation Time : Wed Dec 17 17:13:31 2008
     Raid Level : raid1
  Used Dev Size : 128448 (125.46 MiB 131.53 MB)
     Array Size : 128448 (125.46 MiB 131.53 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Wed Aug  5 12:56:08 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : e933b809 - correct
         Events : 1590


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

   0     0      33        1        0      active sync   /dev/hde1
   1     1       8        1        1      active sync   /dev/sda1
--
/dev/sda2:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : e86dbf11:5b1671f1:2afa2a14:7e11b5d8
  Creation Time : Wed Dec 17 17:17:49 2008
     Raid Level : raid1
  Used Dev Size : 195232384 (186.19 GiB 199.92 GB)
     Array Size : 195232384 (186.19 GiB 199.92 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Wed Aug  5 12:56:10 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 35be822e - correct
         Events : 5141868


      Number   Major   Minor   RaidDevice State
this     1       8        2        1      active sync   /dev/sda2

   0     0      33        2        0      active sync   /dev/hde2
   1     1       8        2        1      active sync   /dev/sda2
--
/dev/sda3:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : c2a032c9:727b1dd3:2afa2a14:7e11b5d8
  Creation Time : Thu Jul 19 13:48:56 2007
     Raid Level : raid1
  Used Dev Size : 429770816 (409.86 GiB 440.09 GB)
     Array Size : 429770816 (409.86 GiB 440.09 GB)
   Raid Devices : 1
  Total Devices : 1
Preferred Minor : 2

    Update Time : Wed Aug  5 12:56:08 2009
          State : clean
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 3209a6ff - correct
         Events : 130


      Number   Major   Minor   RaidDevice State
this     0       8        3        0      active sync   /dev/sda3

   0     0       8        3        0      active sync   /dev/sda3
--
/dev/sdb is not recognised by mdadm.
/dev/sdc is not recognised by mdadm.
/dev/sdd is not recognised by mdadm.
/dev/sde is not recognised by mdadm.

--- /proc/cmdline
auto BOOT_IMAGE=Linux ro root=fdff

--- lilo:
root="/dev/vg0/root"

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

--- /dev:
brw-rw---- 1 root disk 9,  0 2009-08-04 19:02 /dev/md0
brw-rw---- 1 root disk 9,  1 2009-08-04 19:02 /dev/md1
brw-rw---- 1 root disk 9,  2 2009-08-04 19:02 /dev/md2
brw-rw---- 1 root disk 9, 98 2009-08-05 12:51 /dev/md98
brw-rw---- 1 root disk 9, 99 2009-08-05 12:48 /dev/md99

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 ata-SAMSUNG_HD642JJ_S1AFJQSS101782 -> ../../sda
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 ata-SAMSUNG_HD642JJ_S1AFJQSS101782-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 ata-SAMSUNG_HD642JJ_S1AFJQSS101782-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 ata-SAMSUNG_HD642JJ_S1AFJQSS101782-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 ata-SAMSUNG_SP2014N_S088J1FYB02850 -> ../../hde
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 ata-SAMSUNG_SP2014N_S088J1FYB02850-part1 -> ../../hde1
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 ata-SAMSUNG_SP2014N_S088J1FYB02850-part2 -> ../../hde2
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-name-vg0-home -> ../../dm-3
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-name-vg0-nobak -> ../../dm-4
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-name-vg0-oni -> ../../dm-5
lrwxrwxrwx 1 root root 12 2009-08-04 19:02 dm-name-vg0-root -> ../../dm-255
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-name-vg0-swap -> ../../dm-2
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-name-vg1-noraid -> ../../dm-0
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-name-vg1-oni2 -> ../../dm-1
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-uuid-LVM-tWfEf2O0CuULdhqBlibbVArq3seoIZogNuzDrXsxw9pE13f1debixpR5E4EGUWT4 -> ../../dm-1
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-uuid-LVM-tWfEf2O0CuULdhqBlibbVArq3seoIZogX8U4G63sWqZedyd284H0ug2GOSm4TzaH -> ../../dm-0
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfQ9wgq5p8hxtbZFuc7Mq4RoVd4j0s1JdW -> ../../dm-3
lrwxrwxrwx 1 root root 12 2009-08-04 19:02 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfUnUJ1l38cpQtDH2myuJA5z3RqViXEpc4 -> ../../dm-255
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfW80yKdf17LipwMz3k9tsDPWPbkpgc9Lg -> ../../dm-5
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfyOtyJbEPRfV7CjTRrXLDzwYb8STngs1s -> ../../dm-2
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfzporhj94BYxqHGU1ssPfrnpie1C0H5Al -> ../../dm-4
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 md-uuid-9900cea9:6a368469:2afa2a14:7e11b5d8 -> ../../md0
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 md-uuid-c2a032c9:727b1dd3:2afa2a14:7e11b5d8 -> ../../md2
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 md-uuid-e86dbf11:5b1671f1:2afa2a14:7e11b5d8 -> ../../md1
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782 -> ../../sda
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 usb-Generic_STORAGE_DEVICE_79596-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 usb-Generic_STORAGE_DEVICE_79596-0:1 -> ../../sdc
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 usb-Generic_STORAGE_DEVICE_79596-0:2 -> ../../sdd
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 usb-Generic_STORAGE_DEVICE_79596-0:3 -> ../../sde

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:07.1-ide-0:0 -> ../../hda
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:07.1-ide-1:0 -> ../../hdc
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:1 -> ../../sdc
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:2 -> ../../sdd
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:3 -> ../../sde
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:09.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 pci-0000:00:09.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 pci-0000:00:09.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 pci-0000:00:09.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 pci-0000:00:13.0-ide-0:0 -> ../../hde
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 pci-0000:00:13.0-ide-0:0-part1 -> ../../hde1
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 pci-0000:00:13.0-ide-0:0-part2 -> ../../hde2

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 2c34dfb6-27a1-43dd-9d9b-142cc6ceb013 -> ../../dm-3
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 2e6de5c4-6192-434d-b359-f311eecf42de -> ../../dm-0
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 3f76f3e0-8887-4dc7-9d9f-864d5bf9cc54 -> ../../dm-4
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 59e07953-3344-471e-b3b5-2bc3cfc00e6f -> ../../dm-5
lrwxrwxrwx 1 root root  9 2009-08-04 19:02 8bf48169-69f6-4fe8-baa7-be358bc69443 -> ../../md0
lrwxrwxrwx 1 root root 12 2009-08-04 19:02 be321d4d-c54b-4977-b402-3d5c983d05a8 -> ../../dm-255
lrwxrwxrwx 1 root root 10 2009-08-04 19:02 d9f102d5-0fc9-4316-8641-307844f7386d -> ../../dm-1

/dev/md:
total 0

Auto-generated on Wed, 05 Aug 2009 12:56:11 -0400
by mdadm bugscript 3.0-2


More information about the pkg-mdadm-devel mailing list