Summary: | sys-fs/mdadm-2.6 huge logging/mailing for no reason | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tomas Synek <tomas.synek> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | cappaberra, earny, fabio, federico.granata, gentoo, help, jeffrey, mattsch, scen, throstur, tiggernews |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 166309 | ||
Attachments: |
patch to mdadm-2.6
patch to ebuild |
Description
Tomas Synek
2007-02-18 10:43:22 UTC
sunny ~ # cat /etc/init.d/mdadm start() { ebegin "Starting mdadm monitor" mdadm --monitor --scan \ --daemonise \ --pid-file /var/run/mdadm.pid \ ${MDADM_OPTS} eend $? } sunny ~ # cat /etc/conf.d/mdadm MDADM_OPTS="--syslog" sunny ~ # cat /etc/mdadm.conf DEVICE /dev/sd[ab][12356] MAILADDR admin-sunny@ok.cvut.cz PROGRAM /usr/sbin/sendmail sunny ~ # cat /proc/mdstat Personalities : [raid0] [raid1] md1 : active raid1 sdb1[1] sda1[0] 128384 blocks [2/2] [UU] md2 : active raid1 sdb2[1] sda2[0] 10000384 blocks [2/2] [UU] md3 : active raid1 sdb3[1] sda3[0] 54998400 blocks [2/2] [UU] md5 : active raid1 sdb5[1] sda5[0] 11944192 blocks [2/2] [UU] md6 : active raid0 sdb6[1] sda6[0] 2152448 blocks 64k chunks unused devices: <none> I'm seeing this too, every 60 seconds: Feb 19 01:15:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:15:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:15:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:15:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md5 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md5 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md5 Feb 19 01:16:22 x2-42 mdadm: SpareActive event detected on md device /dev/md5 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md1 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 Feb 19 01:17:22 x2-42 mdadm: SpareActive event detected on md device /dev/md2 and so on... I'm also using AMD64, though with gentoo-sources-2.6.20. not only amd64: uname -a: Linux cb1 2.6.19-gentoo-r5 #2 SMP PREEMPT Wed Jan 31 12:13:25 CET 2007 i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux part of syslog: Feb 19 13:40:33 localhost mdadm: SpareActive event detected on md device /dev/md0 Feb 19 13:41:33 localhost last message repeated 2 times Feb 19 13:43:33 localhost last message repeated 4 times Seeing the same thing on two i686 boxes. However I am not seeing any problems with email notification. I'm getting the same problem. What the hell is with all this logging on arrays that are working properly? Is this an upstream bug? Is this by design? If so, can we have an option to set the log level? This looks like it's an INFO level log and most likely nothing to be concerned about. I was thinking I could change the level to log at a minimum of WARN but I don't see the option in the docs. Also the log comes from monitoring and depending on what you set for the delay, you will see this message every time the monitor utility does a check. Stopping the monitor daemon stops these messages. Feb 21 00:01:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:01:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:02:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:02:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:03:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:03:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:04:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:04:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:04:20 server mdadm: SpareActive event detected on md device /dev/md3 Feb 21 00:04:20 server mdadm: SpareActive event detected on md device /dev/md3 Feb 21 00:05:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:05:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:06:20 server mdadm: SpareActive event detected on md device /dev/md2 Feb 21 00:06:20 server mdadm: SpareActive event detected on md device /dev/md2 try removing the syslog-updates.patch from the ebuild No, this doesn't help. Downgrading helps... Created attachment 110848 [details, diff]
patch to mdadm-2.6
This patch helps.
Created attachment 110850 [details, diff]
patch to ebuild
Should be fixed in 2.6.1 see http://www.kernel.org/pub/linux/utils/raid/mdadm/ChangeLog (yes, this bug is very annoying , pls bump...) Fixed in CVS. I've been having this very same problem for a long while. I'm running mdadm 2.6.2 now and I checked Monitor.c to see if the patch is included. Apparently it is, but I still get the SpareActive every minute or so in syslog. This is a pair of disks with three RAID1 partitions. The only MD device giving me trouble is my root partition (reiserfs). Swap and boot are not giving me any SpareActive events. Okay, 2.6.3 fixed it for me. |