Skip to contentSkip to conversation

multipath-tools: remove checker from Huawei OceanStor NVMe

PATCH Superseded Xose Vazquez Perez 2 participants 3 messages Mar 21, 2025 – Sep 5, 2025 Device mapper

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: remove checker from Huawei OceanStor NVMe

A keep alive timer is implemented in the NVMe-oF protocol by default, which acts like a path checker.
Therefore, change path_checker to default, "none" for NVMe arrays.

Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
---
 libmultipath/hwtable.c | 1 -
 1 file changed, 1 deletion(-)
libmultipath/hwtable.c +0 -1
index cf39a50d..862bfdaa 100644
@@ -1100,7 +1100,6 @@ static struct hwentry default_hw[] = {
 		/* OceanStor NVMe */
 		.vendor        = "NVM[eE]",
 		.product       = "Huawei-XSG1",
-		.checker_name  = DIRECTIO,
 		.no_path_retry = 12,
 	},
 	/*
Signature · 1 line
2.47.0
#1 lore raw
Quoted 3 lines · Xose Vazquez Perez

A keep alive timer is implemented in the NVMe-oF protocol by default, which acts like a path checker.
Therefore, change path_checker to default, "none" for NVMe arrays.

I'm not sure about this. NVMe keep-alive will check the connection to the NVMe controller, while our path checker is designed to check the availability of a given NVMe namespace, which is only almost the same.

With the "none" checker, multipathd will simply trust the sysfs state. We have seen issues in the past (e.g. with the LIO target) where even use of the TUR checker resulted in paths being reinstated by multipathd even though they weren't actually usable, causing them to toggle back and forth between UP and DOWN state. I can imagine this happening for NVMe, too.

Does it do any harm to keep the directio checker enabled for NVMe as an extra safety guard?

Most people will be using native kernel multipath for NMVe these days. I consider dm-multipath on NVMe as a feature in maintenance mode, and I'd prefer applying only necessary bug fixes in the area.

Thanks,
Martin

Quoted 22 lines
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>

---
 libmultipath/hwtable.c | 1 -

 1 file changed, 1 deletion(-)
libmultipath/hwtable.c +0 -1
index cf39a50d..862bfdaa 100644
@@ -1100,7 +1100,6 @@ static struct hwentry default_hw[] = {
  		/* OceanStor NVMe */
  		.vendor        = "NVM[eE]",
  		.product       = "Huawei-XSG1",
-		.checker_name  = DIRECTIO,
  		.no_path_retry = 12,
  	},
  	/*
#2 lore raw
Quoted 15 lines · Martin Wilck
Quoted 3 lines · Xose Vazquez Perez

A keep alive timer is implemented in the NVMe-oF protocol by default, which acts like a path checker.
Therefore, change path_checker to default, "none" for NVMe arrays.

I'm not sure about this. NVMe keep-alive will check the connection to the NVMe controller, while our path checker is designed to check the availability of a given NVMe namespace, which is only almost the same.

With the "none" checker, multipathd will simply trust the sysfs state. We have seen issues in the past (e.g. with the LIO target) where even use of the TUR checker resulted in paths being reinstated by multipathd even though they weren't actually usable, causing them to toggle back and forth between UP and DOWN state. I can imagine this happening for NVMe, too.

Quoted 6 lines

Does it do any harm to keep the directio checker enabled for NVMe as an extra safety guard?

Most people will be using native kernel multipath for NMVe these days. I consider dm-multipath on NVMe as a feature in maintenance mode, and I'd prefer applying only necessary bug fixes in the area.

Relevant info to support it at: https://github.com/opensvc/multipath-tools/commit/fbe89f4

Quoted 22 lines
Quoted 21 lines
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
---
  libmultipath/hwtable.c | 1 -
  1 file changed, 1 deletion(-)
libmultipath/hwtable.c +0 -1
index cf39a50d..862bfdaa 100644
@@ -1100,7 +1100,6 @@ static struct hwentry default_hw[] = {
  		/* OceanStor NVMe */
  		.vendor        = "NVM[eE]",
  		.product       = "Huawei-XSG1",
-		.checker_name  = DIRECTIO,
  		.no_path_retry = 12,
  	},
  	/*