Bug#498505: mdadm: Bug still not fixed
Yauhen Kharuzhy
jekhor at gmail.com
Mon Nov 3 11:35:38 UTC 2008
Package: mdadm
Version: 2.6.7.1-1
Followup-For: Bug #498505
Problem still not fixed in 2.6.7.1-1. I start to reshape RAID5 array and
reboot machine. After that, mdadm --assemble causes segmentation fault. While
machine was powered off, some drives was moved to other SATA connectors and
devices in Linux was changed respectively (/dev/sdg was moved to /dev/sdd).
# gdb mdadm
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) set args --assemble /dev/md0 /dev/sdd2 /dev/sde2 /dev/sdf2 /dev/sdh2 missing
(gdb) run
Starting program: /tmp/mdadm-2.6.7.1/mdadm --assemble /dev/md0 /dev/sdd2 /dev/sde2 /dev/sdf2 /dev/sdh2 missing
Program received signal SIGSEGV, Segmentation fault.
0x000000000041c733 in match_home0 (st=0x637430, homehost=0x7fff52e0f620 "gamayun") at super0.c:326
326 return (memcmp(&sb->set_uuid2, hash, 8)==0);
(gdb) bt
#0 0x000000000041c733 in match_home0 (st=0x637430, homehost=0x7fff52e0f620 "gamayun") at super0.c:326
#1 0x000000000040d42b in Assemble (st=0x637430, mddev=0x7fff52e10e84 "/dev/md0", mdfd=5, ident=0x7fff52e0f730, devlist=0x637030, backup_file=0x0, readonly=0,
runstop=0, update=0x0, homehost=0x7fff52e0f620 "gamayun", verbose=0, force=0) at Assemble.c:338
#2 0x00000000004055a5 in main (argc=8, argv=0x7fff52e0fa88) at mdadm.c:1027
(gdb) quit
root at gamayun:/tmp/mdadm-2.6.7.1# mdadm --misc -E /dev/sdd2
/dev/sdd2:
Magic : a92b4efc
Version : 00.91.00
UUID : c70787d0:6a2b1ffc:7cd3e4dc:cd9c5167
Creation Time : Sat Nov 1 15:01:30 2008
Raid Level : raid5
Used Dev Size : 478608384 (456.44 GiB 490.09 GB)
Array Size : 1914433536 (1825.75 GiB 1960.38 GB)
Raid Devices : 5
Total Devices : 4
Preferred Minor : 0
Reshape pos'n : 94130432 (89.77 GiB 96.39 GB)
Delta Devices : 1 (4->5)
Update Time : Mon Nov 3 10:56:31 2008
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 1
Spare Devices : 0
Checksum : deacb78b - correct
Events : 60660
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 1 8 98 1 active sync
0 0 8 66 0 active sync /dev/sde2
1 1 8 98 1 active sync
2 2 8 114 2 active sync /dev/sdh2
3 3 8 82 3 active sync /dev/sdf2
4 4 0 0 4 faulty removed
root at gamayun:/tmp/mdadm-2.6.7.1# mdadm --misc -E /dev/sde2
/dev/sde2:
Magic : a92b4efc
Version : 00.91.00
UUID : c70787d0:6a2b1ffc:7cd3e4dc:cd9c5167
Creation Time : Sat Nov 1 15:01:30 2008
Raid Level : raid5
Used Dev Size : 478608384 (456.44 GiB 490.09 GB)
Array Size : 1914433536 (1825.75 GiB 1960.38 GB)
Raid Devices : 5
Total Devices : 4
Preferred Minor : 0
Reshape pos'n : 94130432 (89.77 GiB 96.39 GB)
Delta Devices : 1 (4->5)
Update Time : Mon Nov 3 10:56:31 2008
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 1
Spare Devices : 0
Checksum : deacb769 - correct
Events : 60660
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 66 0 active sync /dev/sde2
0 0 8 66 0 active sync /dev/sde2
1 1 8 98 1 active sync
2 2 8 114 2 active sync /dev/sdh2
3 3 8 82 3 active sync /dev/sdf2
4 4 0 0 4 faulty removed
root at gamayun:/tmp/mdadm-2.6.7.1# mdadm --misc -E /dev/sdf2
/dev/sdf2:
Magic : a92b4efc
Version : 00.91.00
UUID : c70787d0:6a2b1ffc:7cd3e4dc:cd9c5167
Creation Time : Sat Nov 1 15:01:30 2008
Raid Level : raid5
Used Dev Size : 478608384 (456.44 GiB 490.09 GB)
Array Size : 1914433536 (1825.75 GiB 1960.38 GB)
Raid Devices : 5
Total Devices : 4
Preferred Minor : 0
Reshape pos'n : 94130432 (89.77 GiB 96.39 GB)
Delta Devices : 1 (4->5)
Update Time : Mon Nov 3 10:56:31 2008
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 1
Spare Devices : 0
Checksum : deacb77f - correct
Events : 60660
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 3 8 82 3 active sync /dev/sdf2
0 0 8 66 0 active sync /dev/sde2
1 1 8 98 1 active sync
2 2 8 114 2 active sync /dev/sdh2
3 3 8 82 3 active sync /dev/sdf2
4 4 0 0 4 faulty removed
root at gamayun:/tmp/mdadm-2.6.7.1# mdadm --misc -E /dev/sdh2
/dev/sdh2:
Magic : a92b4efc
Version : 00.91.00
UUID : c70787d0:6a2b1ffc:7cd3e4dc:cd9c5167
Creation Time : Sat Nov 1 15:01:30 2008
Raid Level : raid5
Used Dev Size : 478608384 (456.44 GiB 490.09 GB)
Array Size : 1914433536 (1825.75 GiB 1960.38 GB)
Raid Devices : 5
Total Devices : 4
Preferred Minor : 0
Reshape pos'n : 94130432 (89.77 GiB 96.39 GB)
Delta Devices : 1 (4->5)
Update Time : Mon Nov 3 10:56:31 2008
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 1
Spare Devices : 0
Checksum : deacb79d - correct
Events : 60660
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 2 8 114 2 active sync /dev/sdh2
0 0 8 66 0 active sync /dev/sde2
1 1 8 98 1 active sync
2 2 8 114 2 active sync /dev/sdh2
3 3 8 82 3 active sync /dev/sdf2
4 4 0 0 4 faulty removed
--- mdadm.conf
DEVICE partitions
MAILADDR root
--- /proc/mdstat:
Personalities :
unused devices: <none>
--- /proc/partitions:
major minor #blocks name
8 0 244198584 sda
8 1 4883728 sda1
8 2 498015 sda2
8 3 238814257 sda3
8 16 244198584 sdb
8 32 244198584 sdc
8 33 244196001 sdc1
8 48 488386584 sdd
8 49 9767488 sdd1
8 50 478616512 sdd2
8 64 488386584 sde
8 65 9775521 sde1
8 66 478608480 sde2
8 80 488386584 sdf
8 81 9767488 sdf1
8 82 478616512 sdf2
8 96 488386584 sdg
8 112 488386584 sdh
8 113 9767488 sdh1
8 114 478616512 sdh2
253 0 1024000 dm-0
253 1 1945600 dm-1
253 2 2584576 dm-2
253 3 6778880 dm-3
253 4 479199232 dm-4
253 5 2097152 dm-5
253 6 1048576 dm-6
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (amd64)
Kernel: Linux 2.6.24-1-amd64
Locale: LANG=be_BY.UTF-8, LC_CTYPE=be_BY.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
More information about the pkg-mdadm-devel
mailing list