Hi, mdadm 2.5.2-7 recently hit testing. Among the new features is checkarray, a script that checks the parity information of redundant arrays (RAID 3,4,5,6).
I designed it to be run shortly after midnight on the first Sunday of each month. Unfortunately, I misunderstood cron, and as a result, the script will be run *every* Sunday, and also every single one of the first seven days of each month. See #380425. With 1 August 2006 coming up tomorrow, you may want to take precautions: either upgrade to 2.5.2-8, which is currently in unstable (and soon to be replaced by 2.5.2-9), or simply change the file /etc/cron.d/mdadm with the attached patch: # save attachment to /tmp/mdadm.cron.patch patch /etc/cron.d/mdadm < /tmp/mdadm.cron.patch I don't think it's really a problem if the parity check runs too often, but it can cause performance problems, and it is extra strain on your disks... Sorry for the inconvenience. -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system "in the figure of the president, george w. bush, the incompetence, stupidity, and sheer inhumanity that characterize so much of america's money-mad corporate elite find their quintessentially repulsive expression." -- journalist, aftermath of katrina
Index: mdadm.cron.d =================================================================== --- mdadm.cron.d (revision 4) +++ mdadm.cron.d (revision 36) @@ -5,5 +5,8 @@ # distributed under the terms of the Artistic Licence. # -# by default, run at 01:06 on the first Sunday of each month. -6 1 1-7 * 7 root [ -x /usr/share/mdadm/checkarray ] && /usr/share/mdadm/checkarray --cron --all --quiet +# By default, run at 01:06 on the every Sunday, but do nothing unless the day +# of the month is less than or equal to 7. Thus, only run on the first Sunday +# of each month. crontab(5) sucks, unfortunately, so therefore this hack +# (see #380425). +6 1 * * 0 root [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -le 7 ] && /usr/share/mdadm/checkarray --cron --all --quiet
signature.asc
Description: Digital signature (GPG/PGP)