On Jan 5, 2014, at 6:29 PM, Sulla <su...@gmx.at> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Chris!
> 
> # sudo smartctl -l scterc /dev/sda
> tells me
> SCT Error Recovery Control command not supported
> 
> you're right. the /sys/block/sdX/device/timeout file probably is useless then.

OK there's some confusion. /sys/block/sdX/device/timeout is the SCSI block 
layer timeout - linux itself has a timeout for each command issued to a block 
device, and will reset the link upon timeout being reached. So writing 120 to 
this will cause linux to wait for up to 120 seconds for the drive to respond. 
This is necessary because if there's a bad sector, the drive must report a read 
error in order for the md driver to reconstruct that data from parity. This is 
needed  bothfor effective scrubs, and recovery on read error in normal 
operation. It is not a persistent setting so you'll want to create a start up 
script for it.


Chris Murphy

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to