Your message dated Wed, 15 Oct 2008 10:02:10 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#496334: fixed in mdadm 2.6.7.1-1
has caused the Debian Bug report #496334,
regarding mdadm segfault on --assemble --force with raid10
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
496334: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496334
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: mdadm
Version: 2.6.7-3
Severity: critical
Justification: breaks the whole system


My raid10 array got marked faulty, and mdadm refused to assemble
(says it only got 2 devices, and needs 6).
I tried to run mdadm --assemble --force /dev/md4, but I got a segfault.
I couldn't reassemble the array using mdadm 2.6.7 in any way.

However I found a solution:
booted the laptop, and downloaded latest mdadm git from
git://neil.brown.name/mdadm, and compiled it (laptop is 32 bit), then 
transfered it to my (64-bit) box using netcat:
On the 64-bit box with the failed raid array: nc -l -p 1000 >x
On the laptop: nc 192.168.0.199 100 <mdadm
Then chmod +x x, ./x --assemble --force /dev/md4, and it WORKED!
I have the array up now, and a resync is in progress.

dmesg:
[ 1306.867850] md: bind<sdb3>
[ 1306.868912] md: bind<sdd3>
[ 1306.871850] md: bind<sde3>
[ 1306.871850] md: bind<sdc3>
[ 1306.867850] md: bind<sdf3>
[ 1306.871850] md: bind<sda3>
[ 1322.306694] md: kicking non-fresh sdc3 from array!
[ 1322.306694] md: unbind<sdc3>
[ 1322.306694] md: export_rdev(sdc3)
[ 1322.306694] md: kicking non-fresh sde3 from array!
[ 1322.306694] md: unbind<sde3>
[ 1322.306694] md: export_rdev(sde3)
[ 1322.306694] md: kicking non-fresh sdd3 from array!
[ 1322.306694] md: unbind<sdd3>
[ 1322.306694] md: export_rdev(sdd3)
[ 1322.306694] md: kicking non-fresh sdb3 from array!
[ 1322.306694] md: unbind<sdb3>
[ 1322.306694] md: export_rdev(sdb3)
[ 1322.306694] md: md4: raid array is not clean -- starting background 
reconstruction
[ 1322.838707] raid10: not enough operational mirrors for md4
[ 1322.838707] md: pers->run() failed ...
[ 1410.510714] md: md4 stopped.
[ 1410.510714] md: unbind<sda3>
[ 1410.510714] md: export_rdev(sda3)
[ 1410.518705] md: unbind<sdf3>
[ 1410.518705] md: export_rdev(sdf3)
[ 1623.820925] md: md4 stopped.
[ 1624.015384] md: bind<sdb3>
[ 1624.015384] md: bind<sdd3>
[ 1624.015511] md: bind<sde3>
[ 1624.015632] md: bind<sdc3>
[ 1624.016165] md: bind<sdf3>
[ 1624.016165] md: bind<sda3>
[ 1866.359643] md: md4 stopped.
[ 1866.359643] md: unbind<sda3>
[ 1866.359643] md: export_rdev(sda3)
[ 1866.359643] md: unbind<sdf3>
[ 1866.359643] md: export_rdev(sdf3)
[ 1866.359643] md: unbind<sdc3>
[ 1866.359643] md: export_rdev(sdc3)
[ 1866.359643] md: unbind<sde3>
[ 1866.359643] md: export_rdev(sde3)
[ 1866.359643] md: unbind<sdd3>
[ 1866.359643] md: export_rdev(sdd3)
[ 1866.359643] md: unbind<sdb3>
[ 1866.359643] md: export_rdev(sdb3)
[ 1866.599690] mdadm[3205]: segfault at a0 ip 417db5 sp 7fff5f3a6580 error 4 in 
mdadm[400000+29000]
^^^^^Here is where I have run mdadm --assemble --force /dev/md4

[ 3117.017725] md: md4 stopped.
[ 3117.185350] md: bind<sdb3>
[ 3117.186526] md: bind<sdd3>
[ 3117.186526] md: bind<sde3>
[ 3117.189911] md: bind<sdc3>
[ 3117.185350] md: bind<sdf3>
[ 3117.186526] md: bind<sda3>
[ 3122.470735] md: md4 stopped.
[ 3122.470735] md: unbind<sda3>
[ 3122.470735] md: export_rdev(sda3)
[ 3122.470735] md: unbind<sdf3>
[ 3122.470735] md: export_rdev(sdf3)
[ 3122.470735] md: unbind<sdc3>
[ 3122.470735] md: export_rdev(sdc3)
[ 3122.470735] md: unbind<sde3>
[ 3122.470735] md: export_rdev(sde3)
[ 3122.470735] md: unbind<sdd3>
[ 3122.470735] md: export_rdev(sdd3)
[ 3122.470735] md: unbind<sdb3>
[ 3122.470735] md: export_rdev(sdb3)
[ 3122.624492] md: bind<sdb3>
[ 3122.625244] md: bind<sdd3>
[ 3122.626323] md: bind<sde3>
[ 3122.626323] md: bind<sdc3>
[ 3122.626323] md: bind<sdf3>
[ 3122.626833] md: bind<sda3>
[ 3122.626898] md: md4: raid array is not clean -- starting background 
reconstruction

Here is where I've run the new mdadm from git, and it was able to start the
array:
[ 3122.655983] raid10: raid set md4 active with 6 out of 6 devices
[ 3161.721339] md: resync of RAID array md4
[ 3161.721339] md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
[ 3161.721339] md: using maximum available idle IO bandwidth (but not more than 
200000 KB/sec) for resync.
[ 3161.721339] md: using 128k window, over a total of 2159617728 blocks.

I don't know if mdadm from git worked because the bug in 2.6.7 got fixed,
or because it was a 32-bit build, but I suggest updating mdadm in debian to
include patches from upstream git relevant to this problem.

-- Package-specific info:
--- mount output
/dev/md3 on / type ext3 (rw,noatime,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)
procbususb on /proc/bus/usb type usbfs (rw)
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)
tmpfs on /tmp type tmpfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/mapper/vg--all-lv--usr on /usr type xfs (rw)
/dev/mapper/vg--all-lv--var on /var type xfs (rw)
/dev/mapper/vg--all-lv--home on /home type reiserfs (rw,noatime,notail)

--- 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/md3 level=raid1 num-devices=6 
UUID=8b4b5bca:f8e579d9:318cfef2:eb9ed6d4
ARRAY /dev/md4 level=raid10 num-devices=6 
UUID=1156c578:5138c7ee:318cfef2:eb9ed6d4
        devices=/dev/sdb3,/dev/sdc3,/dev/sdd3,/dev/sde3,/dev/sdf3,/dev/sda3
# This file was auto-generated on Sat, 23 Aug 2008 13:25:32 +0000
# by mkconf $Id$

--- /proc/mdstat:
Personalities : [raid1] [raid10] 
md4 : active raid10 sda3[0] sdf3[5] sdc3[4] sde3[3] sdd3[2] sdb3[1]
      2159617728 blocks 64K chunks 2 near-copies [6/6] [UUUUUU]
      [>....................]  resync =  1.4% (31960768/2159617728) 
finish=174.9min speed=202727K/sec
      
md3 : active raid1 sda1[0] sdf1[5] sdc1[4] sde1[3] sdd1[2] sdb1[1]
      9767424 blocks [6/6] [UUUUUU]
      
unused devices: <none>

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

   8     0  732574584 sda
   8     1    9767488 sda1
   8     2    2931862 sda2
   8     3  719872650 sda3
   8    16  732574584 sdb
   8    17    9767488 sdb1
   8    18    2931862 sdb2
   8    19  719872650 sdb3
   8    32  732574584 sdc
   8    33    9767488 sdc1
   8    34    2931862 sdc2
   8    35  719872650 sdc3
   8    48  732574584 sdd
   8    49    9767488 sdd1
   8    50    2931862 sdd2
   8    51  719872650 sdd3
   8    64  732574584 sde
   8    65    9767488 sde1
   8    66    2931862 sde2
   8    67  719872650 sde3
   8    80  732574584 sdf
   8    81    9767488 sdf1
   8    82    2931862 sdf2
   8    83  719872650 sdf3
   9     3    9767424 md3
   9     4 2159617728 md4
 253     0  104857600 dm-0
 253     1 1363148800 dm-1
 253     2  629145600 dm-2
 253     3   10485760 dm-3

--- initrd.img-2.6.26-1-amd64:
45881 blocks
etc/mdadm
etc/mdadm/mdadm.conf
scripts/local-top/mdadm
sbin/mdadm
lib/modules/2.6.26-1-amd64/kernel/drivers/md/multipath.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/linear.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/dm-log.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/raid456.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/dm-snapshot.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/dm-mirror.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/md-mod.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/dm-mod.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/raid10.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/raid1.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/raid0.ko

--- /proc/modules:
dm_mirror 20608 0 - Live 0xffffffffa0165000
dm_log 13956 1 dm_mirror, Live 0xffffffffa0160000
dm_snapshot 19400 0 - Live 0xffffffffa015a000
dm_mod 58864 11 dm_mirror,dm_log,dm_snapshot, Live 0xffffffffa014a000
raid10 23680 1 - Live 0xffffffffa0143000
raid1 24192 1 - Live 0xffffffffa013c000
md_mod 80164 4 raid10,raid1, Live 0xffffffffa0127000

--- volume detail:

--- /proc/cmdline
root=/dev/md3 ro single

--- grub:
kernel          /boot/vmlinuz-2.6.27-rc4 root=/dev/md3 ro 
kernel          /boot/vmlinuz-2.6.27-rc4 root=/dev/md3 ro single
kernel          /boot/vmlinuz-2.6.26-1-amd64 root=/dev/md3 ro 
kernel          /boot/vmlinuz-2.6.26-1-amd64 root=/dev/md3 ro single


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages mdadm depends on:
ii  debconf                       1.5.23     Debian configuration management sy
ii  libc6                         2.7-13     GNU C Library: Shared libraries
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init scrip
ii  makedev                       2.3.1-88   creates device files in /dev
ii  udev                          0.125-5    /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  module-init-tools             3.4-1      tools for managing Linux kernel mo
ii  postfix [mail-transport-agent 2.5.4-1    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



--- End Message ---
--- Begin Message ---
Source: mdadm
Source-Version: 2.6.7.1-1

We believe that the bug you reported is fixed in the latest version of
mdadm, which is due to be installed in the Debian FTP archive:

mdadm-udeb_2.6.7.1-1_amd64.udeb
  to pool/main/m/mdadm/mdadm-udeb_2.6.7.1-1_amd64.udeb
mdadm_2.6.7.1-1.diff.gz
  to pool/main/m/mdadm/mdadm_2.6.7.1-1.diff.gz
mdadm_2.6.7.1-1.dsc
  to pool/main/m/mdadm/mdadm_2.6.7.1-1.dsc
mdadm_2.6.7.1-1_amd64.deb
  to pool/main/m/mdadm/mdadm_2.6.7.1-1_amd64.deb
mdadm_2.6.7.1.orig.tar.gz
  to pool/main/m/mdadm/mdadm_2.6.7.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
martin f. krafft <[EMAIL PROTECTED]> (supplier of updated mdadm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 15 Oct 2008 10:27:23 +0200
Source: mdadm
Binary: mdadm mdadm-udeb
Architecture: source amd64
Version: 2.6.7.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian mdadm maintainers <[EMAIL PROTECTED]>
Changed-By: martin f. krafft <[EMAIL PROTECTED]>
Description: 
 mdadm      - tool to administer Linux MD arrays (software RAID)
 mdadm-udeb - tool to administer Linux MD arrays (software RAID) (udeb)
Closes: 489257 490955 493577 496334 498505 499643 500309
Changes: 
 mdadm (2.6.7.1-1) unstable; urgency=low
 .
   * New upstream release, specifically created for Debian lenny to fix the RC
     bugs, which
     - fixes typo in forced assembly code (closes: #496334, #499643, #498505).
     - fixes array component size detection (closes: 500309).
     Thanks Neil Brown, mdadm upstream: you are spoiling me. :)
 .
   * Minor fixes to documentation:
     - Add David Pashley's Rebuilding RAID blog post.
     - Add new (bugfix) version 1.40 of the newdisk script
       (/usr/share/doc/mdadm/examples/newdisk.gz) (closes: #490955).
     - Add link to Warren Togami's writeup about remote RAID-1 conversion to
       README.recipes.
     - Fix probability of survival in FAQ 4b, since I erroneously labeled the
       chance of failure as the chance of survival; thanks to Per Olofssen for
       clarification (closes: #493577).
     - Cherry-picked 6d6de2e from Neil, which adds HOMEHOST to the manpage and
       closes: #489257.
Checksums-Sha1: 
 d64e749315a49fd75b00528e2e50e45d00956f88 1267 mdadm_2.6.7.1-1.dsc
 f856478e3819bdbe487450d6b8331904e440acc3 211547 mdadm_2.6.7.1.orig.tar.gz
 7603ded46de6942c6126f7f66b7fb12d22481632 125453 mdadm_2.6.7.1-1.diff.gz
 3ae82cf8575be174068a004a86ee5d62b172bcfe 253026 mdadm_2.6.7.1-1_amd64.deb
 724bc2ba41378242965bfa9ef0acd10470f1dd97 76748 mdadm-udeb_2.6.7.1-1_amd64.udeb
Checksums-Sha256: 
 222c4e67f94466299b38a22dd19262ec8b101afd734b6c51c16fcc6b40d88ded 1267 
mdadm_2.6.7.1-1.dsc
 0501c06c660dbfa7f044cf5232f317574fba5228da4a7b176b54a57105518c8d 211547 
mdadm_2.6.7.1.orig.tar.gz
 48d8c723f55173bd6e4f08dab746100e667ff5101d60e4817d0ea48cabe9b6e3 125453 
mdadm_2.6.7.1-1.diff.gz
 9ac840d0908e5fed936767d73ae5ae07bf74b95df597624818147843fe2ce988 253026 
mdadm_2.6.7.1-1_amd64.deb
 19be4d2d5945c19d038d16d9e0abf81218d121724f5d33b442bb30e0de0281d4 76748 
mdadm-udeb_2.6.7.1-1_amd64.udeb
Files: 
 1e639af4c07ce826dedc9c55ff3c8bac 1267 admin optional mdadm_2.6.7.1-1.dsc
 256e86d4a4685acd3a418a01a542e151 211547 admin optional 
mdadm_2.6.7.1.orig.tar.gz
 b4f62073d77a2889c16203dc59f8f014 125453 admin optional mdadm_2.6.7.1-1.diff.gz
 b25890c0e37f00b700a2355cffcbb02d 253026 admin optional 
mdadm_2.6.7.1-1_amd64.deb
 83fc908cbb2e0e6c8daff25b2c98a1ba 76748 debian-installer optional 
mdadm-udeb_2.6.7.1-1_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkj1vL8ACgkQIgvIgzMMSnVqOQCgoC+mnNkh4rKj7gqoD4JbHlp6
4tUAn03B2cLj0AxghfQ4eLDDUY/wVO4+
=SxSL
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to