]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Add udev-md-raid-safe-timeouts.rules
authorJonathan Underwood <jonathan.underwood@gmail.com>
Fri, 26 Jan 2018 23:54:26 +0000 (23:54 +0000)
committerJes Sorensen <jsorensen@fb.com>
Thu, 1 Feb 2018 14:08:51 +0000 (09:08 -0500)
commitb96c193b9f2a3fad3a8fe534b45a2b9953ad1efb
tree54a3d9045f1bbd17c9e6495cea4d91b8f1af8bc4
parent1db0376585e3aa49f004e5b6475a07d5728a63f9
Add udev-md-raid-safe-timeouts.rules

These udev rules attempt to set a safe kernel controller
timeout for disks containing RAID level 1 or higher
partitions for commodity disks which do not have SCTERC
capability, or do have it but it is disabled.

No attempt is made to change the STCERC settings on devices
which support it.

This attempts to mitigate the problem described here:

    https://raid.wiki.kernel.org/index.php/Timeout_Mismatch
    http://strugglers.net/~andy/blog/2015/11/09/linux-software-raid-and-drive-timeouts/

where the kernel controller may timeout on a read from a
disk after the default timeout of 30 seconds and consequently
cause mdraid to regard the disk as dead and eject it from the
RAID array.

The mitigation is to set the timeout to 180 seconds for disks
which contain a RAID level 1 or higher partition.

Signed-off-by: Jonathan G. Underwood <jonathan.underwood@gmail.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
udev-md-raid-safe-timeouts.rules [new file with mode: 0644]