Skip to contentSkip to conversation

multipath-tools: reorder NVDISK devices

PATCH In review Xose Vazquez Perez 2 participants 3 messages Aug 1, 2019 – Aug 19, 2019 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: reorder NVDISK devices

Otherwise "3303[ ]+NVDISK" is never reached, because "NVDISK" regex takes priority over it.

Cc Brian King <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
---
 libmultipath/hwtable.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
libmultipath/hwtable.c +6 -6
index a06872e..8209554 100644
@@ -696,12 +696,6 @@ static struct hwentry default_hw[] = {
 		.pgpolicy      = MULTIBUS,
 		.no_path_retry = (300 / DEFAULT_CHECKINT),
 	},
-	{
-		/* 3303 NVDISK */
-		.vendor        = "IBM",
-		.product       = "3303[ ]+NVDISK",
-		.no_path_retry = (300 / DEFAULT_CHECKINT),
-	},
 	{
 		/* AIX NVDISK */
 		.vendor        = "AIX",
@@ -712,6 +706,12 @@ static struct hwentry default_hw[] = {
 		.no_path_retry = (300 / DEFAULT_CHECKINT),
 		.prio_name     = PRIO_ALUA,
 	},
+	{
+		/* 3303 NVDISK */
+		.vendor        = "IBM",
+		.product       = "3303[ ]+NVDISK",
+		.no_path_retry = (300 / DEFAULT_CHECKINT),
+	},
         /*
          * Lenovo
          */
Signature · 1 line
2.21.0
#1 lore raw
Quoted 2 lines · Xose Vazquez Perez

Otherwise "3303[ ]+NVDISK" is never reached, because "NVDISK" regex takes priority over it.

Huh? I don't understand why this is necessary. First off, with Martin's hwentry code, all matching hardware entries are used, not just the latest. But second, and more importantly, the AIX NVDISK entry won't ever match the same disks as the IBM 3303[ ]+NVDISK, since they have different vendors. Right?

-Ben

Quoted 46 lines
Cc Brian King <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
---
 libmultipath/hwtable.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
libmultipath/hwtable.c +6 -6
index a06872e..8209554 100644
@@ -696,12 +696,6 @@ static struct hwentry default_hw[] = {
 		.pgpolicy      = MULTIBUS,
 		.no_path_retry = (300 / DEFAULT_CHECKINT),
 	},
-	{
-		/* 3303 NVDISK */
-		.vendor        = "IBM",
-		.product       = "3303[ ]+NVDISK",
-		.no_path_retry = (300 / DEFAULT_CHECKINT),
-	},
 	{
 		/* AIX NVDISK */
 		.vendor        = "AIX",
@@ -712,6 +706,12 @@ static struct hwentry default_hw[] = {
 		.no_path_retry = (300 / DEFAULT_CHECKINT),
 		.prio_name     = PRIO_ALUA,
 	},
+	{
+		/* 3303 NVDISK */
+		.vendor        = "IBM",
+		.product       = "3303[ ]+NVDISK",
+		.no_path_retry = (300 / DEFAULT_CHECKINT),
+	},
         /*
          * Lenovo
          */
Signature · 6 lines
2.21.0

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#2 lore raw
Quoted 9 lines · Benjamin Marzinski
Quoted 2 lines · Xose Vazquez Perez

Otherwise "3303[ ]+NVDISK" is never reached, because "NVDISK" regex takes priority over it.

Huh? I don't understand why this is necessary. First off, with Martin's hwentry code, all matching hardware entries are used, not just the latest. But second, and more importantly, the AIX NVDISK entry won't ever match the same disks as the IBM 3303[ ]+NVDISK, since they have different vendors. Right?

Yes, you are right. I mixed badly IBM-AIX in my head.

I'm sorry for the noise.

Christophe, remove this patch from your queue.

Thanks.

Quoted 46 lines
Quoted 45 lines
Cc Brian King <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
---
 libmultipath/hwtable.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
libmultipath/hwtable.c +6 -6
index a06872e..8209554 100644
@@ -696,12 +696,6 @@ static struct hwentry default_hw[] = {
 		.pgpolicy      = MULTIBUS,
 		.no_path_retry = (300 / DEFAULT_CHECKINT),
 	},
-	{
-		/* 3303 NVDISK */
-		.vendor        = "IBM",
-		.product       = "3303[ ]+NVDISK",
-		.no_path_retry = (300 / DEFAULT_CHECKINT),
-	},
 	{
 		/* AIX NVDISK */
 		.vendor        = "AIX",
@@ -712,6 +706,12 @@ static struct hwentry default_hw[] = {
 		.no_path_retry = (300 / DEFAULT_CHECKINT),
 		.prio_name     = PRIO_ALUA,
 	},
+	{
+		/* 3303 NVDISK */
+		.vendor        = "IBM",
+		.product       = "3303[ ]+NVDISK",
+		.no_path_retry = (300 / DEFAULT_CHECKINT),
+	},
         /*
          * Lenovo
          */
Signature · 6 lines
2.21.0

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