diff mbox series

libmultipath: stop PURE FlashArray from detecting priority

Message ID 20240131224556.84931-1-brian@purestorage.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series libmultipath: stop PURE FlashArray from detecting priority | expand

Commit Message

Brian Bunker Jan. 31, 2024, 10:45 p.m. UTC
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'.

Signed-off-by: Brian Bunker <brian@purestorage.com>
---
 libmultipath/hwtable.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin Wilck Feb. 1, 2024, 7:47 a.m. UTC | #1
On Wed, 2024-01-31 at 14:45 -0800, Brian Bunker wrote:
> 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'.
> 
> Signed-off-by: Brian Bunker <brian@purestorage.com>

Reviewed-by: Martin Wilck <mwilck@suse.com>

> ---
>  libmultipath/hwtable.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
> index ae6aac79..715f0fd6 100644
> --- a/libmultipath/hwtable.c
> +++ b/libmultipath/hwtable.c
> @@ -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,
>  	},
diff mbox series

Patch

diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index ae6aac79..715f0fd6 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -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,
 	},