Skip to contentSkip to conversation

update HPE MSA builtin config

PATCH In review Benjamin Marzinski 2 participants 6 messages Apr 29, 2022 – May 3, 2022 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 update HPE MSA builtin config

Make the config better align to MSA 4th, 5th and 6th Generation systems.

---
 libmultipath/hwtable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libmultipath/hwtable.c +2 -2
index 0e1c0a41..0f0795c3 100644
@@ -182,8 +182,8 @@ static struct hwentry default_hw[] = {
 	},
 	{
 		/* MSA 1040, 1050, 1060, 2040, 2050 and 2060 families */
-		.vendor        = "HP",
-		.product       = "MSA [12]0[456]0 SA[NS]",
+		.vendor        = "(HP|HPE)",
+		.product       = "MSA [12]0[456]0 (SAN|SAS|FC|iSCSI)",
 		.pgpolicy      = GROUP_BY_PRIO,
 		.pgfailback    = -FAILBACK_IMMEDIATE,
 		.no_path_retry = 18,
Signature · 6 lines
2.17.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
#1 lore raw
Quoted 14 lines · Benjamin Marzinski

Make the config better align to MSA 4th, 5th and 6th Generation systems.

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

 1 file changed, 2 insertions(+), 2 deletions(-)
libmultipath/hwtable.c +0 -0
index 0e1c0a41..0f0795c3 100644

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

Quoted 7 lines
libmultipath/hwtable.c +1 -2
@@ -182,8 +182,8 @@ static struct hwentry default_hw[] = {
         },
         {
                 /* MSA 1040, 1050, 1060, 2040, 2050 and 2060 families
 */
-               .vendor        = "HP",
-               .product       = "MSA [12]0[456]0 SA[NS]",
+               .vendor        = "(HP|HPE)",

This changes nothing unless you use "^(HP|HPE)$", as our regex matching is by substring.

Regards,
Martin

Quoted 5 lines
libmultipath/hwtable.c +1 -0
+               .product       = "MSA [12]0[456]0
 (SAN|SAS|FC|iSCSI)",
                 .pgpolicy      = GROUP_BY_PRIO,

                .pgfailback    = -FAILBACK_IMMEDIATE, .no_path_retry = 18,

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

author maintainer
#2 lore raw
Quoted 10 lines · Martin Wilck
Quoted 9 lines · Benjamin Marzinski

Make the config better align to MSA 4th, 5th and 6th Generation systems.

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

 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 15 lines

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

Quoted 12 lines
libmultipath/hwtable.c +1 -2
index 0e1c0a41..0f0795c3 100644
@@ -182,8 +182,8 @@ static struct hwentry default_hw[] = {
         },
         {
                 /* MSA 1040, 1050, 1060, 2040, 2050 and 2060 families
 */
-               .vendor        = "HP",
-               .product       = "MSA [12]0[456]0 SA[NS]",
+               .vendor        = "(HP|HPE)",

This changes nothing unless you use "^(HP|HPE)$", as our regex matching is by substring.

Fair enough. I'm just passing along the config I got. I'm not sure if they what it to be more immediately obvious to people looking at the configs that this applies to their device (which could have a vendor string of "HPE"). I'll leave it to HP to decide what, if anything, they want to change here.

-Ben

Quoted 10 lines

Regards,
Martin

Quoted 5 lines
libmultipath/hwtable.c +1 -0
+               .product       = "MSA [12]0[456]0
 (SAN|SAS|FC|iSCSI)",
                 .pgpolicy      = GROUP_BY_PRIO,

                .pgfailback    = -FAILBACK_IMMEDIATE, .no_path_retry = 18,

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

author maintainer
#3 lore raw
Quoted 27 lines · Benjamin Marzinski
Quoted 10 lines · Martin Wilck
Quoted 9 lines · Benjamin Marzinski

Make the config better align to MSA 4th, 5th and 6th Generation systems.

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

 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 15 lines

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

Quoted 12 lines
libmultipath/hwtable.c +1 -2
index 0e1c0a41..0f0795c3 100644
@@ -182,8 +182,8 @@ static struct hwentry default_hw[] = {
         },
         {
                 /* MSA 1040, 1050, 1060, 2040, 2050 and 2060 families
 */
-               .vendor        = "HP",
-               .product       = "MSA [12]0[456]0 SA[NS]",
+               .vendor        = "(HP|HPE)",

This changes nothing unless you use "^(HP|HPE)$", as our regex matching is by substring.

Quoted 5 lines

Fair enough. I'm just passing along the config I got. I'm not sure if they what it to be more immediately obvious to people looking at the configs that this applies to their device (which could have a vendor string of "HPE"). I'll leave it to HP to decide what, if anything, they want to change here.

I've talked to HP, and they would like to keep (HP|HPE), since they feel that it's more obvious to readers. They are fine with whatever anchors we feel should be added to the regular expression. I personally don't think it matters much. Most of our vendor strings are unanchored and since the product string must also match, it seems unlikely to cause issues.

Do you have a strong feeling on this? Otherwise, I'm fine with the config as they gave it to me.

-Ben

Quoted 13 lines

-Ben

Quoted 10 lines

Regards,
Martin

Quoted 5 lines
libmultipath/hwtable.c +1 -0
+               .product       = "MSA [12]0[456]0
 (SAN|SAS|FC|iSCSI)",
                 .pgpolicy      = GROUP_BY_PRIO,

                .pgfailback    = -FAILBACK_IMMEDIATE, .no_path_retry = 18,

Quoted 4 lines

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

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