Skip to contentSkip to conversation

libmultipath: stop PURE FlashArray from detecting priority

PATCH In review Brian Bunker 2 participants 2 messages Jan 31, 2024 – Feb 1, 2024 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libmultipath: stop PURE FlashArray from detecting priority

If 'detect_prio' is set to 'yes', the 'sysfs' prioritizer will be used instead of the 'alua' prioritizer. The 'sysfs' prioritizer can leave paths in the Active/Non-optimized ALUA state after a successful upgrade of a PURE FlashArray. Explicitly use the 'alua' prioritizer instead for PURE FlashArray rather than the default of 'detect_prio' which is 'yes'.

---
 libmultipath/hwtable.c | 1 +
 1 file changed, 1 insertion(+)
libmultipath/hwtable.c +1 -0
index ae6aac79..715f0fd6 100644
@@ -1106,6 +1106,7 @@ static struct hwentry default_hw[] = {
 		.pgfailback    = -FAILBACK_IMMEDIATE,
 		.hwhandler     = "1 alua",
 		.prio_name     = PRIO_ALUA,
+		.detect_prio   = DETECT_PRIO_OFF,
 		.fast_io_fail  = 10,
 		.max_sectors_kb = 4096,
 	},
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Brian Bunker

If 'detect_prio' is set to 'yes', the 'sysfs' prioritizer will be used
instead of the 'alua' prioritizer. The 'sysfs' prioritizer can leave paths in the Active/Non-optimized ALUA state after a successful upgrade of a PURE FlashArray. Explicitly use the 'alua' prioritizer instead for PURE FlashArray rather than the default of 'detect_prio' which is 'yes'.

Quoted 16 lines

---
 libmultipath/hwtable.c | 1 +

 1 file changed, 1 insertion(+)
libmultipath/hwtable.c +1 -0
index ae6aac79..715f0fd6 100644
@@ -1106,6 +1106,7 @@ static struct hwentry default_hw[] = {
  		.pgfailback    = -FAILBACK_IMMEDIATE,
  		.hwhandler     = "1 alua",
  		.prio_name     = PRIO_ALUA,
+		.detect_prio   = DETECT_PRIO_OFF,
  		.fast_io_fail  = 10,
  		.max_sectors_kb = 4096,
  	},