Hi,
mdadm has got a bug[1] which makes it send unnecessary mail every month.
Florian Hinzmann <fh@debian.org> suggested[2] a trivial patch:
root@marvin:~# diff -u /usr/share/mdadm/checkarray.20101209.dist.not-quiet /usr/share/mdadm/checkarray
--- /usr/share/mdadm/checkarray.20101209.dist.not-quiet 2010-09-03 11:11:00.000000000 +0200
+++ /usr/share/mdadm/checkarray 2010-12-09 15:29:38.000000000 +0100
@@ -193,7 +193,7 @@
wait=$((wait - 1))
resync_pid=$(ps -ef | awk -v dev=$array 'BEGIN { pattern = "^\\[" dev "_resync]$" } $8 ~ pattern { print $2 }')
if [ -n "$resync_pid" ]; then
- echo "$PROGNAME: I: selecting $ionice I/O scheduling class for resync of $array." >&2
+ [ $quiet -lt 1 ] && echo "$PROGNAME: I: selecting $ionice I/O scheduling class for resync of $array." >&2
ionice -p "$resync_pid" $arg
break
fi
This would fix the issue in the same way, in which the problem is
addressed in the rest of the code (attached for reference).
The maintainer thinks[3], that it's too late for squeeze now. Is he
right, or would there be a realistic chance to get this really small,
yet very useful patch still into squeeze?
Best regards
Alexander Kurtz
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598957
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598957#19
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598957#29
Attachment:
checkarray
Description: application/shellscript
Attachment:
signature.asc
Description: This is a digitally signed message part