NeilBrown <neilb <at> suse.de> writes: > "maintainers" ? Plural? That would be nice. > Unfortunately there is just the one singular me.... Yes, as Weedy said, I also refered to distro package maintainers. If we can come up here with an udev rule and a script to call, then upstream (you) could include this, and distro maintainers could make smartctl a suggested or recommended package of the mdadm package. I certainly have not understood the whole topic yet, what I just got is, that the script should do something like the following, and I found some implementation below. Evererybody please answer with improved versions if you can. if smartctl tool is available if scterc is disabled /usr/sbin/smartctl -l scterc,70,70 ${DEVNAME} else if screrc is not available echo 180 >/sys/block/${DEVNAME}/device/timeout Found an older implementation that "seems to work fine": http://article.gmane.org/gmane.linux.raid/44566 > > contents of udev rule: > ACTION=="add", SUBSYSTEM=="block", KERNEL=="[sh]d[a-z]", RUN+="/usr/local/bin/settimeout" > > > contents of /usr/local/bin/settimeout: > #!/bin/bash > > [ "${ACTION}" == "add" ] && { > /usr/sbin/smartctl -l scterc,70,70 ${DEVNAME} || echo 180 > /sys/${DEVPATH}/device/timeout > } > > I guess, what is missing, is to connect the HDDs > with a specific "mdadm" event, instead of running > for each HDD. > I'm not sure if this is already possible, since > some "udev" rules for "md" are already existing. Let's get this disaster prevention into mdadm, even if just as important reference experience for solving a more general kernel timeout mismatch problem "symptom of a more generic issue". http://article.gmane.org/gmane.linux.raid/44557 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html