Bug#556610: mdadm: Improvement for MD checkarray CRON
martin f krafft
madduck at debian.org
Mon Sep 6 17:35:33 UTC 2010
also sprach Filip Valder <valder at boukal.netdevelo.cz> [2010.09.06.1759 +0200]:
> Following line is much more better for scheduling "fixed random"
> checks of mdadm raid devices. Otherwise it's very painful for nodes
> connected in a distributed file system to run it each month on 1st
> Sunday at 00:57:
>
> 0 57 * * * root [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -eq $[1+0x`cat /etc/hostname /etc/hosts /etc/network/interfaces | md5sum | cut -c 1-9`%28] ] && /usr/share/mdadm/checkarray --cron --all --quiet
Thank you for this report and the idea.
I have two immediate problems with it:
1. I chose Sunday specifically so as to not interrupt work (which
may well be a false assumption anyway).
However, the new --idle command line option will probably
alleviate this anyway.
2. Your solution works, and it's exactly what the (useless)
/usr/bin/hostid should do. I am a little sceptical about using
a non-standard approach for this.
Anyway, I am leaving it open for comments and consideration.
--
.''`. martin f. krafft <madduck at d.o> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20100906/9f1039cf/attachment.pgp>
More information about the pkg-mdadm-devel
mailing list