multipath-tools: convert back HUAWEI/XSG1 to multibus
PATCH 1/1 multipath-tools: convert back HUAWEI/XSG1 to multibus
This reverts commit ad206af1716437e84bbd81de6c4da7961d9a41d2
Recommended configs are, info from:
- RHEL https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100113070&partNo=6001&mid=SUPE_DOC&_t=1612885511000
- SLES https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100117892&partNo=6001&mid=SUPE_DOC&_t=1612885538000
- without HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policy multibusno_path_retry 15
- with HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policy group_by_prio
prio alua
failback immediateno_path_retry 15
ALUA is only used with HyperMetro(cluster of two arrays).
--- libmultipath/hwtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
libmultipath/hwtable.c +2 -2
@@ -1081,8 +1081,8 @@ static struct hwentry default_hw[] = {/* OceanStor V3 */ .vendor = "HUAWEI", .product = "XSG1", - .pgpolicy = GROUP_BY_PRIO, - .prio_name = PRIO_ALUA, + .pgpolicy = MULTIBUS, + .no_path_retry = 15, }, {/* OceanStor NVMe */
Signature · 6 lines
2.30.2 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 24 lines · Xose Vazquez Perez
This reverts commit
ad206af1716437e84bbd81de6c4da7961d9a41d2Recommended configs are, info from:
- RHEL
https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100113070&partNo=6001&mid=SUPE_DOC&_t=1612885511000
- SLES
https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100117892&partNo=6001&mid=SUPE_DOC&_t=1612885538000- without HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policymultibusno_path_retry15- with HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policygroup_by_prio
prio alua
failback immediateno_path_retry15ALUA is only used with HyperMetro(cluster of two arrays).
Quoted 7 lines
Cc Zhouweigang (Jack) <[email protected]>Cc Zou Ming <[email protected]>Cc Benjamin Marzinski <[email protected]>Cc Martin Wilck <[email protected]>Cc Christophe Varoqui <[email protected]>Cc DM-DEVEL ML <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>
Forgive me if I'm missing something here, but what is this good for? multipathd detects ALUA support by default.
1 if the device doesn't support ALUA, it falls back to "const" anyway,
in which case "group_by_prio" degenerates to "multibus" - which is exactly what this patch does;
2 if the device supports ALUA, but returns the same ALUA state for
all ports, again "group_by_prio" degenerates to "multibus";
3 if the device supports ALUA and returns different states for
different ports, "group_by_prio" is the best bet anyway.
So why not just use "group_by_prio"?
Martin
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 7 lines · Martin Wilck
Forgive me if I'm missing something here, but what is this good for? multipathd detects ALUA support by default.
1 if the device doesn't support ALUA, it falls back to "const" anyway,
in which case "group_by_prio" degenerates to "multibus" - which is exactly what this patch does;
2 if the device supports ALUA, but returns the same ALUA state for
Quoted 5 lines
all ports, again "group_by_prio" degenerates to "multibus";3 if the device supports ALUA and returns different states for
different ports, "group_by_prio" is the best bet anyway.So why not just use "
group_by_prio"?
You are right, but:
1.- It's the official vendor recommendation, and people trust it blindly
above the multipath-tools setting. Sad but true.
So it's going to be manually replaced by the vendor's config.
2.- It generates an awful warning:
[This is SLES 12SP5 with 4.12.14-122.54-default on x86_64
and multipath-tools-0.7.9+195+suse.16740c5-3.6.1.x86_64]# multipath -ll
Mar 26 18:34:46 | sdi: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdj: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdk: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdl: prio = const (setting: emergency fallback - alua failed) 36a35324100e5x5d408d0526600000001 dm-1 HUAWEI,XSG1 size=10G features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=enabled |- 0:0:4:1 sdi 8:128 active ready running |- 0:0:5:1 sdj 8:144 active ready running |- 1:0:4:1 sdk 8:160 active ready running
`- 1:0:5:1 sdl 8:176 active ready running
No nice, mainly for people without knowledge of mpt internals.
3.- The LUN is blacklisted by Fedora and derivatives(RHEL,CentOS,Oracle,...)
And the installation program is unable to see it, this involves manual intervention. See page 76 of the OceanStor RHEL Guide.
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 17 lines · Xose Vazquez Perez
Quoted 15 lines · Martin Wilck
Forgive me if I'm missing something here, but what is this good for?
multipathd detects ALUA support by default.1 if the device doesn't support ALUA, it falls back to "const" anyway,
in which case "group_by_prio" degenerates to "multibus" - which is
exactly what this patch does;
2 if the device supports ALUA, but returns the same ALUA state for
all ports, again "group_by_prio" degenerates to "multibus"; 3 if the device supports ALUA and returns different states for different ports, "group_by_prio" is the best bet anyway.
Quoted 7 lines
Quoted 1 line
So why not just use "
group_by_prio"?You are right, but:
1.- It's the official vendor recommendation, and people trust it blindly
above the multipath-tools setting. Sad but true. So it's going to be manually replaced by the vendor's config.
Some users are like that, sure. But if that was generally true, we wouldn't need to adapt our defaults, because everyone would copy the configs from the vendor manuals.
Quoted 18 lines
2.- It generates an awful warning:
[This is SLES 12SP5 with 4.12.14-122.54-default on
x86_64and multipath-tools-0.7.9+195+suse.16740c5-3.6.1.x86_64]# multipath -llMar 26 18:34:46 | sdi: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdj: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdk: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdl: prio = const (setting: emergency fallback -alua failed) 36a35324100e5x5d408d0526600000001 dm-1 HUAWEI,XSG1 size=10G features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=enabled
Quoted 6 lines
|- 0:0:4:1 sdi 8:128 active ready running |- 0:0:5:1 sdj 8:144 active ready running |- 1:0:4:1 sdk 8:160 active ready running`- 1:0:5:1 sdl 8:176 active ready running
No nice, mainly for people without knowledge of mpt internals.
The problem is that the prioritizer was explicitly set to "alua". Therefore multipathd warns, because the configured setting couldn't be applied. We could just drop that line, alua would still be selected by the autodetection if it was supported, and the message wouldn't be printed any more otherwise. Setting "multibus" explicitly isn't necessary.
Can we agree on that?
Quoted 7 lines
3.- The LUN is blacklisted by Fedora and
derivatives(RHEL,CentOS,Oracle,...)
And the installation program is unable to see it, this involves manual intervention.
See page 76 of the OceanStor RHEL Guide.
That would be for Ben to fix ;-)
Regards
Martin
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 10 lines · Martin Wilck
Quoted 4 lines · Xose Vazquez Perez
1.- It's the official vendor recommendation, and people trust it blindly
above the multipath-tools setting. Sad but true. So it's going to be manually replaced by the vendor's config.Some users are like that, sure. But if that was generally true, we wouldn't need to adapt our defaults, because everyone would copy the configs from the vendor manuals.
I would like that HUAWEI guys fix their docs. Or much better, make their arrays always work in ALUA mode. I do not see what the problem is. Other vendors do this with A/A arrays.
Quoted 25 lines
Quoted 18 lines
2.- It generates an awful warning:
[This is SLES 12SP5 with 4.12.14-122.54-default on
x86_64and multipath-tools-0.7.9+195+suse.16740c5-3.6.1.x86_64]# multipath -llMar 26 18:34:46 | sdi: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdj: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdk: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdl: prio = const (setting: emergency fallback -alua failed) 36a35324100e5x5d408d0526600000001 dm-1 HUAWEI,XSG1 size=10G features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=enabled
Quoted 6 lines
|- 0:0:4:1 sdi 8:128 active ready running |- 0:0:5:1 sdj 8:144 active ready running |- 1:0:4:1 sdk 8:160 active ready running`- 1:0:5:1 sdl 8:176 active ready running
No nice, mainly for people without knowledge of mpt internals.
Quoted 8 lines
The problem is that the prioritizer was explicitly set to "alua". Therefore multipathd warns, because the configured setting couldn't be applied. We could just drop that line, alua would still be selected by the autodetection if it was supported, and the message wouldn't be printed any more otherwise. Setting "multibus" explicitly isn't necessary.
Can we agree on that?
Something like the patch below?
It's a frankenstein config, and ALUA should only work for kernels >= 4.3
------
From 47c505f853b37c38d847b411fc7ba763c61ad87b Mon Sep 17 00:00:00 2001
From: Xose Vazquez Perez <[email protected]>
Date: Sat, 27 Mar 2021 00:13:57 +0100
Subject: [PATCH] multipath-tools: make HUAWEI/XSG1 config work with alua and multibus
X-Patchwork-Bot: notify
And add recommended no_path_retry and pgfailback values.
Info from:
- RHEL https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100113070&partNo=6001&mid=SUPE_DOC&_t=1612885511000
- SLES https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100117892&partNo=6001&mid=SUPE_DOC&_t=1612885538000
- without HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policy multibusno_path_retry 15
- with HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policy group_by_prio
prio alua
failback immediateno_path_retry 15
ALUA is only used with HyperMetro(cluster of two arrays).
--- libmultipath/hwtable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
libmultipath/hwtable.c +2 -1
@@ -1082,7 +1082,8 @@ static struct hwentry default_hw[] = { .vendor = "HUAWEI", .product = "XSG1", .pgpolicy = GROUP_BY_PRIO, - .prio_name = PRIO_ALUA, + .pgfailback = -FAILBACK_IMMEDIATE, + .no_path_retry = 15, },/* * Kove
Signature · 7 lines
2.30.2 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 58 lines · Xose Vazquez Perez
Quoted 8 lines · Martin Wilck
Quoted 5 lines · Xose Vazquez Perez
1.- It's the official vendor recommendation, and people trust it blindly
above the multipath-tools setting. Sad but true. So it's going to be manually replaced by the vendor's config.Quoted 4 lines
Some users are like that, sure. But if that was generally true, we wouldn't need to adapt our defaults, because everyone would copy the
configs from the vendor manuals.I would like that HUAWEI guys fix their docs. Or much better, make their arrays always work in ALUA mode. I do not see what the problem is. Other vendors do this with A/A arrays.
Quoted 39 lines
Quoted 22 lines
2.- It generates an awful warning:
[This is SLES 12SP5 with 4.12.14-122.54-default on
x86_64and multipath-tools-0.7.9+195+suse.16740c5-3.6.1.x86_64]# multipath -llMar 26 18:34:46 | sdi: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdj: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdk: prio = const (setting: emergency fallback - alua failed) Mar 26 18:34:46 | sdl: prio = const (setting: emergency fallback-
alua failed) 36a35324100e5x5d408d0526600000001 dm-1 HUAWEI,XSG1 size=10G features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=enabledQuoted 7 lines
|- 0:0:4:1 sdi 8:128 active ready running |- 0:0:5:1 sdj 8:144 active ready running |- 1:0:4:1 sdk 8:160 active ready running`- 1:0:5:1 sdl 8:176 active ready running
No nice, mainly for people without knowledge of mpt internals.
The problem is that the prioritizer was explicitly set to "alua". Therefore multipathd warns, because the configured setting couldn't be
applied. We could just drop that line, alua would still be selected by
the autodetection if it was supported, and the message wouldn't be printed any more otherwise. Setting "multibus" explicitly isn't necessary.
Quoted 5 lines
Quoted 1 line
Can we agree on that?
Something like the patch below?
It's a frankenstein config, and ALUA should only work for kernels >= 4.3
Yes. That's good enough IMO. People running older kernels can use the explicit config (and likely have been doing so anyway).
Add a comment explaining the "hypermetro" dependency, perhaps.
Martin
Quoted 51 lines
------
From47c505f853b37c38d847b411fc7ba763c61ad87bMon Sep 17 00:00:00 2001
From: Xose Vazquez Perez <[email protected]>
Date: Sat, 27 Mar 2021 00:13:57 +0100
Subject: [PATCH] multipath-tools: make HUAWEI/XSG1 config work with alua and multibus
X-Patchwork-Bot: notifyAnd add recommended
no_path_retryand pgfailback values.Info from:
- RHEL
https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100113070&partNo=6001&mid=SUPE_DOC&_t=1612885511000
- SLES
https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100117892&partNo=6001&mid=SUPE_DOC&_t=1612885538000- without HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policymultibusno_path_retry15- with HyperMetro:
vendor "HUAWEI"
product "XSG1"path_grouping_policygroup_by_prio
prio alua
failback immediateno_path_retry15ALUA is only used with HyperMetro(cluster of two arrays).
Suggested-by Martin Wilck <[email protected]>Cc Zhouweigang (Jack) <[email protected]>Cc Zou Ming <[email protected]>Cc Benjamin Marzinski <[email protected]>Cc Martin Wilck <[email protected]>Cc Christophe Varoqui <[email protected]>Cc DM-DEVEL ML <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>---
libmultipath/hwtable.c| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)libmultipath/hwtable.c +0
-0
libmultipath/hwtable.c static struct hwentry default_hw[] = { · line 1089
Quoted 9 lines
libmultipath/hwtable.c +2
-1@@ -1082,7 +1082,8 @@ static struct hwentry default_hw[] = { .vendor = "HUAWEI", .product = "XSG1", .pgpolicy = GROUP_BY_PRIO, - .prio_name = PRIO_ALUA, + .pgfailback = -FAILBACK_IMMEDIATE, + .no_path_retry = 15, }, /** Kove
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel