multipath-tools: add new devices to hwtable
cover multipath-tools: add new devices to hwtable
Xose Vazquez Perez (3):
multipath-tools: add Acronis Cyber Infrastructure to hwtable
multipath-tools: add EqualLogic PS to hwtable
multipath-tools: add QSAN to hwtable
libmultipath/hwtable.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)
Signature · 1 line
2.51.0
PATCH 1/3 multipath-tools: add Acronis Cyber Infrastructure to hwtable
--- libmultipath/hwtable.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
libmultipath/hwtable.c +15 -0
@@ -1371,6 +1371,21 @@ static struct hwentry default_hw[] = { .pgpolicy = GROUP_BY_SERIAL, .no_path_retry = 30, }, +/* +* Acronis +*/ + { +// Cyber Infrastructure + .vendor = "VSTORAGE", + .product = "VSTOR-DISK", + .prio_name = PRIO_ALUA, + .pgpolicy = GROUP_BY_NODE_NAME, + .detect_prio = DETECT_PRIO_OFF, + .features = "2 pg_init_retries 50", + .pgfailback = -FAILBACK_FOLLOWOVER, + .flush_on_last_del = FLUSH_ALWAYS, + .no_path_retry = NO_PATH_RETRY_QUEUE, + },/* * EOL */
Signature · 1 line
2.51.0
Benjamin Marzinski
maintainerRe: [PATCH 1/3] multipath-tools: add Acronis Cyber Infrastructure to hwtable
Quoted 21 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]>Signed-off-by Xose Vazquez Perez <[email protected]>--- libmultipath/hwtable.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)libmultipath/hwtable.c +2
-0@@ -1371,6 +1371,21 @@ static struct hwentry default_hw[] = { .pgpolicy = GROUP_BY_SERIAL, .no_path_retry = 30, }, +/* +* Acronis
libmultipath/hwtable.c static struct hwentry default_hw[] = { · line 1385
Quoted 10 lines
libmultipath/hwtable.c +10
-0+*/ + { +// Cyber Infrastructure + .vendor = "VSTORAGE", + .product = "VSTOR-DISK", + .prio_name = PRIO_ALUA, + .pgpolicy = GROUP_BY_NODE_NAME, + .detect_prio = DETECT_PRIO_OFF, + .features = "2 pg_init_retries 50", + .pgfailback = -FAILBACK_FOLLOWOVER,
I'm not sure about the pgfailback setting. the FAILBACK_FOLLOWOVER mode is not something that is really needed for a specific array type. It works like FAILOVER_IMMEDIATE, but it's designed to work so that if multiple nodes are using the same multipath device, and one of them loses access to the highest priority pathgroup but the others don't, multipath won't keep switching pathgroups back and forth. The nodes that can see the higher priority pathgroup won't automatically switch back to it, since they weren't the ones that switched away from it. So the setting is more for a specific use case, and not a specific array type.
On the other hand, it is what the vendor tested, and with a single machine accessing the multipath device, you usually only switch away from the highest priority pathgroup because you lost access to all the paths in it. So it usually won't get stuck on a lower priority pathgroup while a higher priority one is usable, although that could happen.
Thoughts?
-Ben
Quoted 8 lines
libmultipath/hwtable.c +3
-0+ .flush_on_last_del = FLUSH_ALWAYS, + .no_path_retry = NO_PATH_RETRY_QUEUE, + },/* * EOL */ Signature · 1 line
2.51.0
Re: [PATCH 1/3] multipath-tools: add Acronis Cyber Infrastructure to hwtable
Quoted 43 lines · Benjamin Marzinski
Quoted 21 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]>Signed-off-by Xose Vazquez Perez <[email protected]>--- libmultipath/hwtable.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)libmultipath/hwtable.c +2
-0@@ -1371,6 +1371,21 @@ static struct hwentry default_hw[] = { .pgpolicy = GROUP_BY_SERIAL, .no_path_retry = 30, }, +/* +* Acronis libmultipath/hwtable.c static struct hwentry default_hw[] = { · line 1385
Quoted 10 lines
libmultipath/hwtable.c +10
-0+*/ + { +// Cyber Infrastructure + .vendor = "VSTORAGE", + .product = "VSTOR-DISK", + .prio_name = PRIO_ALUA, + .pgpolicy = GROUP_BY_NODE_NAME, + .detect_prio = DETECT_PRIO_OFF, + .features = "2 pg_init_retries 50", + .pgfailback = -FAILBACK_FOLLOWOVER,I'm not sure about the pgfailback setting. the
FAILBACK_FOLLOWOVERmode is not something that is really needed for a specific array type. It works likeFAILOVER_IMMEDIATE, but it's designed to work so that if multiple nodes are using the same multipath device, and one of them loses access to the highest priority pathgroup but the others don't, multipath won't keep switching pathgroups back and forth. The nodes that can see the higher priority pathgroup won't automatically switch back to it, since they weren't the ones that switched away from it. So the setting is more for a specific use case, and not a specific array type.
Quoted 7 lines
On the other hand, it is what the vendor tested, and with a single machine accessing the multipath device, you usually only switch away from the highest priority pathgroup because you lost access to all the paths in it. So it usually won't get stuck on a lower priority pathgroup while a higher priority one is usable, although that could happen.
Thoughts?
Yes, it is a weird value for pgfailback. But it's in two docs from different vendors:
https://dl.acronis.com/u/software-defined/html/AcronisCyberInfrastructure_3_5_users_guide_en-US/accessing-iscsi/accessing-iscsi-targets-from-linux.html
and https://docs.virtuozzo.com/pdf/virtuozzo_hybrid_infrastructure_6_2_users_guide.pdf
I don't even know who the real manufacturer is.
Re: [PATCH 1/3] multipath-tools: add Acronis Cyber Infrastructure to hwtable
In reply to Benjamin MarzinskiQuoted 48 lines · Benjamin Marzinski
Quoted 22 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]>Signed-off-by Xose Vazquez Perez <[email protected]>---
libmultipath/hwtable.c | 15 +++++++++++++++1 file changed, 15 insertions(+)libmultipath/hwtable.c +2
-0@@ -1371,6 +1371,21 @@ static struct hwentry default_hw[] = { .pgpolicy = GROUP_BY_SERIAL, .no_path_retry = 30, }, +/* +* Acronis libmultipath/hwtable.c static struct hwentry default_hw[] = { · line 1385
Quoted 10 lines
libmultipath/hwtable.c +10
-0+*/ + { +// Cyber Infrastructure + .vendor = "VSTORAGE", + .product = "VSTOR-DISK", + .prio_name = PRIO_ALUA, + .pgpolicy = GROUP_BY_NODE_NAME, + .detect_prio = DETECT_PRIO_OFF, + .features = "2 pg_init_retries 50", + .pgfailback = -FAILBACK_FOLLOWOVER,I'm not sure about the pgfailback setting. the
FAILBACK_FOLLOWOVERmode
is not something that is really needed for a specific array type. It works likeFAILOVER_IMMEDIATE, but it's designed to work so that if multiple nodes are using the same multipath device, and one of them loses access to the highest priority pathgroup but the others don't, multipath won't keep switching pathgroups back and forth. The nodes that
can see the higher priority pathgroup won't automatically switch back to
it, since they weren't the ones that switched away from it. So the setting is more for a specific use case, and not a specific array type.
Quoted 5 lines
On the other hand, it is what the vendor tested, and with a single machine accessing the multipath device, you usually only switch away from the highest priority pathgroup because you lost access to all the
paths in it.
Not necessarily. path_group_prio_update() calculates the average of the path priorities in the group. With ALUA and groups of 6+ paths, an optimized group with one healthy path will have a lower prio (8) than a non-optimized group with all healthy paths (10). In such a case it could happen that multipathd switches to the non-optimized group and never switches back.
I would suggest setting FAILBACK_IMMEDIATE instead. It's well documented that FOLLOWOVER is only for cluster environments.
Regards
Martin
Quoted 19 lines
So it usually won't get stuck on a lower priority pathgroup
while a higher priority one is usable, although that could happen.Thoughts?
-Ben
Quoted 8 lines
libmultipath/hwtable.c +3
-0+ .flush_on_last_del = FLUSH_ALWAYS, + .no_path_retry = NO_PATH_RETRY_QUEUE, + }, /** EOL */ Signature · 1 line
2.51.0
Re: [PATCH 1/3] multipath-tools: add Acronis Cyber Infrastructure to hwtable
Quoted 59 lines · Martin Wilck
Quoted 51 lines · Benjamin Marzinski
Quoted 22 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]>Signed-off-by Xose Vazquez Perez <[email protected]>---
libmultipath/hwtable.c | 15 +++++++++++++++1 file changed, 15 insertions(+)libmultipath/hwtable.c +2
-0@@ -1371,6 +1371,21 @@ static struct hwentry default_hw[] = { .pgpolicy = GROUP_BY_SERIAL, .no_path_retry = 30, }, +/* +* Acronis libmultipath/hwtable.c static struct hwentry default_hw[] = { · line 1385
Quoted 10 lines
libmultipath/hwtable.c +10
-0+*/ + { +// Cyber Infrastructure + .vendor = "VSTORAGE", + .product = "VSTOR-DISK", + .prio_name = PRIO_ALUA, + .pgpolicy = GROUP_BY_NODE_NAME, + .detect_prio = DETECT_PRIO_OFF, + .features = "2 pg_init_retries 50", + .pgfailback = -FAILBACK_FOLLOWOVER,I'm not sure about the pgfailback setting. the
FAILBACK_FOLLOWOVERmode
is not something that is really needed for a specific array type. It
works likeFAILOVER_IMMEDIATE, but it's designed to work so that if multiple nodes are using the same multipath device, and one of them loses access to the highest priority pathgroup but the others don't,
multipath won't keep switching pathgroups back and forth. The nodes that
can see the higher priority pathgroup won't automatically switch back
to
it, since they weren't the ones that switched away from it. So the setting is more for a specific use case, and not a specific array type.Quoted 6 lines
On the other hand, it is what the vendor tested, and with a single machine accessing the multipath device, you usually only switch away
from the highest priority pathgroup because you lost access to all the
paths in it.
Quoted 8 lines
Not necessarily.
path_group_prio_update()calculates the average of the
path priorities in the group. With ALUA and groups of 6+ paths, an optimized group with one healthy path will have a lower prio (8) than a
non-optimized group with all healthy paths (10). In such a case it could happen that multipathd switches to the non-optimized group and never switches back.
Sorry, this example was incorrect. Only paths in UP or GHOST states are counted in for the PG prio. In this example the optimized group would still have p = 50, and what I described would not occur.
The example would be correct if the 5 non-"healthy" paths in the first PG were in standby aka GHOST state (resulting in p = 55 / 6 = 9). But that's a very different scenario, and highly theoretical.
Quoted 2 lines
I would suggest setting
FAILBACK_IMMEDIATEinstead. It's well documented that FOLLOWOVER is only for cluster environments.
Despite the wrong example, I still think FAILBACK_IMMEDIATE makes more sense as a general default. We can add a comment about the vendor recommendations.
Martin
Re: [PATCH 1/3] multipath-tools: add Acronis Cyber Infrastructure to hwtable
Quoted 19 lines · Martin Wilck
Quoted 8 lines · Martin Wilck
Not necessarily.
path_group_prio_update()calculates the average of the
path priorities in the group. With ALUA and groups of 6+ paths, an optimized group with one healthy path will have a lower prio (8) than a
non-optimized group with all healthy paths (10). In such a case it could happen that multipathd switches to the non-optimized group and never switches back.Sorry, this example was incorrect. Only paths in UP or GHOST states are counted in for the PG prio. In this example the optimized group would still have p = 50, and what I described would not occur.
The example would be correct if the 5 non-"healthy" paths in the first PG were in standby aka GHOST state (resulting in p = 55 / 6 = 9). But that's a very different scenario, and highly theoretical.
Quoted 6 lines
Quoted 2 lines
I would suggest setting
FAILBACK_IMMEDIATEinstead. It's well documented that FOLLOWOVER is only for cluster environments.Despite the wrong example, I still think
FAILBACK_IMMEDIATEmakes more sense as a general default. We can add a comment about the vendor recommendations.
I sent a new patch with that fixed.
PATCH 2/3 multipath-tools: add EqualLogic PS to hwtable
In reply to Xose Vazquez Perez--- libmultipath/hwtable.c | 7 +++++++ 1 file changed, 7 insertions(+)
libmultipath/hwtable.c +7 -0
@@ -408,6 +408,13 @@ static struct hwentry default_hw[] = { .prio_name = PRIO_ALUA, .pgfailback = -FAILBACK_IMMEDIATE, }, + { +// EqualLogic PS Series + .vendor = "EQLOGIC", + .product = "100E-00", + .pgpolicy = MULTIBUS, + .no_path_retry = 30, + },/* * Fujitsu */
Signature · 1 line
2.51.0
Re: [PATCH 2/3] multipath-tools: add EqualLogic PS to hwtable
Quoted 7 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]>Signed-off-by Xose Vazquez Perez <[email protected]>
Quoted 24 lines
--- libmultipath/hwtable.c | 7 +++++++ 1 file changed, 7 insertions(+)libmultipath/hwtable.c +7
-0@@ -408,6 +408,13 @@ static struct hwentry default_hw[] = { .prio_name = PRIO_ALUA, .pgfailback = -FAILBACK_IMMEDIATE, }, + { +// EqualLogic PS Series + .vendor = "EQLOGIC", + .product = "100E-00", + .pgpolicy = MULTIBUS, + .no_path_retry = 30, + },/* * Fujitsu */ Signature · 1 line
2.51.0
PATCH 3/3 multipath-tools: add QSAN to hwtable
In reply to Xose Vazquez PerezSource #13/15: https://www.qsan.com/data/dl_files/qs_wp_iSCSI-MPIO-in-Linux%20(en).pdf
--- libmultipath/hwtable.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
libmultipath/hwtable.c +12 -0
@@ -1393,6 +1393,18 @@ static struct hwentry default_hw[] = { .flush_on_last_del = FLUSH_ALWAYS, .no_path_retry = NO_PATH_RETRY_QUEUE, }, +/* +* QSAN +*/ + { +// XF / XCubeFAS / XCubeSAN / XN / XCubeNXT Series + .vendor = "^Qsan", + .product = ".*", + .pgpolicy = GROUP_BY_PRIO, + .pgfailback = -FAILBACK_IMMEDIATE, + .no_path_retry = 30, + .prio_args = "exclusive_pref_bit", + },/* * EOL */
Signature · 1 line
2.51.0
Re: [PATCH 3/3] multipath-tools: add QSAN to hwtable
Quoted 7 lines · Xose Vazquez Perez
Source #13/15: https://www.qsan.com/data/dl_files/qs_wp_iSCSI-MPIO-in-Linux%20(en).pdf
Cc Martin Wilck <[email protected]>Cc Benjamin Marzinski <[email protected]>Cc Christophe Varoqui <[email protected]>Cc DM_DEVEL-ML <[email protected]>Signed-off-by Xose Vazquez Perez <[email protected]>
Quoted 29 lines
--- libmultipath/hwtable.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)libmultipath/hwtable.c +12
-0@@ -1393,6 +1393,18 @@ static struct hwentry default_hw[] = { .flush_on_last_del = FLUSH_ALWAYS, .no_path_retry = NO_PATH_RETRY_QUEUE, }, +/* +* QSAN +*/ + { +// XF / XCubeFAS / XCubeSAN / XN / XCubeNXT Series + .vendor = "^Qsan", + .product = ".*", + .pgpolicy = GROUP_BY_PRIO, + .pgfailback = -FAILBACK_IMMEDIATE, + .no_path_retry = 30, + .prio_args = "exclusive_pref_bit", + },/* * EOL */ Signature · 1 line
2.51.0