forked from pool/multipath-tools
59 lines
2.2 KiB
Plaintext
59 lines
2.2 KiB
Plaintext
commit 9751659f37b9bf19ece7849e7186f67a6760c31a
|
|
Author: Hannes Reinecke <hare@suse.de>
|
|
Date: Thu Jan 15 12:01:33 2009 +0100
|
|
|
|
Use defaults for dev_loss_tmo and fast_io_fail_tmo
|
|
|
|
We should be using some sensible defaults. So using '10' for
|
|
dev_loss_tmo and '5' for fast_io_fail_tmo.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
diff --git a/libmultipath/config.c b/libmultipath/config.c
|
|
index ea7ad99..58485c6 100644
|
|
--- a/libmultipath/config.c
|
|
+++ b/libmultipath/config.c
|
|
@@ -463,8 +463,8 @@ load_config (char * file)
|
|
conf->dev_type = DEV_NONE;
|
|
conf->minio = 1000;
|
|
conf->max_fds = 0;
|
|
- conf->dev_loss_tmo = 0;
|
|
- conf->fast_io_fail_tmo = 0;
|
|
+ conf->dev_loss_tmo = DEFAULT_DEV_LOSS_TMO;
|
|
+ conf->fast_io_fail_tmo = DEFAULT_FAST_IO_FAIL;
|
|
conf->multipath_dir = set_default(DEFAULT_MULTIPATHDIR);
|
|
|
|
/*
|
|
diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h
|
|
index a943673..4a55ff9 100644
|
|
--- a/libmultipath/defaults.h
|
|
+++ b/libmultipath/defaults.h
|
|
@@ -12,6 +12,8 @@
|
|
#define DEFAULT_PGTIMEOUT -PGTIMEOUT_NONE
|
|
#define DEFAULT_USER_FRIENDLY_NAMES 0
|
|
#define DEFAULT_VERBOSITY 2
|
|
+#define DEFAULT_DEV_LOSS_TMO 10
|
|
+#define DEFAULT_FAST_IO_FAIL 5
|
|
|
|
#define DEFAULT_CHECKINT 5
|
|
#define MAX_CHECKINT(a) (a << 2)
|
|
diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5
|
|
index 926ff69..d29a3b6 100644
|
|
--- a/multipath/multipath.conf.5
|
|
+++ b/multipath/multipath.conf.5
|
|
@@ -265,12 +265,12 @@ The full pathname of the binding file to be used when the user_friendly_names op
|
|
.I /var/lib/multipath/bindings
|
|
.TP
|
|
.B dev_loss_tmo
|
|
-The default dev_loss_tmo setting for an FC remote port in seconds. If an rport has vanished from the fabric all devices on that port will be removed from sysfs after this timeout.
|
|
+The default dev_loss_tmo setting for an FC remote port in seconds. If an rport has vanished from the fabric all devices on that port will be removed from sysfs after this timeout. Default is 10.
|
|
.TP
|
|
.B fast_io_fail_tmo
|
|
The default fast_io_fail_tmo setting for an FC remote port in seconds. If an rport has vanished from the fabric all I/O to the devices on that port will be terminated after this timeout. Should be smaller than
|
|
.B dev_loss_tmo
|
|
-setting.
|
|
+setting. Default is 5.
|
|
.
|
|
.SH "blacklist section"
|
|
The
|