Bug#570315: mdadm: "RebuildXX" logcheck rule no longer matches arbitrary XX numbers

Frédéric Brière fbriere at fbriere.net
Thu Feb 18 00:52:43 UTC 2010


Package: mdadm
Version: 3.1.1-1
Severity: normal
Tags: patch

It would appear that md now generates RebuildXX events for arbitrary
values of XX, instead of multiples of 20.  This adjusts the logcheck
rule consequently.


-- 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!

--- mount output
/dev/mapper/vg0-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)
/dev/mapper/vg0-home on /home type ext3 (rw)
/dev/mapper/vg0-nobak on /home/fbriere/nobak type ext3 (rw)
/dev/mapper/vg1-noraid on /home/fbriere/noraid type ext3 (rw)
/dev/mapper/vg0-oni on /home/oni type crypt (nodev,nosuid)
/dev/mapper/vg1-oni2 on /home/oni/2 type crypt (nodev,nosuid)
/dev/hdc on /media/cdrom1 type iso9660 (ro,noexec,nosuid,nodev,user=fbriere)
fusectl on /sys/fs/fuse/connections type fusectl (rw)

--- 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/md2 UUID=c2a032c9:727b1dd3:2afa2a14:7e11b5d8
ARRAY /dev/md0 UUID=9900cea9:6a368469:2afa2a14:7e11b5d8
ARRAY /dev/md1 UUID=e86dbf11:5b1671f1:2afa2a14:7e11b5d8

# This configuration was auto-generated on Tue, 04 Aug 2009 17:47:03 -0400
# by mkconf 3.0-2

--- /proc/mdstat:
Personalities : [raid1] 
md1 : active raid1 hde2[0] sda2[1]
      195232384 blocks [2/2] [UU]
      
md0 : active raid1 hde1[0] sda1[1]
      128448 blocks [2/2] [UU]
      
md2 : active raid1 sda3[0]
      429770816 blocks [1/1] [U]
      
unused devices: <none>

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

  33        0  195360984 hde
  33        1     128519 hde1
  33        2  195232464 hde2
   8        0  625131864 sda
   8        1     128519 sda1
   8        2  195232464 sda2
   8        3  429770880 sda3
   9        2  429770816 md2
   9        0     128448 md0
   9        1  195232384 md1
 253        0  272482304 dm-0
 253        1  157286400 dm-1
 253        2     499712 dm-2
 253      255    7811072 dm-255
 253        3   15622144 dm-3
 253        4  102219776 dm-4
 253        5   69079040 dm-5
 253        6     499712 dm-6
 253        7   69078012 dm-7
 253        8  157285884 dm-8

--- initrd.img-2.6.29.6:
41735 blocks
62c3e91928aeedb9b9c6f0df22d459d7  ./sbin/mdadm
6b782ae76f866914ec236b2d14b43f24  ./scripts/local-top/mdadm
cf0a5a12bbbbcddc2dfd73d0eebdd474  ./etc/mdadm/mdadm.conf
6cee0527c2a0406a87053e2c3fcbddea  ./lib/modules/2.6.29.6/kernel/drivers/video/console/mdacon.ko
6b279b7d1261871c4fd18fee98897164  ./lib/modules/2.6.29.6/kernel/drivers/md/dm-mod.ko
b442d84b62f3a14193ee839f52ae9b65  ./lib/modules/2.6.29.6/kernel/drivers/md/dm-region-hash.ko
3ef7c9a22177bd4b5eef1fe0466607d3  ./lib/modules/2.6.29.6/kernel/drivers/md/linear.ko
f8db3723ddf6e333f04bf3db0284cacd  ./lib/modules/2.6.29.6/kernel/drivers/md/raid1.ko
53d52feb04d0b6d0e7b74c7bdec7432c  ./lib/modules/2.6.29.6/kernel/drivers/md/dm-snapshot.ko
175a68b69a21134a356ae99f8c850a1f  ./lib/modules/2.6.29.6/kernel/drivers/md/dm-log.ko
8d0090a9de5610a2072480be3acf1025  ./lib/modules/2.6.29.6/kernel/drivers/md/raid456.ko
167fbd9303a4b02a265b6b16524a97b5  ./lib/modules/2.6.29.6/kernel/drivers/md/md-mod.ko
8a90b8bad20e4425cc3884f2faf41d15  ./lib/modules/2.6.29.6/kernel/drivers/md/dm-mirror.ko
ecbb388195903671dcd42d458b729c8f  ./lib/modules/2.6.29.6/kernel/drivers/md/raid10.ko
737382f935134f7c6166a30b381db15e  ./lib/modules/2.6.29.6/kernel/drivers/md/raid0.ko
d0c2ead025cab636384fc8131566e88e  ./lib/modules/2.6.29.6/kernel/drivers/md/dm-crypt.ko
2f93ec7f670e5fbeaf0a93c033aa904b  ./lib/modules/2.6.29.6/kernel/drivers/md/multipath.ko

--- /proc/modules:
dm_crypt 10904 3 - Live 0xf0859000
dm_mod 48088 32 dm_crypt, Live 0xf0d50000
raid1 18168 3 - Live 0xf0c46000
md_mod 73988 4 raid1, Live 0xf0985000

--- /var/log/syslog:

--- volume detail:
/dev/hda is not recognised by mdadm.
/dev/hdc is not recognised by mdadm.
/dev/hde not readable by user.
/dev/hde1 not readable by user.
/dev/hde2 not readable by user.
/dev/sda not readable by user.
/dev/sda1 not readable by user.
/dev/sda2 not readable by user.
/dev/sda3 not readable by user.
/dev/sdb is not recognised by mdadm.
/dev/sdc is not recognised by mdadm.
/dev/sdd is not recognised by mdadm.
/dev/sde is not recognised by mdadm.

--- /proc/cmdline
auto BOOT_IMAGE=Linux ro root=fdff

--- lilo:
root="/dev/vg0/root"

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

--- /dev:
brw-rw---- 1 root disk 9, 0 Dec 23 12:52 /dev/md0
brw-rw---- 1 root disk 9, 1 Dec 23 21:27 /dev/md1
brw-rw---- 1 root disk 9, 2 Dec 23 12:51 /dev/md2

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Dec 23 12:51 ata-ATAPI_DVD_DD_2X16X4X16_ -> ../../hdc
lrwxrwxrwx 1 root root  9 Dec 23 12:51 ata-Pioneer_DVD-ROM_ATAPIModel_DVD-106S_012_ -> ../../hda
lrwxrwxrwx 1 root root  9 Feb 16 20:33 ata-SAMSUNG_HD642JJ_S1AFJQSS101782 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 23 12:51 ata-SAMSUNG_HD642JJ_S1AFJQSS101782-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 23 12:51 ata-SAMSUNG_HD642JJ_S1AFJQSS101782-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 23 12:51 ata-SAMSUNG_HD642JJ_S1AFJQSS101782-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan 16 20:18 ata-SAMSUNG_SP2014N_S088J1FYB02850 -> ../../hde
lrwxrwxrwx 1 root root 10 Dec 23 12:51 ata-SAMSUNG_SP2014N_S088J1FYB02850-part1 -> ../../hde1
lrwxrwxrwx 1 root root 10 Dec 23 12:51 ata-SAMSUNG_SP2014N_S088J1FYB02850-part2 -> ../../hde2
lrwxrwxrwx 1 root root 32 Jan 12 15:34 dm-name-_dev_mapper_vg0_oni -> ../../mapper/_dev_mapper_vg0_oni
lrwxrwxrwx 1 root root 33 Jan 12 15:34 dm-name-_dev_mapper_vg1_oni2 -> ../../mapper/_dev_mapper_vg1_oni2
lrwxrwxrwx 1 root root 17 Dec 23 12:52 dm-name-swap -> ../../mapper/swap
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-name-vg0-home -> ../../mapper/vg0-home
lrwxrwxrwx 1 root root 22 Dec 23 12:51 dm-name-vg0-nobak -> ../../mapper/vg0-nobak
lrwxrwxrwx 1 root root 20 Dec 23 12:51 dm-name-vg0-oni -> ../../mapper/vg0-oni
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-name-vg0-root -> ../../mapper/vg0-root
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-name-vg0-swap -> ../../mapper/vg0-swap
lrwxrwxrwx 1 root root 23 Dec 23 12:51 dm-name-vg1-noraid -> ../../mapper/vg1-noraid
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-name-vg1-oni2 -> ../../mapper/vg1-oni2
lrwxrwxrwx 1 root root 32 Jan 12 15:34 dm-uuid-CRYPT-LUKS1-59e079533344471eb3b52bc3cfc00e6f-_dev_mapper_vg0_oni -> ../../mapper/_dev_mapper_vg0_oni
lrwxrwxrwx 1 root root 33 Jan 12 15:34 dm-uuid-CRYPT-LUKS1-d9f102d50fc943168641307844f7386d-_dev_mapper_vg1_oni2 -> ../../mapper/_dev_mapper_vg1_oni2
lrwxrwxrwx 1 root root 17 Dec 23 12:52 dm-uuid-CRYPT-PLAIN-swap -> ../../mapper/swap
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfQ9wgq5p8hxtbZFuc7Mq4RoVd4j0s1JdW -> ../../mapper/vg0-home
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfUnUJ1l38cpQtDH2myuJA5z3RqViXEpc4 -> ../../mapper/vg0-root
lrwxrwxrwx 1 root root 20 Dec 23 12:51 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfW80yKdf17LipwMz3k9tsDPWPbkpgc9Lg -> ../../mapper/vg0-oni
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfyOtyJbEPRfV7CjTRrXLDzwYb8STngs1s -> ../../mapper/vg0-swap
lrwxrwxrwx 1 root root 22 Dec 23 12:51 dm-uuid-LVM-WYeydQgsAnbdufVkVwFEMy22UVx3QXPfzporhj94BYxqHGU1ssPfrnpie1C0H5Al -> ../../mapper/vg0-nobak
lrwxrwxrwx 1 root root 21 Dec 23 12:51 dm-uuid-LVM-tWfEf2O0CuULdhqBlibbVArq3seoIZogNuzDrXsxw9pE13f1debixpR5E4EGUWT4 -> ../../mapper/vg1-oni2
lrwxrwxrwx 1 root root 23 Dec 23 12:51 dm-uuid-LVM-tWfEf2O0CuULdhqBlibbVArq3seoIZogX8U4G63sWqZedyd284H0ug2GOSm4TzaH -> ../../mapper/vg1-noraid
lrwxrwxrwx 1 root root  9 Dec 23 12:51 md-uuid-9900cea9:6a368469:2afa2a14:7e11b5d8 -> ../../md0
lrwxrwxrwx 1 root root  9 Dec 23 12:51 md-uuid-c2a032c9:727b1dd3:2afa2a14:7e11b5d8 -> ../../md2
lrwxrwxrwx 1 root root  9 Dec 23 12:51 md-uuid-e86dbf11:5b1671f1:2afa2a14:7e11b5d8 -> ../../md1
lrwxrwxrwx 1 root root  9 Feb 16 20:33 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 23 12:51 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 23 12:51 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 23 12:51 scsi-SATA_SAMSUNG_HD642JJS1AFJQSS101782-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan 19 17:30 usb-Generic_STORAGE_DEVICE_79596-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 Jan 19 17:30 usb-Generic_STORAGE_DEVICE_79596-0:1 -> ../../sdc
lrwxrwxrwx 1 root root  9 Jan 19 17:30 usb-Generic_STORAGE_DEVICE_79596-0:2 -> ../../sdd
lrwxrwxrwx 1 root root  9 Jan 19 17:30 usb-Generic_STORAGE_DEVICE_79596-0:3 -> ../../sde
lrwxrwxrwx 1 root root  9 Feb 16 20:33 wwn-0x50000f000b017128 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 23 12:52 wwn-0x50000f000b017128-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 23 12:52 wwn-0x50000f000b017128-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 23 12:52 wwn-0x50000f000b017128-part3 -> ../../sda3

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Dec 23 12:52 pci-0000:00:07.1 -> ../../hdc
lrwxrwxrwx 1 root root  9 Jan 19 17:30 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 Jan 19 17:30 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:1 -> ../../sdc
lrwxrwxrwx 1 root root  9 Jan 19 17:30 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:2 -> ../../sdd
lrwxrwxrwx 1 root root  9 Jan 19 17:30 pci-0000:00:07.3-usb-0:2:1.0-scsi-0:0:0:3 -> ../../sde
lrwxrwxrwx 1 root root  9 Feb 16 20:33 pci-0000:00:09.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 23 12:51 pci-0000:00:09.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 23 12:51 pci-0000:00:09.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 23 12:51 pci-0000:00:09.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan 16 20:18 pci-0000:00:13.0 -> ../../hde
lrwxrwxrwx 1 root root 10 Dec 23 12:51 pci-0000:00:13.0-part1 -> ../../hde1
lrwxrwxrwx 1 root root 10 Dec 23 12:51 pci-0000:00:13.0-part2 -> ../../hde2

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 33 Jan 12 15:34 1ae70967-50c2-4cc2-8246-e65b128de250 -> ../../mapper/_dev_mapper_vg1_oni2
lrwxrwxrwx 1 root root 21 Dec 23 12:51 2c34dfb6-27a1-43dd-9d9b-142cc6ceb013 -> ../../mapper/vg0-home
lrwxrwxrwx 1 root root 23 Dec 23 12:51 2e6de5c4-6192-434d-b359-f311eecf42de -> ../../mapper/vg1-noraid
lrwxrwxrwx 1 root root 22 Dec 23 12:51 3f76f3e0-8887-4dc7-9d9f-864d5bf9cc54 -> ../../mapper/vg0-nobak
lrwxrwxrwx 1 root root 20 Dec 23 12:51 59e07953-3344-471e-b3b5-2bc3cfc00e6f -> ../../mapper/vg0-oni
lrwxrwxrwx 1 root root 32 Jan 12 15:34 76e1413d-a991-4825-baee-47a7983d9272 -> ../../mapper/_dev_mapper_vg0_oni
lrwxrwxrwx 1 root root  9 Dec 23 12:51 8bf48169-69f6-4fe8-baa7-be358bc69443 -> ../../md0
lrwxrwxrwx 1 root root 21 Dec 23 12:51 be321d4d-c54b-4977-b402-3d5c983d05a8 -> ../../mapper/vg0-root
lrwxrwxrwx 1 root root 21 Dec 23 12:51 d9f102d5-0fc9-4316-8641-307844f7386d -> ../../mapper/vg1-oni2

/dev/md:
total 0

Auto-generated on Wed, 17 Feb 2010 19:50:52 -0500
by mdadm bugscript 3.1.1-1

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

Kernel: Linux 2.6.29.6 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mdadm depends on:
ii  debconf                       1.5.28     Debian configuration management sy
ii  libc6                         2.10.2-5   Embedded GNU C Library: Shared lib
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  makedev                       2.3.1-89   creates device files in /dev
ii  udev                          151-1      /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  module-init-tools            3.12~pre1-1 tools for managing Linux kernel mo
ii  postfix [mail-transport-agen 2.6.5-3     High-performance mail transport ag

mdadm suggests no packages.

-- debconf information excluded
-------------- next part --------------
>From e0314ee3dc1c24635cb178fcc00f44da89f6c4d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= <fbriere at fbriere.net>
Date: Wed, 17 Feb 2010 19:48:27 -0500
Subject: [PATCH] Adjusting "RebuildXX" logcheck rule to match any XX number

---
 debian/mdadm.logcheck.ignore.server |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/mdadm.logcheck.ignore.server b/debian/mdadm.logcheck.ignore.server
index cebc025..3d3d5a3 100644
--- a/debian/mdadm.logcheck.ignore.server
+++ b/debian/mdadm.logcheck.ignore.server
@@ -17,7 +17,7 @@
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? RAID([01456]|10) conf printout:$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])?[[:space:]]+---( [wrf]d:[[:digit:]]+){2,3}$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])?[[:space:]]+disk [[:digit:]]+,( wo:[[:digit:]]+,)? o:[[:digit:]]+, dev:[[:alnum:]]+$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ mdadm(\[[[:digit:]]+\])?: Rebuild((Start|Finish)ed|[2468]0) event detected on md device /dev/[-_./[:alnum:]]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ mdadm(\[[[:digit:]]+\])?: Rebuild((Start|Finish)ed|[[:digit:]]+) event detected on md device /dev/[-_./[:alnum:]]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ mdadm(\[[[:digit:]]+\])?: SpareActive event detected on md device /dev/[-_./[:alnum:]]+, component device /dev/[-_./[:alnum:]]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ mdadm(\[[[:digit:]]+\])?: (New|Degraded)Array event detected on md device /dev/[-_./[:alnum:]]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ mdadm(\[[[:digit:]]+\])?: DeviceDisappeared event detected on md device /dev/[-_./[:alnum:]]+$
-- 
1.7.0



More information about the pkg-mdadm-devel mailing list