Bug#525655: /usr/share/initramfs-tools/hooks/mdadm: warnings

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sun Apr 26 11:29:10 UTC 2009


Package: mdadm
Version: 2.6.9-1
Severity: normal

Got warnings like this:

W: mdadm: You appear to be missing /dev/md1 from /etc/mdadm/mdadm.conf
W: mdadm: If this is required to boot you must add this line:
W: mdadm: ARRAY /dev/md1 level=raid1 num-devices=2 UUID=e28345e7:cf40379b:3407723407727f:ebf0f0b0

on all md-devices except the md0 boot device, but there doesn't seem
to be anything wrong with my /etc/mdadm/mdadm.conf, AFAICS.  I believe
i found a few bugs in /usr/share/initramfs-tools/hooks/mdadm.  See
attached patch (mdadm-hook.1.patch).

Hunk 4 corrects the real bug.
Hunk 1 corrects another bug.
Hunks 2 and 3 correct a quoting problem (unescaped double quotes
inside double quotes).  Quoting devpairs="$(...)" is not even
necessary, as the expression is already protected.

Attached mdadm-hook.2.patch is an unrelated light cleanup.


Cheers,

-- Package-specific info:
--- 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/md0 level=raid1 num-devices=2 UUID=a22e8b23:e33010ae:1b789cb8:f0e59097
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=e28345e7:cf40379b:3407727f:ebf0f0b0
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=6f701daa:b57eb876:ff3b7856:d4d90ad9
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=e5ffa444:faefb7e9:50c99164:e968e706
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=e096f650:60604e58:166a937a:fad38aca
ARRAY /dev/md5 level=raid1 num-devices=2 UUID=6b146f31:bafbff26:d7214dde:aeee3db7
ARRAY /dev/md6 level=raid1 num-devices=2 UUID=9daa9f59:86c02785:19553a1e:921899f7
ARRAY /dev/md7 level=raid1 num-devices=2 UUID=009e26e4:0211bffd:5cfa0948:9d57b2b1
ARRAY /dev/md8 level=raid1 num-devices=2 UUID=38e785e5:81fccc87:94a5ab19:f874eae1
ARRAY /dev/md9 level=raid1 num-devices=2 UUID=b83c5142:53b42a66:dcd42906:16b92873

--- /proc/mdstat:
Personalities : [raid1]
md9 : active raid1 sda12[0] sdb12[1]
      78132032 blocks [2/2] [UU]

md8 : active raid1 sda11[0] sdb11[1]
      39061952 blocks [2/2] [UU]

md7 : active raid1 sda10[0] sdb10[1]
      5855552 blocks [2/2] [UU]

md6 : active raid1 sda9[0] sdb9[1]
      5855552 blocks [2/2] [UU]

md5 : active raid1 sda8[0] sdb8[1]
      5855552 blocks [2/2] [UU]

md4 : active raid1 sda7[0] sdb7[1]
      5855552 blocks [2/2] [UU]

md3 : active raid1 sda6[0] sdb6[1]
      3903680 blocks [2/2] [UU]

md2 : active raid1 sda5[0] sdb5[1]
      1951744 blocks [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
      1951808 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
      979840 blocks [2/2] [UU]

unused devices: <none>

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages mdadm depends on:
ii  debconf                       1.5.26     Debian configuration management sy
ii  libc6                         2.9-7      GNU C Library: Shared libraries
ii  lsb-base                      3.2-22     Linux Standard Base 3.2 init scrip
ii  makedev                       2.3.1-88   creates device files in /dev
ii  udev                          0.141-1    /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  module-init-tools             3.7-pre9-1 tools for managing Linux kernel mo
ii  postfix [mail-transport-agent 2.5.5-1.1  High-performance mail transport ag

mdadm suggests no packages.

-- debconf information:
* mdadm/autostart: true
* mdadm/initrdstart: /dev/md0
  mdadm/initrdstart_notinconf: false
  mdadm/initrdstart_msg_errexist:
  mdadm/initrdstart_msg_intro:
  mdadm/initrdstart_msg_errblock:
  mdadm/warning:
* mdadm/start_daemon: true
* mdadm/mail_to: root
  mdadm/initrdstart_msg_errmd:
  mdadm/initrdstart_msg_errconf:
* mdadm/autocheck: true


-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdadm-hook.1.patch
Type: text/x-diff
Size: 1227 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20090426/090a59d5/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdadm-hook.2.patch
Type: text/x-diff
Size: 879 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20090426/090a59d5/attachment-0003.patch>


More information about the pkg-mdadm-devel mailing list