Bug#620734: mdadm: Monthly autocheck generates unnecessary error message

Elias Duerr schichtleiter at gmail.com
Sun Apr 3 17:41:26 UTC 2011


Package: mdadm Version: 3.1.4-1+8efb9d1 Severity: normal


Since squeeze, checkarray produces an unnecessary error message when invoked by
the monthly AUTOCHECK. The message is included below.
This error message should really not be mailed to root, since it is an expected
monthly check and there is absolutely nothing wrong with the raid.
A further problem is that this message also triggers the PROGRAM as specified
in /etc/mdadm/mdadm.conf, which can lead to further unnecessary steps being
taken.

An user in #debian suggested the following fix:

(19:13:07) cannesahs: actually, write bug report to mdadm package, 
I think there should be "[ $quiet -lt 1 ] &&" 
at start of line 196 in checkarray script.

Thanks for considering this in the next update,
Elias Duerr

-- Package-specific info:

WARNING:
  the following output was not generated by the root user. If you can, please
  replace the following up until "-- System Information:" with the output of
    /usr/share/bug/mdadm/script 3>&1
  run as root. Thanks!

--- mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
PROGRAM /root/scripts/raidfail.sh
ARRAY /dev/md0 UUID=71d79e91:0f681e79:f47eff92:c2dced8e
ARRAY /dev/md1 UUID=9545f3bd:dc53c061:f47eff92:c2dced8e

--- /etc/default/mdadm
INITRDSTART='all'
AUTOSTART=true
AUTOCHECK=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog"
VERBOSE=false

--- /proc/mdstat:
Personalities : [raid1] [raid6] [raid5] [raid4] 
md1 : active raid5 sda2[0] sdd2[3] sdc2[2] sdb2[1]
      4392467904 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
      [===================>.]  check = 99.6% (1459102940/1464155968) finish=2.2min speed=38145K/sec
      
md0 : active raid1 sda1[0] sdd1[3] sdc1[2] sdb1[1]
      979840 blocks [4/4] [UUUU]
      
unused devices: <none>

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

   8        0 1465138584 sda
   8        1     979933 sda1
   8        2 1464156067 sda2
   8       16 1465138584 sdb
   8       17     979933 sdb1
   8       18 1464156067 sdb2
   8       32 1465138584 sdc
   8       33     979933 sdc1
   8       34 1464156067 sdc2
   8       48 1465138584 sdd
   8       49     979933 sdd1
   8       50 1464156067 sdd2
   9        0     979840 md0
   9        1 4392467904 md1
 253        0 4390514688 dm-0
 253        1    1949696 dm-1

--- LVM physical volumes:
LVM does not seem to be used.
--- mount output
/dev/mapper/vg1-root on / type ext3 (rw,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)
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 /boot type ext3 (rw)

--- initrd.img-2.6.32-5-amd64:
57982 blocks
745f450c555823522852539f0a6fc641  ./etc/mdadm/mdadm.conf
06a6acbd64ad4e9dafdfb62347bd7f84  ./sbin/mdadm
4263c99c099ce98c44f918b76f4a0a37  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-region-hash.ko
af8d744ba7aff83e81e57a8fe937ebba  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mod.ko
8f1cc90b7af27f6111bd2d27e7ab1824  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid6_pq.ko
031f6630ca9f1d376a48df4fa5678bfa  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid10.ko
a977ef56bc8968a20908828e5071e8c6  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid456.ko
60d9a2be2715a0c19e40f923aa1b20fa  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/linear.ko
faa8d6eb5ab9d6b51a91fd0463075619  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid1.ko
9587895c9c222cb210ffc32bf6e0dfe9  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/md-mod.ko
29feabe9b71a7b10558e53350069ec12  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-snapshot.ko
8e7ca9a21d02874a16da0af4bc89f11a  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mirror.ko
9bf5ee3e99e68078c9c5957e7ee22ff5  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid0.ko
6717453035ae8a717eb971f62bc0a784  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/multipath.ko
92ecfc9a2e87ac0b3e420e359067a3da  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-log.ko
f4fbd9099399ab08ba9b9f6c71d77595  ./scripts/local-top/mdadm

--- initrd's /conf/conf.d/md:
MD_HOMEHOST='anna'
MD_DEVPAIRS='/dev/md0:raid1 /dev/md1:raid5'
MD_LEVELS='raid1 raid5'
MD_DEVS=all
MD_MODULES='raid1 raid456'

--- /proc/modules:
dm_mod 53754 6 - Live 0xffffffffa01ca000
raid456 44500 1 - Live 0xffffffffa01b8000
async_raid6_recov 5170 1 raid456, Live 0xffffffffa01b1000
async_pq 3479 2 raid456,async_raid6_recov, Live 0xffffffffa01ab000
raid6_pq 77179 2 async_raid6_recov,async_pq, Live 0xffffffffa0192000
async_xor 2478 3 raid456,async_raid6_recov,async_pq, Live 0xffffffffa018c000
async_memcpy 1198 2 raid456,async_raid6_recov, Live 0xffffffffa017f000
async_tx 1734 5 raid456,async_raid6_recov,async_pq,async_xor,async_memcpy, Live 0xffffffffa0179000
raid1 18431 1 - Live 0xffffffffa016e000
md_mod 73824 4 raid456,raid1, Live 0xffffffffa0151000

syslog not readable by user.
--- volume detail:
/dev/sda not readable by user.
/dev/sda1 not readable by user.
/dev/sda2 not readable by user.
/dev/sdb not readable by user.
/dev/sdb1 not readable by user.
/dev/sdb2 not readable by user.
/dev/sdc not readable by user.
/dev/sdc1 not readable by user.
/dev/sdc2 not readable by user.
/dev/sdd not readable by user.
/dev/sdd1 not readable by user.
/dev/sdd2 not readable by user.

--- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/vg1-root ro quiet

--- grub2:
insmod raid
set root='(md0)'
insmod raid
set root='(md0)'
	insmod raid
	set root='(md0)'
	linux	/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/vg1-root ro  quiet
	insmod raid
	set root='(md0)'
	linux	/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/vg1-root ro single 

--- grub legacy:
kernel		/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/vg1-root ro quiet
kernel		/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/vg1-root ro single
kernel		/vmlinuz-2.6.26-2-amd64 root=/dev/mapper/vg1-root ro quiet
kernel		/vmlinuz-2.6.26-2-amd64 root=/dev/mapper/vg1-root ro single

--- udev:
ii  udev           164-3          /dev/ and hotplug management daemon
4a574fcd059040d33ea18a8aa605a184  /lib/udev/rules.d/64-md-raid.rules

--- /dev:
brw-rw---- 1 root disk 9, 0 Mar 16 00:18 /dev/md0
brw-rw---- 1 root disk 9, 1 Mar 16 00:18 /dev/md1

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808606 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808606-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808606-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808611 -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808611-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808611-part2 -> ../../sdc2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808612 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808612-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJ1KS808612-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJDWZ435707 -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJDWZ435707-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 ata-SAMSUNG_HD154UI_S1XWJDWZ435707-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Mar 15 21:59 dm-name-vg1-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 Mar 15 21:59 dm-name-vg1-swap -> ../../dm-1
lrwxrwxrwx 1 root root 10 Mar 15 21:59 dm-uuid-LVM-glAd3Dvk5r4Ht2hQQn1GYP3S2Xeeo32iHWo818gJvnYbi5cAGEmCjf9wcTtnjyT9 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Mar 15 21:59 dm-uuid-LVM-glAd3Dvk5r4Ht2hQQn1GYP3S2Xeeo32izsgFIeWt2d0jnybrujrI0y4utlbSDCF3 -> ../../dm-1
lrwxrwxrwx 1 root root  9 Mar 16 00:18 md-uuid-71d79e91:0f681e79:f47eff92:c2dced8e -> ../../md0
lrwxrwxrwx 1 root root  9 Mar 16 00:18 md-uuid-9545f3bd:dc53c061:f47eff92:c2dced8e -> ../../md1
lrwxrwxrwx 1 root root  9 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808606 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808606-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808606-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808611 -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808611-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808611-part2 -> ../../sdc2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808612 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808612-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJ1KS808612-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJDWZ435707 -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJDWZ435707-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 scsi-SATA_SAMSUNG_HD154UIS1XWJDWZ435707-part2 -> ../../sdd2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 wwn-0x50024e9001f29a63 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e9001f29a63-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e9001f29a63-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 wwn-0x50024e9001f29a8c -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e9001f29a8c-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e9001f29a8c-part2 -> ../../sdc2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 wwn-0x50024e9001f29a93 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e9001f29a93-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e9001f29a93-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 wwn-0x50024e90036a279b -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e90036a279b-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 wwn-0x50024e90036a279b-part2 -> ../../sdd2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Mar 15 22:00 pci-0000:00:06.0-scsi-0:0:0:0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Mar 15 22:00 pci-0000:00:08.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 pci-0000:00:08.0-scsi-1:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.0-scsi-1:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.0-scsi-1:0:0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 pci-0000:00:08.1-scsi-0:0:0:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.1-scsi-0:0:0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.1-scsi-0:0:0:0-part2 -> ../../sdc2
lrwxrwxrwx 1 root root  9 Mar 15 22:00 pci-0000:00:08.1-scsi-1:0:0:0 -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.1-scsi-1:0:0:0-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Mar 15 22:00 pci-0000:00:08.1-scsi-1:0:0:0-part2 -> ../../sdd2

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root  9 Mar 16 00:18 22a4a388-efb1-4e2c-ad86-644c90eac000 -> ../../md0
lrwxrwxrwx 1 root root 10 Mar 15 21:59 5d2946c0-8294-49a5-a086-3d72f43fa7af -> ../../dm-0

/dev/md:
total 0

Auto-generated on Sun, 03 Apr 2011 19:33:14 +0200
by mdadm bugscript 3.1.4-1+8efb9d1

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mdadm depends on:
ii  debconf                 1.5.36.1         Debian configuration management sy
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  makedev                 2.3.1-89         creates device files in /dev
ii  udev                    164-3            /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  exim4-daemon-light [mail-tran 4.72-6     lightweight Exim MTA (v4) daemon
ii  module-init-tools             3.12-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: 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





More information about the pkg-mdadm-devel mailing list