Your message dated Wed, 29 Apr 2009 09:34:23 +0000
with message-id <e1lz6bl-0001ki...@ries.debian.org>
and subject line Bug#519999: fixed in mdadm 2.6.9-2
has caused the Debian Bug report #519999,
regarding mdadm: Init script calls modprobe with argument it no longer 
recognizes
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 ow...@bugs.debian.org
immediately.)


-- 
519999: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519999
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mdadm
Version: 2.6.8-12-gb47dff6-2
Severity: important
Tags: patch

After recent upgrade, mdadm stopped working for me. The modules did not
load and thus array was not assembled. Manual inspection revealed, that when
modprobe is called as:

  modprobe -kq md

from /etc/init.d/mdadm-raid, it complains about unrecognized option -k and
does nothing.

People who have root on md device are not affected, because the script used
in initramfs does not specify that option.  Attached patch removes -k option
from all invocations of modprobe I found in the package. The one in
mdadm-raid was the one that hit me.

Since there was no upgrade of mdadm, but there was upgrade of
module-init-tools, I am CC'ing it's maintainer. I leave it up to you to
consider whether modprobe should silently ignore -k for compatibility with
legacy scripts.

Because I use etckeeper, I can tell you the packages I upgraded between last
successful and today's unsuccessful boot:

    Date: Sat Mar 14 11:18:21 2009 +0100
    Package changes:
    -asciidoc 8.2.7-2
    +asciidoc 8.2.7-3
    -awesome 3.2~rc4-1
    +awesome 3.2-1
    -dictionaries-common 1.1.1
    +dictionaries-common 1.2.0
    -groff 1.18.1.1-21
    -groff-base 1.18.1.1-21
    +groff 1.18.1.1-22
    +groff-base 1.18.1.1-22
    -libdes425-3 1.6.dfsg.4~beta1-9
    +libdes425-3 1.6.dfsg.4~beta1-11
    -libgssapi-krb5-2 1.6.dfsg.4~beta1-9
    +libgssapi-krb5-2 1.6.dfsg.4~beta1-11
    -libgssrpc4 1.6.dfsg.4~beta1-9
    +libgssrpc4 1.6.dfsg.4~beta1-11
    -libhesiod0 3.0.2-18.3
    +libhesiod0 3.0.2-19
    -libk5crypto3 1.6.dfsg.4~beta1-9
    -libkadm5srv5 1.6.dfsg.4~beta1-9
    +libk5crypto3 1.6.dfsg.4~beta1-11
    +libkadm5srv5 1.6.dfsg.4~beta1-11
    -libkdb5-4 1.6.dfsg.4~beta1-9
    +libkdb5-4 1.6.dfsg.4~beta1-11
    -libkrb5-3 1.6.dfsg.4~beta1-9
    -libkrb5-dev 1.6.dfsg.4~beta1-9
    -libkrb53 1.6.dfsg.4~beta1-9
    -libkrb5support0 1.6.dfsg.4~beta1-9
    +libkrb5-3 1.6.dfsg.4~beta1-11
    +libkrb5-dev 1.6.dfsg.4~beta1-11
    +libkrb53 1.6.dfsg.4~beta1-11
    +libkrb5support0 1.6.dfsg.4~beta1-11
    -mc 2:4.6.2~git20080311-4
    +mc 2:4.6.2-1
    -module-init-tools 3.7-pre5-1
    +module-init-tools 3.7-pre9-1
    -x11proto-core-dev 7.0.14-2
    +x11proto-core-dev 7.0.15-1

    Date: Fri Mar 13 17:02:26 2009 +0100
    Package changes:
    -alsa-base 1.0.17.dfsg-4
    +alsa-base 1.0.19.dfsg-1
    -autoconf-doc 2.59-3
    -kde-icons-oxygen 4:4.2.1-1
    +kde-icons-oxygen 4:4.2.1-2
    -kdebase-runtime 4:4.2.1-1
    -kdebase-runtime-bin-kde4 4:4.2.1-1
    -kdebase-runtime-data 4:4.2.1-1
    +kdebase-runtime 4:4.2.1-2
    +kdebase-runtime-bin-kde4 4:4.2.1-2
    +kdebase-runtime-data 4:4.2.1-2
    -kdelibs-bin 4:4.2.1-1
    +kdelibs-bin 4:4.2.1-2
    -kdelibs5 4:4.2.1-1
    -kdelibs5-data 4:4.2.1-1
    +kdelibs5 4:4.2.1-2
    +kdelibs5-data 4:4.2.1-2
    -libpod-pom-perl 0.17-6
    +libpod-pom-perl 0.18-1
    -libxi-dev 2:1.2.0-2
    -libxi6 2:1.2.0-2
    +libxi-dev 2:1.2.1-1
    +libxi6 2:1.2.1-1
    -libxrandr-dev 2:1.2.3-1
    -libxrandr2 2:1.2.3-1
    +libxrandr-dev 2:1.3.0-1
    +libxrandr2 2:1.3.0-1
    -linux-sound-base 1.0.17.dfsg-4
    +linux-sound-base 1.0.19.dfsg-1
    -x11proto-randr-dev 1.2.99.3-2
    +x11proto-randr-dev 1.3.0-1


-- Package-specific info:
--- mount output
/dev/sda1 on / type ext3 (rw,relatime)
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)
/dev/md0 on /home type ext3 (rw,relatime)
/home/.tmp on /tmp type none (rw,bind)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc 
(rw,noexec,nosuid,nodev)

--- I have reinstalled the package while trying to find the root of the
    problem. During that, the package configuration step regenerated the
    mdadm file. First the new version, than the original. Unfortunately,
    I can't similarly compare the initrd content, because that is not
    versioned by etckeeper.
--- mdadm.conf (version after reinstall -- matches the debconf settings)
# 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/md0 level=raid1 num-devices=2 
UUID=8abb4a39:a40aea90:4c43ed57:183200f0

# This file was auto-generated on Mon, 16 Mar 2009 19:58:43 +0100
# by mkconf $Id$

--- mdadm.conf (previous version):
DEVICE partitions
MAILADDR root
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=8abb4a39:a40aea90:4c43ed57:183200f0

--- /proc/mdstat:
Personalities : [raid1] 
md0 : active raid1 sdb2[0] sda3[1]
      238356288 blocks [2/2] [UU]
      
unused devices: <none>

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

   8     0  293056295 sda
   8     1   48853633 sda1
   8     2    5839627 sda2
   8     3  238356405 sda3
   8    16  244198584 sdb
   8    17    5839596 sdb1
   8    18  238356405 sdb2
   9     0  238356288 md0

--- initrd.img-2.6.26-1-amd64:
42097 blocks
scripts/local-top/mdadm
etc/mdadm
etc/mdadm/mdadm.conf
lib/modules/2.6.26-1-amd64/kernel/drivers/md/raid1.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/multipath.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-mirror.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/dm-mod.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/raid0.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/raid10.ko
lib/modules/2.6.26-1-amd64/kernel/drivers/md/raid456.ko
sbin/mdadm

--- /proc/modules:
raid1 24192 1 - Live 0xffffffffa04bd000
md_mod 80164 2 raid1, Live 0xffffffffa04a8000
dm_snapshot 19400 0 - Live 0xffffffffa04a2000
dm_mirror 20608 0 - Live 0xffffffffa0015000
dm_log 13956 1 dm_mirror, Live 0xffffffffa0010000
dm_mod 58864 3 dm_snapshot,dm_mirror,dm_log, Live 0xffffffffa0000000

--- /var/log/syslog:

--- volume detail:

--- /proc/cmdline
root=/dev/sda1 ro console=tty0 vga=794 

--- grub:
kernel          /boot/vmlinuz root=/dev/sda1 ro console=tty0 vga=794 
kernel          /boot/vmlinuz.old root=/dev/sda1 ro console=tty0 vga=794 
kernel          /boot/vmlinuz root=/dev/sda1 ro console=ttyS1,115200n8 
console=tty0 vga=794 


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

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

Versions of packages mdadm depends on:
ii  debconf                       1.5.26     Debian configuration management sy
ii  libc6                         2.9-5      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-7    /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  exim4-daemon-light [mail-tran 4.69-9     lightweight Exim MTA (v4) daemon
ii  module-init-tools             3.7-pre9-1 tools for managing Linux kernel mo

mdadm suggests no packages.

-- debconf information:
* mdadm/autostart: true
* mdadm/mail_to: root
  mdadm/initrdstart_msg_errmd:
* mdadm/initrdstart: none
  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
-- 
                                                 Jan 'Bulb' Hudec <b...@ucw.cz>
diff -ur mdadm-2.6.8-12-gb47dff6.orig/debian/mdadm-raid mdadm-2.6.8-12-gb47dff6/debian/mdadm-raid
--- mdadm-2.6.8-12-gb47dff6.orig/debian/mdadm-raid	2009-03-16 20:31:44.000000000 +0100
+++ mdadm-2.6.8-12-gb47dff6/debian/mdadm-raid	2009-03-16 20:32:51.000000000 +0100
@@ -94,7 +94,7 @@
 
     if is_true $AUTOSTART || is_true ${MDADM_FORCE_AUTOSTART__:-0}; then
       if [ ! -f /proc/mdstat ] && [ -x "$(command -v modprobe)" ] ; then
-        modprobe -kq md 2>/dev/null || :
+        modprobe -q md 2>/dev/null || :
       fi
       if [ ! -f /proc/mdstat ]; then
         log_problem "failed to load MD subsystem"
diff -ur mdadm-2.6.8-12-gb47dff6.orig/debian/mdadm-startall mdadm-2.6.8-12-gb47dff6/debian/mdadm-startall
--- mdadm-2.6.8-12-gb47dff6.orig/debian/mdadm-startall	2009-03-16 20:31:44.000000000 +0100
+++ mdadm-2.6.8-12-gb47dff6/debian/mdadm-startall	2009-03-16 20:35:48.000000000 +0100
@@ -11,7 +11,7 @@
 CONFIG=/etc/mdadm/mdadm.conf
 ALTCONFIG=/etc/mdadm.conf
 
-modprobe -kq md 2>/dev/null || :
+modprobe -q md 2>/dev/null || :
 
 [ ! -f $CONFIG ] && [ -f $ALTCONFIG ] && CONFIG=$ALTCONFIG
 
diff -ur mdadm-2.6.8-12-gb47dff6.orig/debian/mdadm.postinst mdadm-2.6.8-12-gb47dff6/debian/mdadm.postinst
--- mdadm-2.6.8-12-gb47dff6.orig/debian/mdadm.postinst	2009-03-16 20:31:44.000000000 +0100
+++ mdadm-2.6.8-12-gb47dff6/debian/mdadm.postinst	2009-03-16 20:36:03.000000000 +0100
@@ -12,7 +12,7 @@
   configure|reconfigure)
 
     if [ ! -f /proc/mdstat ] && [ -x $(command -v modprobe 2>/dev/null) ]; then
-      modprobe -k md >/dev/null 2>&1 || :
+      modprobe md >/dev/null 2>&1 || :
     fi
     if [ ! -f /proc/mdstat ]; then
       echo 'W: mdadm: failed to load MD subsystem.' >&2

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: mdadm
Source-Version: 2.6.9-2

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.9-2_amd64.udeb
  to pool/main/m/mdadm/mdadm-udeb_2.6.9-2_amd64.udeb
mdadm_2.6.9-2.diff.gz
  to pool/main/m/mdadm/mdadm_2.6.9-2.diff.gz
mdadm_2.6.9-2.dsc
  to pool/main/m/mdadm/mdadm_2.6.9-2.dsc
mdadm_2.6.9-2_amd64.deb
  to pool/main/m/mdadm/mdadm_2.6.9-2_amd64.deb



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 519...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
martin f. krafft <madd...@debian.org> (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 ftpmas...@debian.org)


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

Format: 1.8
Date: Sun, 26 Apr 2009 16:08:28 +0200
Source: mdadm
Binary: mdadm mdadm-udeb
Architecture: source amd64
Version: 2.6.9-2
Distribution: unstable
Urgency: low
Maintainer: Debian mdadm maintainers <pkg-mdadm-de...@lists.alioth.debian.org>
Changed-By: martin f. krafft <madd...@debian.org>
Description: 
 mdadm      - tool to administer Linux MD arrays (software RAID)
 mdadm-udeb - tool to administer Linux MD arrays (software RAID) (udeb)
Closes: 505375 519999 525655
Changes: 
 mdadm (2.6.9-2) unstable; urgency=low
 .
   * Fix the check of whether mdadm.conf defines all devices known to the
     system; thanks Cristian Ionescu-Idbohrn (closes: #525655).
   * No longer pass -k to modprobe, which has been deprecated for a long time;
     thanks to Jan Hudec (closes: #519999).
   * Remove Mario Joußen from the uploaders list, since his email started
     bouncing.
   * Prepare mdadm source to use quilt, with the long-term goal to switch to
     TopGit, once I find the time.
   * Cherry-pick caa0f6c & 667e66d from Neil into a quilt patch to fix gcc-4.4
     compiler issues (closes: #505375).
Checksums-Sha1: 
 5a8fe36c8fddc055012eaee02db23744091ae922 1224 mdadm_2.6.9-2.dsc
 dac151cf799133e92488b19624df59845409b0be 139297 mdadm_2.6.9-2.diff.gz
 73f96f7885517c3be380ffef30fb03afd0a2492c 274760 mdadm_2.6.9-2_amd64.deb
 132855ff21842eeaf208423b8eeabb177aef919a 90422 mdadm-udeb_2.6.9-2_amd64.udeb
Checksums-Sha256: 
 8adcfbcd31183bc592b4c22ff16faf6d6a7a42805cd8664ccc01ed0e7fa7807c 1224 
mdadm_2.6.9-2.dsc
 38f0627cd2b60380d4b72b80e9085174af7bf6fc28aa8572592e62d9f6270c76 139297 
mdadm_2.6.9-2.diff.gz
 3dfe61c7c8b3a7c32c4edbae0d93f718e2f52a3b16090b46c7320c3c9ef9d246 274760 
mdadm_2.6.9-2_amd64.deb
 42ddb0218ea3602acaabb8b48392be2f35d343bbf5bbc7c16180551d8eb2d304 90422 
mdadm-udeb_2.6.9-2_amd64.udeb
Files: 
 35bc0d6f2d6473248b42157b9557d0a7 1224 admin optional mdadm_2.6.9-2.dsc
 80b50544e7dfb78c98f284765b584b6f 139297 admin optional mdadm_2.6.9-2.diff.gz
 6b60937cb295f0516c9fe5c2d19e576e 274760 admin optional mdadm_2.6.9-2_amd64.deb
 af1c5cbec202bc6fb5d05503596bb721 90422 debian-installer optional 
mdadm-udeb_2.6.9-2_amd64.udeb
Package-Type: udeb

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

iEYEARECAAYFAkn4BoIACgkQIgvIgzMMSnVKTACguACqxpat0pIKJBsoTt1NyGGC
V14An0DNpFQy2sUUPmSmVVstfneh+G3s
=p69/
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to