[PATCH 1/2] libmultipath: hwtable: new defaults for NVMe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Martin Wilck <mwilck@xxxxxxxx>

So far we were using the general defaults (pgpolicy = FAILOVER,
pgfailback = -FAILBACK_MANUAL). Xosé's late patches were setting this to
either MULTIBUS or ANA, and -FAILBACK_IMMEDIATE, respectively
for most specific arrays. At the same time, some vendors don't like
seeing their NVMe arrays listed specifically in the multipath-tools
hwtable.

IMO it makes sense to change the general defaults.

detect_prio is the default, and we probe for ANA support. Thus prio
will be "ana" for arrays that support it, and "const" otherwise.
With "const", GROUP_BY_PRIO degenerates to MULTIBUS, and pgfailback
won't happen anyway. This way, our defaults match most Xosé's new entries. The
only devices for which this patch changes behavior (from FAILOVER to MULTIBUS)
are those generic devices that aren't listed, and don't support ANA.

I considered changing the default for no_path_retry, too, but decided against
it. The default is "fail", and users who dislike that will need to change it.
no_path_retry is more a policy setting than a hardware property, anyway.
---
 libmultipath/hwtable.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index 39daadc..e0dce84 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -90,7 +90,8 @@ static struct hwentry default_hw[] = {
 		.product       = ".*",
 		.uid_attribute = DEFAULT_NVME_UID_ATTRIBUTE,
 		.checker_name  = NONE,
-		.retain_hwhandler = RETAIN_HWHANDLER_OFF,
+		.pgpolicy      = GROUP_BY_PRIO,
+		.pgfailback    = -FAILBACK_IMMEDIATE,
 	},
 	/*
 	 * Apple
-- 
2.36.1

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux