Skip to contentSkip to conversation

multipath-tools: add NVME/Huawei-XSG1 to hwtable

PATCH Superseded Xose Vazquez Perez 2 participants 2 messages Mar 25, 2021 – Mar 26, 2021 Device mapper

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: add NVME/Huawei-XSG1 to hwtable

Info from: https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100154490&partNo=6001&mid=SUPE_DOC&_t=1612885603000

Cc Zou Ming <[email protected]>
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
---
 libmultipath/hwtable.c | 9 +++++++++
 1 file changed, 9 insertions(+)
libmultipath/hwtable.c +9 -0
index 58fa7387..7923abba 100644
@@ -1084,6 +1084,15 @@ static struct hwentry default_hw[] = {
 		.pgpolicy      = GROUP_BY_PRIO,
 		.prio_name     = PRIO_ALUA,
 	},
+	{
+		/* OceanStor NVMe */
+		.vendor        = "NVME",
+		.product       = "Huawei-XSG1",
+		.pgpolicy      = MULTIBUS,
+		.checker_name  = DIRECTIO,
+		.retain_hwhandler = RETAIN_HWHANDLER_OFF,
+		.no_path_retry = 12,
+	},
 	/*
 	 * Kove
 	 */
Signature · 6 lines
2.30.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
#1 lore raw
Quoted 17 lines · Xose Vazquez Perez

Info from:
https://download.huawei.com/edownload/e/download.do?actionFlag=download&nid=EDOC1100154490&partNo=6001&mid=SUPE_DOC&_t=1612885603000

Cc Zou Ming <[email protected]>
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>

---
 libmultipath/hwtable.c | 9 +++++++++

 1 file changed, 9 insertions(+)
libmultipath/hwtable.c +0 -0
index 58fa7387..7923abba 100644

libmultipath/hwtable.c static struct hwentry default_hw[] = { · line 1093

Quoted 10 lines
libmultipath/hwtable.c +7 -0
@@ -1084,6 +1084,15 @@ static struct hwentry default_hw[] = {
                 .pgpolicy      = GROUP_BY_PRIO,
                 .prio_name     = PRIO_ALUA,
         },
+       {
+               /* OceanStor NVMe */
+               .vendor        = "NVME",
+               .product       = "Huawei-XSG1",
+               .pgpolicy      = MULTIBUS,
+               .checker_name  = DIRECTIO,
+               .retain_hwhandler = RETAIN_HWHANDLER_OFF,

This is a rather pointless setting, in particular if hardware_handler is not set, and even more so for NVMe. Even for SCSI, no recent kernel will allow changing the hwhandler.

Regards,
Martin

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel