multipathd: update defaults
PATCH 1/1 multipathd: update defaults
For years I've been telling our customers to use the 'tur' checker as the current default 'directio' will cause spurious path failures under high load.
And for several versions (years, even) the linux kernel has the ability to correctly detect the device handler, so we should be making 'retain_hw_handler' the default.
And if we do this we also want to enable 'detect_prio', to ensure we pick the correct prioritizer.
So this patch updates the default setting to always enable 'retain_hw_handler' and 'detect_prio' and switch to 'tur' as the default path checker.
--- libmultipath/checkers.h | 2 +- libmultipath/defaults.h | 4 ++-- multipath/multipath.conf.5 | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
libmultipath/checkers.h +1 -1
@@ -85,7 +85,7 @@ enum path_check_state {#define READSECTOR0 "readsector0"#define CCISS_TUR "cciss_tur" -#define DEFAULT_CHECKER DIRECTIO +#define DEFAULT_CHECKER TUR#define ASYNC_TIMEOUT_SEC 30
libmultipath/defaults.h +2 -2
@@ -16,8 +16,8 @@#define DEFAULT_FIND_MULTIPATHS 0#define DEFAULT_FAST_IO_FAIL 5#define DEFAULT_DEV_LOSS_TMO 600 -#define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_OFF -#define DEFAULT_DETECT_PRIO DETECT_PRIO_OFF +#define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_ON +#define DEFAULT_DETECT_PRIO DETECT_PRIO_ON#define DEFAULT_DEFERRED_REMOVE DEFERRED_REMOVE_OFF#define DEFAULT_DELAY_CHECKS DELAY_CHECKS_OFF#define DEFAULT_UEVENT_STACKSIZE 256
multipath/multipath.conf.5 +2 -2
@@ -295,7 +295,7 @@ Check the path state for LSI/Engenio/NetApp E-Series RDAC storage controller. .B directio Read the first sector with direct I/O. .TP -Default value is \fIdirectio\fR. +Default value is \fItur\fR. .RE .TP .B failback
@@ -463,7 +463,7 @@ are supported, or the prioritizer if not. If set to .I no , the prioritizer will be selected as usual. Default is -.I no +.I yes .TP .B force_sync If set to
Signature · 1 line
2.6.6
Agreed.
Waiting for Ben's ack before merging.
Quoted 76 lines · Hannes Reinecke
For years I've been telling our customers to use the 'tur' checker as the current default 'directio' will cause spurious path failures under high load.
And for several versions (years, even) the linux kernel has the ability to correctly detect the device handler, so we should be making '
retain_hw_handler' the default.
And if we do this we also want to enable 'detect_prio', to ensure we pick the correct prioritizer.So this patch updates the default setting to always enable '
retain_hw_handler' and 'detect_prio' and switch to 'tur' as the default path checker.Signed-off-by Hannes Reinecke <[email protected]>--- libmultipath/checkers.h | 2 +- libmultipath/defaults.h | 4 ++-- multipath/multipath.conf.5 | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)libmultipath/checkers.h +1
-1@@ -85,7 +85,7 @@ enum path_check_state {#define READSECTOR0 "readsector0"#define CCISS_TUR "cciss_tur" -#define DEFAULT_CHECKER DIRECTIO +#define DEFAULT_CHECKER TUR#define ASYNC_TIMEOUT_SEC 30libmultipath/defaults.h +2
-2@@ -16,8 +16,8 @@#define DEFAULT_FIND_MULTIPATHS 0#define DEFAULT_FAST_IO_FAIL 5#define DEFAULT_DEV_LOSS_TMO 600 -#define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_OFF -#define DEFAULT_DETECT_PRIO DETECT_PRIO_OFF +#define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_ON +#define DEFAULT_DETECT_PRIO DETECT_PRIO_ON#define DEFAULT_DEFERRED_REMOVE DEFERRED_REMOVE_OFF#define DEFAULT_DELAY_CHECKS DELAY_CHECKS_OFF#define DEFAULT_UEVENT_STACKSIZE 256multipath/multipath.conf.5 +0
-0@@ -295,7 +295,7 @@ Check the path state for LSI/Engenio/NetApp E-SeriesRDAC storage controller.
.B directio
Read the first sector with direct I/O.
.TPmultipath/multipath.conf.5 +2
-3-Default value is \fIdirectio\fR. +Default value is \fItur\fR. .RE .TP .B failback@@ -463,7 +463,7 @@ are supported, or the prioritizer if not. If set to .I no , the prioritizer will be selected as usual. Default is -.I no +.I yes .TP .B force_sync If set to --2.6.6
Benjamin Marzinski
maintainerQuoted 10 lines · Hannes Reinecke
For years I've been telling our customers to use the 'tur' checker as the current default 'directio' will cause spurious path failures under high load.
And for several versions (years, even) the linux kernel has the ability to correctly detect the device handler, so we should be making '
retain_hw_handler' the default.
And if we do this we also want to enable 'detect_prio', to ensure we pick the correct prioritizer.
Quoted 3 lines
So this patch updates the default setting to always enable '
retain_hw_handler' and 'detect_prio' and switch to 'tur' as the default path checker.
ACK
-Ben
Quoted 65 lines
Signed-off-by Hannes Reinecke <[email protected]>--- libmultipath/checkers.h | 2 +- libmultipath/defaults.h | 4 ++-- multipath/multipath.conf.5 | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)libmultipath/checkers.h +1
-1@@ -85,7 +85,7 @@ enum path_check_state {#define READSECTOR0 "readsector0"#define CCISS_TUR "cciss_tur" -#define DEFAULT_CHECKER DIRECTIO +#define DEFAULT_CHECKER TUR#define ASYNC_TIMEOUT_SEC 30libmultipath/defaults.h +2
-2@@ -16,8 +16,8 @@#define DEFAULT_FIND_MULTIPATHS 0#define DEFAULT_FAST_IO_FAIL 5#define DEFAULT_DEV_LOSS_TMO 600 -#define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_OFF -#define DEFAULT_DETECT_PRIO DETECT_PRIO_OFF +#define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_ON +#define DEFAULT_DETECT_PRIO DETECT_PRIO_ON#define DEFAULT_DEFERRED_REMOVE DEFERRED_REMOVE_OFF#define DEFAULT_DELAY_CHECKS DELAY_CHECKS_OFF#define DEFAULT_UEVENT_STACKSIZE 256multipath/multipath.conf.5 +2
-2@@ -295,7 +295,7 @@ Check the path state for LSI/Engenio/NetApp E-Series RDAC storage controller. .B directio Read the first sector with direct I/O. .TP -Default value is \fIdirectio\fR. +Default value is \fItur\fR. .RE .TP .B failback@@ -463,7 +463,7 @@ are supported, or the prioritizer if not. If set to .I no , the prioritizer will be selected as usual. Default is -.I no +.I yes .TP .B force_sync If set toSignature · 6 lines
2.6.6 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel