md sw raid5 not detected on boot [jaunty regression]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mdadm
Reproduction:
1. # mdadm --create /dev/md0 -l 5 -n8 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh
2. # cat /proc/mdstat
3. # reboot
4. # cat /proc/mdstat
Actual result:
In step 2:
All is fine, md0 is shown as active (and syncing, and after a day, synced)
md0 : active raid5 sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb[1] sda[0]
3418705472 blocks level 5, 64k chunk, algorithm 2 [8/8] [UUUUUUUU]
unused devices: <none>
In step 4:
It wrongly detect some "md_d0" which I never created, on only sdd.
md_d0 : inactive sdd[3](S)
488386496 blocks
I have no idea how it comes to that md_d0, nor why it singles our sdd.
Expected result:
Step 4 matches step 2.
Version:
Works in 8.10 Intrepid. Appeared after do-dist-upgrade to 9.04 Jaunty.
Array created in either 8.10 or 9.04 is detected correctly when I boot 8.10, but when I boot 9.04, I get the above problem. (I reinstalled an old backup of 8.10 in a different partition to try this out.)
Cost:
5? hours
Detailed information:
Creation:
# mdadm --stop /dev/md_d0 (clean up problem, to be able to re-try)
# mdadm --create /dev/md0 -l 5 -n8 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /d
ev/sdf /dev/sdg /dev/sdh
# echo "10000000" > /proc/sys/
# pvcreate /dev/md0
Physical volume "/dev/md0" successfully created
# vgcreate array2 /dev/md0
Volume group "array2" successfully created
# lvcreate array2 --name backupall --size 2T
Logical volume "backupall" created
# lvdisplay
--- Logical volume ---
LV Name /dev/array2/
VG Name array2
LV UUID oWSHAO-
LV Write Access read/write
LV Status available
# open 0
LV Size 2,00 TB
Current LE 524288
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
# mkfs.xfs /dev/array2/
# df -h
...
/dev/mapper/
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdh[8] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb[1] sda[0]
3418705472 blocks level 5, 64k chunk, algorithm 2 [8/7] [UUUUUUU_]
[
unused devices: <none>
# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Thu May 14 06:06:31 2009
Raid Level : raid5
Array Size : 3418705472 (3260.33 GiB 3500.75 GB)
Used Dev Size : 488386496 (465.76 GiB 500.11 GB)
Raid Devices : 8
Total Devices : 8
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Thu May 14 06:21:40 2009
State : clean, degraded, recovering
Active Devices : 7
Working Devices : 8
Failed Devices : 0
Spare Devices : 1
...
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb[1] sda[0]
3418705472 blocks level 5, 64k chunk, algorithm 2 [8/8] [UUUUUUUU]
unused devices: <none>
-------------------
After reboot:
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md_d0 : inactive sdd[3](S)
488386496 blocks
# mdadm -E /dev/sda
/dev/sda:
Magic : a92b4efc
Version : 00.90.00
UUID : 13e3f335:
Creation Time : Thu May 14 06:06:31 2009
Raid Level : raid5
Used Dev Size : 488386496 (465.76 GiB 500.11 GB)
Array Size : 3418705472 (3260.33 GiB 3500.75 GB)
Raid Devices : 8
Total Devices : 8
Preferred Minor : 0
Update Time : Fri May 15 15:20:47 2009
State : clean
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Checksum : a44802d3 - correct
Events : 22
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 0 0 active sync /dev/sda
0 0 8 0 0 active sync /dev/sda
1 1 8 16 1 active sync /dev/sdb
2 2 8 32 2 active sync /dev/sdc
3 3 8 48 3 active sync /dev/sdd
4 4 8 64 4 active sync /dev/sde
5 5 8 80 5 active sync /dev/sdf
6 6 8 96 6 active sync /dev/sdg
7 7 8 112 7 active sync /dev/sdh
# mdadm -E /dev/sdd
/dev/sdd:
Magic : a92b4efc
Version : 00.90.00
UUID : 13e3f335:
Creation Time : Thu May 14 06:06:31 2009
Raid Level : raid5
Used Dev Size : 488386496 (465.76 GiB 500.11 GB)
Array Size : 3418705472 (3260.33 GiB 3500.75 GB)
Raid Devices : 8
Total Devices : 8
Preferred Minor : 0
Update Time : Fri May 15 15:20:47 2009
State : clean
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Checksum : a4480309 - correct
Events : 22
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 3 8 48 3 active sync /dev/sdd
0 0 8 0 0 active sync /dev/sda
1 1 8 16 1 active sync /dev/sdb
2 2 8 32 2 active sync /dev/sdc
3 3 8 48 3 active sync /dev/sdd
4 4 8 64 4 active sync /dev/sde
5 5 8 80 5 active sync /dev/sdf
6 6 8 96 6 active sync /dev/sdg
7 7 8 112 7 active sync /dev/sdh
# cat /etc/mdadm/
# 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 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh
#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
# cfdisk /dev/sda (same for sda-sdh):
Heads: 255 Sectors per Track: 63 Cylinders: 60801
Name Flags Part Type FS Type [Label] Size (MB)
------
# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdh: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdh doesn't contain a valid partition table
Disk /dev/sdi: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00034265
Device Boot Start End Blocks Id System
/dev/sdi1 * 1 243 1951866 83 Linux
/dev/sdi2 244 1459 9767520 83 Linux
/dev/sdi3 1460 2675 9767520 83 Linux
/dev/sdi4 2676 38913 291081735 5 Extended
/dev/sdi5 2676 3161 3903763+ 83 Linux
/dev/sdi6 3162 38913 287177908+ 83 Linux
I'm getting this too!!