Skip to contentSkip to conversation

multipath-tools: hwtable updates/additions and version output in multipathc

PATCH In review Xose Vazquez Perez 2 participants 11 messages Nov 25 Device mapper

lore
Share & tools
lore
#0 lore raw

cover multipath-tools: hwtable updates/additions and version output in multipathc

Xose Vazquez Perez (7):
multipath-tools: hwtable: reformat EMC/Celerra entry
multipath-tools: hwtable: clarify FlashSystem(RamSan) NVMe comment
multipath-tools: hwtable: use exact FlashSystem (RamSan) NVMe product ID
multipath-tools: hwtable: add StorONE/S1
multipath-tools: multipathc: print version string on startup
multipath-tools: hwtable: add Zadara VPSA
multipath-tools: multipathd.8.in: restore the original layout

 libmultipath/hwtable.c     | 30 +++++++++++++++++++++++++++---
 multipathd/multipathc.c    |  3 +++
 multipathd/multipathd.8.in |  2 +-
 3 files changed, 31 insertions(+), 4 deletions(-)
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>
Signature · 1 line
2.56.1
#1 lore raw

PATCH 1/7 multipath-tools: hwtable: reformat EMC/Celerra entry

Move product description inside the braces and drop the vendor name.

---
 libmultipath/hwtable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libmultipath/hwtable.c +1 -1
index a37fa7d8..c6bf2d90 100644
@@ -412,8 +412,8 @@ static struct hwentry default_hw[] = {
 		.pgpolicy      = MULTIBUS,
 		.no_path_retry = 30,
 	},
-		// EMC Celerra
 	{
+		// Celerra
 		.vendor        = "EMC",
 		.product       = "Celerra",
 		.pgpolicy      = MULTIBUS,
Signature · 1 line
2.56.1
#2 lore raw

PATCH 2/7 multipath-tools: hwtable: clarify FlashSystem(RamSan) NVMe comment

In reply to Xose Vazquez Perez

Expand the comment for the FlashSystem NVMe entry to specify that NVMe is supported only in FlashSystem 900 models 9840-AE3, 9843-AE3, and 9843-UF3.

Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>
---
 libmultipath/hwtable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libmultipath/hwtable.c +1 -1
index c6bf2d90..2fe80367 100644
@@ -768,7 +768,7 @@ static struct hwentry default_hw[] = {
 		.pgpolicy      = MULTIBUS,
 	},
 	{
-		/* FlashSystem(RamSan) NVMe */
+		// FlashSystem 900 NVMe (RamSan): 9840-AE3, 9843-AE3 and 9843-UF3
 		.vendor        = "NVME",
 		.product       = "FlashSystem",
 		.no_path_retry = NO_PATH_RETRY_FAIL,
Signature · 1 line
2.56.1
#3 lore raw

PATCH 3/7 multipath-tools: hwtable: use exact FlashSystem (RamSan) NVMe product ID

In reply to Xose Vazquez Perez

Change the product pattern to "FlashSystem-9840", which is the identifier reported by the NVMe-compatible models (9840-AE3, 9843-AE3, and 9843-UF3).

Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>
---
 libmultipath/hwtable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libmultipath/hwtable.c +1 -1
index 2fe80367..64bd9c9f 100644
@@ -770,7 +770,7 @@ static struct hwentry default_hw[] = {
 	{
 		// FlashSystem 900 NVMe (RamSan): 9840-AE3, 9843-AE3 and 9843-UF3
 		.vendor        = "NVME",
-		.product       = "FlashSystem",
+		.product       = "FlashSystem-9840",
 		.no_path_retry = NO_PATH_RETRY_FAIL,
 	},
 	{
Signature · 1 line
2.56.1
#4 lore raw

PATCH 4/7 multipath-tools: hwtable: add StorONE/S1

In reply to Xose Vazquez Perez

Config on: https://docs.onestor.com/books/linux/page/linux-nfs-fc-and-iscsi#bkmrk-multipath-configurat

Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>
---
 libmultipath/hwtable.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
libmultipath/hwtable.c +12 -0
index 64bd9c9f..ee3cea5a 100644
@@ -1461,6 +1461,18 @@ static struct hwentry default_hw[] = {
 		.product       = "OpenFlex",
 		.no_path_retry = NO_PATH_RETRY_QUEUE,
 	},
+	/*
+	 * StorONE
+	 */
+	{
+		// S1
+		.vendor        = "STORONE",
+		.product       = "S1",
+		.pgpolicy      = GROUP_BY_PRIO,
+		.prio_name     = PRIO_ALUA,
+		.pgfailback    = -FAILBACK_IMMEDIATE,
+		.no_path_retry = 30,
+	},
 	/*
 	 * EOL
 	 */
Signature · 1 line
2.56.1
#5 lore raw

PATCH 5/7 multipath-tools: multipathc: print version string on startup

In reply to Xose Vazquez Perez
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>
---
 multipathd/multipathc.c | 3 +++
 1 file changed, 3 insertions(+)
multipathd/multipathc.c +3 -0
index cb3d6f87..bec6468d 100644
@@ -16,6 +16,7 @@
 #include "util.h"
 #include "cli.h"
 #include "debug.h"
+#include "version.h"
 
 #ifdef USE_LIBEDIT
 #include <editline/readline.h>
@@ -297,6 +298,8 @@ int main (int argc, const char * const argv[])
 	int tmo = DEFAULT_REPLY_TIMEOUT + 100;
 	char *ep;
 
+	fprintf(stderr, VERSION_STRING);
+
 	if (argc > 2) {
 		fprintf(stderr, "Usage: %s [timeout]\n", argv[0]);
 		return 1;
Signature · 1 line
2.56.1
#6 lore raw

Re: [PATCH 5/7] multipath-tools: multipathc: print version string on startup

Quoted 9 lines · Xose Vazquez Perez
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>

---
 multipathd/multipathc.c | 3 +++

 1 file changed, 3 insertions(+)

What for? I'd prefer multipathd not to be chatty, and I fail to see the benefit of this unsolicited output.

It would be nice to have a "show version" command that would print not only the multipath-tools version but also the versions of relevant other componenents (libdm, kernel dm, kernel mpath). But that's a different thing.

Martin

Signature · 5 lines
Dr. Martin Wilck <[email protected]>
SUSE Software Solutions Germany GmbH, Frankenstr. 146, 90461 Nürnberg,
Germany
Geschäftsführer: Stefan Gaiser, Jochen Jaser, Abhinav Puri (HRB
36809,AG Nürnberg)
#7 lore raw

Re: [PATCH 5/7] multipath-tools: multipathc: print version string on startup

Quoted 7 lines · Martin Wilck

What for? I'd prefer multipathd not to be chatty, and I fail to see the benefit of this unsolicited output.

It would be nice to have a "show version" command that would print not only the multipath-tools version but also the versions of relevant other componenents (libdm, kernel dm, kernel mpath). But that's a different thing.

Since the "help" command isn't implemented either, even though it's documented in the multipathc man page, this is a quick way to show which version is running.

#8 lore raw

Re: [PATCH 5/7] multipath-tools: multipathc: print version string on startup

Quoted 6 lines · Xose Vazquez Perez
Quoted 4 lines · Martin Wilck

What for? I'd prefer multipathd not to be chatty, and I fail to see the
benefit of this unsolicited output.

Quoted 8 lines
Quoted 5 lines

It would be nice to have a "show version" command that would print not
only the multipath-tools version but also the versions of relevant other componenents (libdm, kernel dm, kernel mpath). But that's a different thing.

Since the "help" command isn't implemented either, even though it's documented in the multipathc man page, this is a quick way to show which version is running.

I don't want this startup message, sorry. multipathc may be used in scripts which I don't want to confuse with stderr output which will be pointless in 90% of cases.

Implementtation of "help" would of course be a welcome addition.

Regards,
Martin

Signature · 5 lines
Dr. Martin Wilck <[email protected]>
SUSE Software Solutions Germany GmbH, Frankenstr. 146, 90461 Nürnberg,
Germany
Geschäftsführer: Stefan Gaiser, Jochen Jaser, Abhinav Puri (HRB
36809,AG Nürnberg)
#9 lore raw

PATCH 6/7 multipath-tools: hwtable: add Zadara VPSA

In reply to Xose Vazquez Perez

Config on: https://support.zadarastorage.com/hc/en-us/articles/115003851406-How-To-Configure-Fiber-Channel-Multipath-in-Linux

Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>
---
 libmultipath/hwtable.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
libmultipath/hwtable.c +12 -0
index ee3cea5a..47d5fcb8 100644
@@ -1473,6 +1473,18 @@ static struct hwentry default_hw[] = {
 		.pgfailback    = -FAILBACK_IMMEDIATE,
 		.no_path_retry = 30,
 	},
+	/*
+	 * Zadara
+	 */
+	{
+		// Virtual Private Storage Array
+		.vendor        = "Zadara",
+		.product       = "VPSA",
+		.pgpolicy      = GROUP_BY_PRIO,
+		.prio_name     = PRIO_ALUA,
+		.pgfailback    = -FAILBACK_IMMEDIATE,
+		.no_path_retry = 10,
+	},
 	/*
 	 * EOL
 	 */
Signature · 1 line
2.56.1
#10 lore raw

PATCH 7/7 multipath-tools: multipathd.8.in: restore the original layout

In reply to Xose Vazquez Perez

Add a blank line between paragraphs.

Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM_DEVEL-ML <[email protected]>

---
from :
-kcommand
multipathd executes the given command (see COMMANDS below). If the command contains whitespace or shell special characters, it needs to be quoted like in multipathd -k'show topology'. No whitespace is allowed between the -k and the command string. Commands can also be issued without using -k. In this case, the command string should not be quoted. Command arguments that contain whitespace or special characters still need to be quoted, like in multipathd show paths format "%n %w"

to : (as it was before)
-kcommand
multipathd executes the given command (see COMMANDS below). If the command contains whitespace or shell special characters, it needs to be quoted like in multipathd -k'show topology'. No whitespace is allowed between the -k and the command string.

Commands can also be issued without using -k. In this case, the command string should not be quoted. Command arguments that contain whitespace or special characters still need to be quoted, like in multipathd show paths format "%n %w"

---
 multipathd/multipathd.8.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
multipathd/multipathd.8.in +1 -1
index 461e960d..71228fac 100644
@@ -77,7 +77,7 @@ multipathd executes the given command (see \fBCOMMANDS\fR below). If the
 command contains whitespace or shell special characters, it needs to be quoted
 like in \fImultipathd -k'show topology'\fR. No whitespace is allowed between
 the \fB-k\fR and the command string.
-.br
+.IP
 Commands can also be issued without using \fB-k\fR. In this case, the command
 string should not be quoted. Command arguments that contain whitespace or
 special characters still need to be quoted, like in \fImultipathd show paths
Signature · 1 line
2.56.1