Bug#714155: [mdadm] mdadm starts before devies are ready
Samuel Smith
leon36 at gmail.com
Wed Jul 17 12:44:53 UTC 2013
Package: mdadm
Version: 3.2.5-5
--- Please enter the report below this line. ---
I was bitten by this too. Looks like another person here too:
http://tinyurl.com/pqrkx2c
Not sure where to point the blame. I was thinking initramfs too but when
I ran reportbug-ng to generate this against mdadm, Martin was smart
enough to prompt a person to check the included mdadm FAQ.gz file item
#26. I have since added a rootdelay to the kernel boot param. I can now
boot on 3.9 without being dropped to a shell for unfound devices.
It is hard to figure out where to put the blame. I am running testing.
Mdadm has been at the same version since Jan. The only major thing that
really changed when I updated was the kernel going from 3.2 to 3.9. The
FAQ.gz even states that this issue is probably caused by the disk
controller drivers.
Not sure how helpful this report is. If I can provide more info, please
let me know.
--- System information. ---
Architecture: amd64
Kernel: Linux 3.9-1-amd64
Debian Release: jessie/sid
900 testing security.debian.org
900 testing mirror.rackspace.com
900 testing mirror.csclub.uwaterloo.ca
500 stable dl.google.com
--- Package information. ---
Depends (Version) | Installed
=================================-+-==================
libc6 (>= 2.3.3) | 2.17-7
udev | 175-7.2
OR makedev | 2.3.1-93
debconf (>= 1.4.72) | 1.5.50
lsb-base (>= 3.1-6) | 4.1+Debian12
initscripts (>= 2.88dsf-13.3) | 2.88dsf-41
Recommends (Version) | Installed
===================================-+-===========
default-mta |
OR mail-transport-agent |
module-init-tools | 9-3
Package's Suggests field is empty.
--- Output from package bug script ---
--- mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY /dev/md0 level=raid1 num-devices=3
UUID=1eb9d164:980b2064:6fa9de12:355920ec
ARRAY /dev/md_d1 level=raid5 num-devices=3
UUID=f56b49d6:cb41756c:6fa9de12:355920ec
--- /etc/default/mdadm
INITRDSTART='all'
AUTOSTART=true
AUTOCHECK=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog"
VERBOSE=false
--- /proc/mdstat:
Personalities : [raid1] [raid6] [raid5] [raid4]
md_d1 : active raid5 sda2[0] sdc2[2] sdb2[1]
976526848 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
md0 : active raid1 sda1[0] sdc1[2] sdb1[1]
120384 blocks [3/3] [UUU]
unused devices: <none>
--- /proc/partitions:
major minor #blocks name
8 0 488386584 sda
8 1 120456 sda1
8 2 488263545 sda2
8 16 488386584 sdb
8 17 120456 sdb1
8 18 488263545 sdb2
8 32 732574584 sdc
8 33 120456 sdc1
8 34 488263545 sdc2
8 48 732574584 sdd
8 49 732572001 sdd1
11 0 1048575 sr0
9 0 120384 md0
254 64 976526848 md_d1
254 65 9765623 md_d1p1
254 66 1953124 md_d1p2
254 67 964808100 md_d1p3
--- LVM physical volumes:
LVM does not seem to be used.
--- mount output
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs
(rw,relatime,size=10240k,nr_inodes=756246,mode=755)
devpts on /dev/pts type devpts
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=612932k,mode=755)
/dev/disk/by-uuid/37d0fb60-800b-4517-8638-9767fa85fb18 on / type ext3
(rw,noatime,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1616480k)
/dev/md0 on /boot type ext4 (rw,noatime,data=ordered)
/dev/md_d1p3 on /home type ext4 (rw,noatime,stripe=32,data=ordered)
--- initrd.img-3.9-1-amd64:
68441 blocks
cd4e75e3374c6a6564ba77d48b90fc6a ./sbin/mdadm
38ccec40ea1cdd3cf996550de8df6235 ./conf/mdadm
f156a168a291a36d682fc3ace125f8e5 ./etc/mdadm/mdadm.conf
a560b1c713f6f2bf42abcd9dade35d6a ./scripts/local-top/mdadm
5f4fe46c90306af6cea57dd4680c99a5
./lib/modules/3.9-1-amd64/kernel/drivers/md/multipath.ko
80aca842e6c5af386055831020425197
./lib/modules/3.9-1-amd64/kernel/drivers/md/raid0.ko
3aa26854079549900f35b222519b7334
./lib/modules/3.9-1-amd64/kernel/drivers/md/raid1.ko
940b92e2f66a40887f46a4e56503f606
./lib/modules/3.9-1-amd64/kernel/drivers/md/raid10.ko
aed6837776e724c51136a717c43edc35
./lib/modules/3.9-1-amd64/kernel/drivers/md/linear.ko
399ae7097e7c3594e4543a9550207227
./lib/modules/3.9-1-amd64/kernel/drivers/md/md-mod.ko
8f53bd8546a42d44623a8d99b134886a
./lib/modules/3.9-1-amd64/kernel/drivers/md/raid456.ko
2018c74e57e4e8015e59c1d948dae850
./lib/modules/3.9-1-amd64/kernel/drivers/md/dm-mod.ko
--- initrd's /conf/conf.d/md:
no conf/md file.
--- /proc/modules:
raid456 57159 1 - Live 0xffffffffa01b5000
async_raid6_recov 12574 1 raid456, Live 0xffffffffa01b0000
async_memcpy 12426 2 raid456,async_raid6_recov, Live 0xffffffffa0148000
async_pq 12547 2 raid456,async_raid6_recov, Live 0xffffffffa0143000
async_xor 12429 3 raid456,async_raid6_recov,async_pq, Live
0xffffffffa0112000
async_tx 12566 5
raid456,async_raid6_recov,async_memcpy,async_pq,async_xor, Live
0xffffffffa0085000
raid6_pq 95431 2 async_raid6_recov,async_pq, Live 0xffffffffa0197000
raid1 30997 1 - Live 0xffffffffa018e000
md_mod 92469 7 raid456,raid1, Live 0xffffffffa0176000
--- /var/log/syslog:
--- volume detail:
/dev/sda:
MBR Magic : aa55
Partition[0] : 240912 sectors at 63 (type 83)
Partition[1] : 976527090 sectors at 240975 (type fd)
--
/dev/sda1:
Magic : a92b4efc
Version : 0.90.00
UUID : 1eb9d164:980b2064:6fa9de12:355920ec (local to host user)
Creation Time : Thu Feb 26 18:27:29 2009
Raid Level : raid1
Used Dev Size : 120384 (117.58 MiB 123.27 MB)
Array Size : 120384 (117.58 MiB 123.27 MB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 0
Update Time : Wed Jul 17 07:34:45 2013
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : a082f4a8 - correct
Events : 3450
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
2 2 8 33 2 active sync /dev/sdc1
--
/dev/sda2:
Magic : a92b4efc
Version : 0.90.00
UUID : f56b49d6:cb41756c:6fa9de12:355920ec (local to host user)
Creation Time : Thu Feb 26 18:28:18 2009
Raid Level : raid5
Used Dev Size : 488263424 (465.64 GiB 499.98 GB)
Array Size : 976526848 (931.29 GiB 999.96 GB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 1
Update Time : Wed Jul 17 07:34:54 2013
State : active
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : c78e0779 - correct
Events : 649030
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 2 0 active sync /dev/sda2
0 0 8 2 0 active sync /dev/sda2
1 1 8 18 1 active sync /dev/sdb2
2 2 8 34 2 active sync /dev/sdc2
--
/dev/sdb:
MBR Magic : aa55
Partition[0] : 240912 sectors at 63 (type 83)
Partition[1] : 976527090 sectors at 240975 (type fd)
--
/dev/sdb1:
Magic : a92b4efc
Version : 0.90.00
UUID : 1eb9d164:980b2064:6fa9de12:355920ec (local to host user)
Creation Time : Thu Feb 26 18:27:29 2009
Raid Level : raid1
Used Dev Size : 120384 (117.58 MiB 123.27 MB)
Array Size : 120384 (117.58 MiB 123.27 MB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 0
Update Time : Wed Jul 17 07:34:45 2013
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : a082f4ba - correct
Events : 3450
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
2 2 8 33 2 active sync /dev/sdc1
--
/dev/sdb2:
Magic : a92b4efc
Version : 0.90.00
UUID : f56b49d6:cb41756c:6fa9de12:355920ec (local to host user)
Creation Time : Thu Feb 26 18:28:18 2009
Raid Level : raid5
Used Dev Size : 488263424 (465.64 GiB 499.98 GB)
Array Size : 976526848 (931.29 GiB 999.96 GB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 1
Update Time : Wed Jul 17 07:34:54 2013
State : active
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : c78e078b - correct
Events : 649030
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 1 8 18 1 active sync /dev/sdb2
0 0 8 2 0 active sync /dev/sda2
1 1 8 18 1 active sync /dev/sdb2
2 2 8 34 2 active sync /dev/sdc2
--
/dev/sdc:
MBR Magic : aa55
Partition[0] : 240912 sectors at 63 (type 83)
Partition[1] : 976527090 sectors at 240975 (type fd)
--
/dev/sdc1:
Magic : a92b4efc
Version : 0.90.00
UUID : 1eb9d164:980b2064:6fa9de12:355920ec (local to host user)
Creation Time : Thu Feb 26 18:27:29 2009
Raid Level : raid1
Used Dev Size : 120384 (117.58 MiB 123.27 MB)
Array Size : 120384 (117.58 MiB 123.27 MB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 0
Update Time : Wed Jul 17 07:34:45 2013
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : a082f4cc - correct
Events : 3450
Number Major Minor RaidDevice State
this 2 8 33 2 active sync /dev/sdc1
0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 33 2 active sync /dev/sdc1
--
/dev/sdc2:
Magic : a92b4efc
Version : 0.90.00
UUID : f56b49d6:cb41756c:6fa9de12:355920ec (local to host user)
Creation Time : Thu Feb 26 18:28:18 2009
Raid Level : raid5
Used Dev Size : 488263424 (465.64 GiB 499.98 GB)
Array Size : 976526848 (931.29 GiB 999.96 GB)
Raid Devices : 3
Total Devices : 3
Preferred Minor : 1
Update Time : Wed Jul 17 07:34:54 2013
State : active
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : c78e079d - correct
Events : 649030
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 2 8 34 2 active sync /dev/sdc2
0 0 8 2 0 active sync /dev/sda2
1 1 8 18 1 active sync /dev/sdb2
2 2 8 34 2 active sync /dev/sdc2
--
/dev/sdd:
MBR Magic : aa55
Partition[0] : 1465144002 sectors at 63 (type 83)
--
/dev/sdd1 is not recognised by mdadm.
--- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.9-1-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro rootdelay=5 quiet
--- grub2:
insmod raid
insmod raid5rec
set root='(mduuid/f56b49d6cb41756c6fa9de12355920ec,1)'
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.9-1-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro rootdelay=5 quiet
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.9-1-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro single rootdelay=5
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.2.0-4-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro rootdelay=5 quiet
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.2.0-4-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro single rootdelay=5
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.2.0-3-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro rootdelay=5 quiet
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.2.0-3-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro single rootdelay=5
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.2.0-2-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro rootdelay=5 quiet
insmod raid
set root='(mduuid/1eb9d164980b20646fa9de12355920ec)'
linux /vmlinuz-3.2.0-2-amd64
root=UUID=37d0fb60-800b-4517-8638-9767fa85fb18 ro single rootdelay=5
--- grub legacy:
kernel /vmlinuz-2.6.32-trunk-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no quiet vga=791
kernel /vmlinuz-2.6.32-trunk-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no single
kernel /vmlinuz-2.6.32-3-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no quiet vga=791
kernel /vmlinuz-2.6.32-3-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no single
kernel /vmlinuz-2.6.30-2-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no quiet vga=791
kernel /vmlinuz-2.6.30-2-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no single
kernel /vmlinuz-2.6.30-1-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no quiet vga=791
kernel /vmlinuz-2.6.30-1-amd64 root=/dev/md_d1p1 ro
acpi_enforce_resources=no single
--- udev:
ii udev 175-7.2 amd64 /dev/ and hotplug
management daem
6df86db16655769fa94086d3ee13453a /lib/udev/rules.d/64-md-raid.rules
--- /dev:
brw-rw---T 1 root disk 9, 0 Jul 17 07:26 /dev/md0
brw-rw---T 1 root disk 254, 64 Jul 17 07:26 /dev/md_d1
brw-rw---T 1 root disk 254, 65 Jul 17 07:26 /dev/md_d1p1
brw-rw---T 1 root disk 254, 66 Jul 17 07:26 /dev/md_d1p2
brw-rw---T 1 root disk 254, 67 Jul 17 07:26 /dev/md_d1p3
/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 9 Jul 17 07:26 ata-ST3500320AS_5QM1CWYT -> ../../sdb
lrwxrwxrwx 1 root root 10 Jul 17 07:26 ata-ST3500320AS_5QM1CWYT-part1 ->
../../sdb1
lrwxrwxrwx 1 root root 10 Jul 17 07:26 ata-ST3500320AS_5QM1CWYT-part2 ->
../../sdb2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 ata-ST3500320AS_9QMARGYH -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 17 07:26 ata-ST3500320AS_9QMARGYH-part1 ->
../../sda1
lrwxrwxrwx 1 root root 10 Jul 17 07:26 ata-ST3500320AS_9QMARGYH-part2 ->
../../sda2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 ata-ST3750330AS_3QK0AH3N -> ../../sdc
lrwxrwxrwx 1 root root 10 Jul 17 07:26 ata-ST3750330AS_3QK0AH3N-part1 ->
../../sdc1
lrwxrwxrwx 1 root root 10 Jul 17 07:26 ata-ST3750330AS_3QK0AH3N-part2 ->
../../sdc2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 ata-ST3750330AS_5QK081N7 -> ../../sdd
lrwxrwxrwx 1 root root 10 Jul 17 07:26 ata-ST3750330AS_5QK081N7-part1 ->
../../sdd1
lrwxrwxrwx 1 root root 9 Jul 17 07:26 ata-TSSTcorp_CDDVDW_SH-S203N ->
../../sr0
lrwxrwxrwx 1 root root 9 Jul 17 07:26
md-uuid-1eb9d164:980b2064:6fa9de12:355920ec -> ../../md0
lrwxrwxrwx 1 root root 11 Jul 17 07:26
md-uuid-f56b49d6:cb41756c:6fa9de12:355920ec -> ../../md_d1
lrwxrwxrwx 1 root root 13 Jul 17 07:26
md-uuid-f56b49d6:cb41756c:6fa9de12:355920ec-part1 -> ../../md_d1p1
lrwxrwxrwx 1 root root 13 Jul 17 07:26
md-uuid-f56b49d6:cb41756c:6fa9de12:355920ec-part2 -> ../../md_d1p2
lrwxrwxrwx 1 root root 13 Jul 17 07:26
md-uuid-f56b49d6:cb41756c:6fa9de12:355920ec-part3 -> ../../md_d1p3
lrwxrwxrwx 1 root root 9 Jul 17 07:26 scsi-SATA_ST3500320AS_5QM1CWYT ->
../../sdb
lrwxrwxrwx 1 root root 10 Jul 17 07:26
scsi-SATA_ST3500320AS_5QM1CWYT-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 17 07:26
scsi-SATA_ST3500320AS_5QM1CWYT-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 scsi-SATA_ST3500320AS_9QMARGYH ->
../../sda
lrwxrwxrwx 1 root root 10 Jul 17 07:26
scsi-SATA_ST3500320AS_9QMARGYH-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 17 07:26
scsi-SATA_ST3500320AS_9QMARGYH-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 scsi-SATA_ST3750330AS_3QK0AH3N ->
../../sdc
lrwxrwxrwx 1 root root 10 Jul 17 07:26
scsi-SATA_ST3750330AS_3QK0AH3N-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jul 17 07:26
scsi-SATA_ST3750330AS_3QK0AH3N-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 scsi-SATA_ST3750330AS_5QK081N7 ->
../../sdd
lrwxrwxrwx 1 root root 10 Jul 17 07:26
scsi-SATA_ST3750330AS_5QK081N7-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 9 Jul 17 07:26 wwn-0x5000c500026dc86a -> ../../sdc
lrwxrwxrwx 1 root root 10 Jul 17 07:26 wwn-0x5000c500026dc86a-part1 ->
../../sdc1
lrwxrwxrwx 1 root root 10 Jul 17 07:26 wwn-0x5000c500026dc86a-part2 ->
../../sdc2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 wwn-0x5000c50005a04fa3 -> ../../sdd
lrwxrwxrwx 1 root root 10 Jul 17 07:26 wwn-0x5000c50005a04fa3-part1 ->
../../sdd1
lrwxrwxrwx 1 root root 9 Jul 17 07:26 wwn-0x5000c5000b6b7912 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jul 17 07:26 wwn-0x5000c5000b6b7912-part1 ->
../../sdb1
lrwxrwxrwx 1 root root 10 Jul 17 07:26 wwn-0x5000c5000b6b7912-part2 ->
../../sdb2
lrwxrwxrwx 1 root root 9 Jul 17 07:26 wwn-0x5000c50010fc0dd2 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 17 07:26 wwn-0x5000c50010fc0dd2-part1 ->
../../sda1
lrwxrwxrwx 1 root root 10 Jul 17 07:26 wwn-0x5000c50010fc0dd2-part2 ->
../../sda2
/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root 9 Jul 17 07:26 pci-0000:00:11.0-scsi-0:0:0:0 ->
../../sda
lrwxrwxrwx 1 root root 10 Jul 17 07:26
pci-0000:00:11.0-scsi-0:0:0:0-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jul 17 07:26
pci-0000:00:11.0-scsi-0:0:0:0-part2 -> ../../sdb2
/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 13 Jul 17 07:26
0ed7c33c-5ef6-409b-9bab-e1c0715d30d5 -> ../../md_d1p3
lrwxrwxrwx 1 root root 13 Jul 17 07:26
27ac7205-2152-4920-9433-a2a714a2825f -> ../../md_d1p2
lrwxrwxrwx 1 root root 13 Jul 17 07:26
37d0fb60-800b-4517-8638-9767fa85fb18 -> ../../md_d1p1
lrwxrwxrwx 1 root root 10 Jul 17 07:26
6bea3afd-5500-4b8d-a7a8-7dfe4b72e98d -> ../../sdd1
lrwxrwxrwx 1 root root 9 Jul 17 07:26
c959cee8-1b20-4259-b5d4-11d66148c6fb -> ../../md0
/dev/md:
total 0
Auto-generated on Wed, 17 Jul 2013 07:34:55 -0500
by mdadm bugscript 3.2.5-5
More information about the pkg-mdadm-devel
mailing list