Bug#462478: mdadm: ajusted logcheck rules to follow kernel changes
Frédéric Brière
fbriere at fbriere.net
Fri Jan 25 04:33:23 UTC 2008
Package: mdadm
Version: 2.6.4-1
Severity: normal
Tags: patch
Here's a patch to bring the logcheck rules in sync with the current
kernel, while keeping support for 2.6.18. (I pre-emptively made that
superfluous "_guaranteed_" space optional, in case it gets fixed.)
-- Package-specific info:
--- 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)
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 /boot type ext3 (rw)
/dev/mapper/vg0-home on /home type ext3 (rw)
/dev/hde4 on /home/video type ext3 (rw)
/dev/hdc on /media/cdrecorder type iso9660 (ro,noexec,nosuid,nodev,user=fbriere)
--- 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=3c3ab14a:5c534cc9:d3e18d48:ee0f5328
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=34cd6a69:45f169bf:9db004dc:98a3cd2c
ARRAY /dev/md2 level=raid1 num-devices=1 UUID=c2a032c9:727b1dd3:d164b76c:a2dc5503
--- /proc/mdstat:
Personalities : [raid1]
md2 : active raid1 hde3[0]
58596992 blocks [1/1] [U]
md1 : active raid1 hde2[0]
78022144 blocks [2/1] [U_]
md0 : active raid1 hde1[0] hdg1[1]
128448 blocks [2/2] [UU]
unused devices: <none>
--- /proc/partitions:
major minor #blocks name
33 0 195360984 hde
33 1 128519 hde1
33 2 78027705 hde2
33 3 58597087 hde3
33 4 58605120 hde4
34 0 78150744 hdg
34 1 128519 hdg1
34 2 78022224 hdg2
9 0 128448 md0
9 1 78022144 md1
9 2 58596992 md2
253 0 58593280 dm-0
253 1 15728640 dm-1
253 2 61771776 dm-2
253 3 520192 dm-3
--- initrd.img-2.6.18:
28651 blocks
lib/modules/2.6.18/kernel/drivers/md/linear.ko
lib/modules/2.6.18/kernel/drivers/md/dm-crypt.ko
lib/modules/2.6.18/kernel/drivers/md/md-mod.ko
lib/modules/2.6.18/kernel/drivers/md/multipath.ko
lib/modules/2.6.18/kernel/drivers/md/raid456.ko
lib/modules/2.6.18/kernel/drivers/md/dm-mod.ko
lib/modules/2.6.18/kernel/drivers/md/raid0.ko
lib/modules/2.6.18/kernel/drivers/md/dm-snapshot.ko
lib/modules/2.6.18/kernel/drivers/md/raid1.ko
lib/modules/2.6.18/kernel/drivers/md/dm-mirror.ko
lib/modules/2.6.18/kernel/drivers/md/xor.ko
lib/modules/2.6.18/kernel/drivers/md/raid10.ko
etc/mdadm
etc/mdadm/mdadm.conf
sbin/mdadm
scripts/local-top/mdadm
--- /proc/modules:
dm_crypt 11080 0 - Live 0xd8c2f000
dm_mirror 19316 0 - Live 0xd89ec000
dm_snapshot 15648 0 - Live 0xd89d2000
dm_mod 50528 11 dm_crypt,dm_mirror,dm_snapshot, Live 0xd89fd000
raid1 21184 3 - Live 0xd89cb000
md_mod 70484 4 raid1, Live 0xd89d9000
--- /var/log/syslog:
--- volume detail:
--- /proc/cmdline
auto BOOT_IMAGE=Linux ro root=fd01
--- lilo:
root=/dev/vg0/root
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (1001, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18 (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.18 Debian configuration management sy
ii libc6 2.7-6 GNU C Library: Shared libraries
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip
ii makedev 2.3.1-84 creates device files in /dev
ii udev 0.114-2 /dev/ and hotplug management daemo
Versions of packages mdadm recommends:
ii module-init-tools 3.3-pre11-4 tools for managing Linux kernel mo
ii postfix [mail-transport-agen 2.4.6-4 High-performance mail transport ag
-- debconf information excluded
-------------- next part --------------
--- /tmp/_/mdadm-2.6.4/debian/mdadm.logcheck.ignore.server 2008-01-24 20:56:24.000000000 -0500
+++ ./mdadm.logcheck.ignore.server 2008-01-24 22:29:11.000000000 -0500
@@ -4,11 +4,12 @@
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: md[[:digit:]]+ still in use\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: cannot remove active disk [[:alnum:]]+ from md[[:digit:]]+ \.\.\. ?$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: raid([01456]|456|10) personality registered for level ([01456]|10)$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: syncing RAID array md[[:digit:]]+$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: md[[:digit:]]+: sync done\.$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: minimum _guaranteed_ reconstruction speed: [[:digit:]]+ KB/sec/disc\.$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: using maximum available idle IO bandwidth \(but not more than [[:digit:]]+ KB/sec\) for reconstruction\.$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: delaying resync of md[[:digit:]]+ until md[[:digit:]]+ has finished resync \(they share one or more physical units\)$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: (data-check|requested-resync|resync|reshape|recovery) of RAID array md[[:digit:]]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: resuming (data-check|requested-resync|resync|reshape|recovery) of md[[:digit:]]+ from checkpoint\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: md[[:digit:]]+: (data-check|requested-resync|resync|reshape|recovery) done\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: minimum _guaranteed_ ?speed: [[:digit:]]+ KB/sec/disk\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: using maximum available idle IO bandwidth \(but not more than [[:digit:]]+ KB/sec\) for (data-check|requested-resync|resync|reshape|recovery)\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: delaying (data-check|requested-resync|resync|reshape|recovery) of md[[:digit:]]+ until md[[:digit:]]+ has finished \(they share one or more physical units\)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: using [[:digit:]]+k window, over a total of [[:digit:]]+ blocks\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: (un)?bind<[^>]+>$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: md: export_rdev\([^)]+\)$
More information about the pkg-mdadm-devel
mailing list