On 2016-12-29 15:57, Wols Lists wrote:
On 29/12/16 13:03, jdd wrote:
Le 29/12/2016 à 11:12, Wols Lists a écrit :
There's a script on that web page that alters the linux settings so that you don't have a timeout mismatch. That doesn't stop an apparent hang if you get a problem, though.
this
https://github.com/fukawi2/raid-check/blob/master/raid-check.sh
seems only to check the disk. Do you have a pointer to do what you say?
Look for the script that adjusts the kernel read timeouts.
This? #!/bin/bash for i in /dev/sd? ; do if smartctl -l scterc,70,70 $i > /dev/null ; then echo -n $i " is good " else echo 180 > /sys/block/${i/\/dev\/}/device/timeout echo -n $i " is bad " fi; smartctl -i $i | egrep "(Device Model|Product:)" blockdev --setra 1024 $i done -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)