Skip to contentSkip to conversation

multipath-tools: change default failback from manual to immediate

PATCH In review Xose Vazquez Perez 2 participants 6 messages Jul 11, 2016 – Aug 1, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 multipath-tools: change default failback from manual to immediate

Default value is: manual

      1                 .pgfailback    = 15,
      2                 .pgfailback    = 30,
     24                 .pgfailback    = FAILBACK_UNDEF,
     50                 .pgfailback    = -FAILBACK_IMMEDIATE,

manual is not used by any device.

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h    |  2 +-
 libmultipath/hwtable.c     | 50 ----------------------------------------------
 multipath/multipath.conf.5 |  2 +-
 3 files changed, 2 insertions(+), 52 deletions(-)
libmultipath/defaults.h +1 -1
index dd6a24b..d7d7dcb 100644
@@ -8,7 +8,7 @@
 #define DEFAULT_MINIO		1000
 #define DEFAULT_MINIO_RQ	1
 #define DEFAULT_PGPOLICY	FAILOVER
-#define DEFAULT_FAILBACK	-FAILBACK_MANUAL
+#define DEFAULT_FAILBACK	-FAILBACK_IMMEDIATE
 #define DEFAULT_RR_WEIGHT	RR_WEIGHT_NONE
 #define DEFAULT_NO_PATH_RETRY	NO_PATH_RETRY_UNDEF
 #define DEFAULT_VERBOSITY	2
libmultipath/hwtable.c +0 -50

350 lines not on this page · raw message

multipath/multipath.conf.5 +1 -1
index 1da2de1..204955c 100644
@@ -385,7 +385,7 @@ another node requested the failover.
 .I values > 0
 Deferred failback (time to defer in seconds).
 .TP
-Default value is: \fBmanual\fR
+Default value is: \fBimmediate\fR
 .RE
 .TP
 .B  rr_min_io
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 multipath-tools: change default path_grouping_policy from failover to group_by_prio

Default value is: failover

      5                 .pgpolicy      = GROUP_BY_SERIAL,
     23                 .pgpolicy      = MULTIBUS,
     48                 .pgpolicy      = GROUP_BY_PRIO,

failover is only used by 1 device:
IBM/3303 NVDISK

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h    |  2 +-
 libmultipath/hwtable.c     | 49 +---------------------------------------------
 multipath/multipath.conf.5 |  2 +-
 3 files changed, 3 insertions(+), 50 deletions(-)
libmultipath/defaults.h +1 -1
index d7d7dcb..9de5914 100644
@@ -7,7 +7,7 @@
 #define DEFAULT_HWHANDLER	"0"
 #define DEFAULT_MINIO		1000
 #define DEFAULT_MINIO_RQ	1
-#define DEFAULT_PGPOLICY	FAILOVER
+#define DEFAULT_PGPOLICY	GROUP_BY_PRIO
 #define DEFAULT_FAILBACK	-FAILBACK_IMMEDIATE
 #define DEFAULT_RR_WEIGHT	RR_WEIGHT_NONE
 #define DEFAULT_NO_PATH_RETRY	NO_PATH_RETRY_UNDEF
libmultipath/hwtable.c +1 -48

343 lines not on this page · raw message

multipath/multipath.conf.5 +1 -1
index 204955c..7e0cfd4 100644
@@ -184,7 +184,7 @@ per-multipath option in the configuration file.
 One priority group per target node name. Target node names are fetched
 in \fI/sys/class/fc_transport/target*/node_name\fR.
 .TP
-Default value is: \fBfailover\fR
+Default value is: \fBgroup_by_prio\fR
 .RE
 .TP
 .B uid_attribute
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 2/2] multipath-tools: change default path_grouping_policy from failover to group_by_prio

Quoted 8 lines · Xose Vazquez Perez

Default value is: failover

      5                 .pgpolicy      = GROUP_BY_SERIAL,
     23                 .pgpolicy      = MULTIBUS,
     48                 .pgpolicy      = GROUP_BY_PRIO,

failover is only used by 1 device:
IBM/3303 NVDISK

Quoted 9 lines
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h    |  2 +-
 libmultipath/hwtable.c     | 49 +---------------------------------------------
 multipath/multipath.conf.5 |  2 +-
 3 files changed, 3 insertions(+), 50 deletions(-)

Please reconsider.

'group_by_prio' requires a working prioritizer, which we cannot assume for an unknown device.

To handle this situation properly we should be using 'group_by_prio' as the default is a prioritizer is found and switch to 'failover' for all other cases.

Cheers,

Hannes

Signature · 5 lines
Dr. Hannes Reinecke		   Teamlead Storage & Networking
[email protected]			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
#3 lore raw

Re: [PATCH 2/2] multipath-tools: change default path_grouping_policy from failover to group_by_prio

Quoted 19 lines · Hannes Reinecke
Quoted 8 lines · Xose Vazquez Perez

Default value is: failover

      5                 .pgpolicy      = GROUP_BY_SERIAL,
     23                 .pgpolicy      = MULTIBUS,
     48                 .pgpolicy      = GROUP_BY_PRIO,

failover is only used by 1 device:
IBM/3303 NVDISK

Quoted 9 lines
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h    |  2 +-
 libmultipath/hwtable.c     | 49 +---------------------------------------------
 multipath/multipath.conf.5 |  2 +-
 3 files changed, 3 insertions(+), 50 deletions(-)
Quoted 1 line

Please reconsider.

It was done to minimize the number of options in hwtable.c Also the output of the multipathd configuration is clearer, and it makes easier to find misconfigured devices and attributes with weird values.

Quoted 2 lines

'group_by_prio' requires a working prioritizer, which we cannot assume for an unknown device.

I don't think that anyone can expect that a minimal config could work automagically for the first time, with something like this:

devices {
	device {
		vendor  = "AUTOMATIC"
		product = "FORTHEPEOPLE"
	}
}

I do prefer a minimal set of options than a false automagical config.

#4 lore raw
In reply to Xose Vazquez Perez
Quoted 8 lines · Xose Vazquez Perez

Default value is: manual

      1                 .pgfailback    = 15,
      2                 .pgfailback    = 30,
     24                 .pgfailback    = FAILBACK_UNDEF,
     50                 .pgfailback    = -FAILBACK_IMMEDIATE,

manual is not used by any device.

Quoted 9 lines
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h    |  2 +-
 libmultipath/hwtable.c     | 50 ----------------------------------------------
 multipath/multipath.conf.5 |  2 +-
 3 files changed, 2 insertions(+), 52 deletions(-)

Please revert.

'immediate' fallback only makes sense if the device has a working prioritizer _and_ supports a 'preferred path'.
None of which can be assumed for an unknown device, so this patch will break automatic configuration.

Cheers,

Hannes

Signature · 5 lines
Dr. Hannes Reinecke		   Teamlead Storage & Networking
[email protected]			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
#5 lore raw
Quoted 19 lines · Hannes Reinecke
Quoted 8 lines · Xose Vazquez Perez

Default value is: manual

      1                 .pgfailback    = 15,
      2                 .pgfailback    = 30,
     24                 .pgfailback    = FAILBACK_UNDEF,
     50                 .pgfailback    = -FAILBACK_IMMEDIATE,

manual is not used by any device.

Quoted 9 lines
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h    |  2 +-
 libmultipath/hwtable.c     | 50 ----------------------------------------------
 multipath/multipath.conf.5 |  2 +-
 3 files changed, 2 insertions(+), 52 deletions(-)
Quoted 2 lines

'immediate' fallback only makes sense if the device has a working prioritizer _and_ supports a 'preferred path'.

Then there are, at least, seven misconfigured devices.

What devices have support for referred_path?

Based on: guess???
PRIO_ALUA - YES
PRIO_CONST - NO
PRIO_EMC - YES
PRIO_HDS - YES
PRIO_HP_SW - NO
PRIO_ONTAP - YES
PRIO_RDAC - YES

Is there a hint anywhere?

Quoted 2 lines

None of which can be assumed for an unknown device, so this patch will break automatic configuration.

As I said in my previous e-mail I don't believe in magic. But this is up to you(plural: Christophe, Hannes, Benjamin, ...)