diff mbox

[07/57] Add LIO-ORG/SUSE RBD backend hardware defaults

Message ID 1461755458-29225-8-git-send-email-hare@suse.de (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Hannes Reinecke April 27, 2016, 11:10 a.m. UTC
The LIO-ORG RBD backend always supports ALUA, and should be assigned
the correct values for multipathing.

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 libmultipath/hwtable.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Sebastian Herbszt April 28, 2016, 10:32 p.m. UTC | #1
Hannes Reinecke wrote:
> The LIO-ORG RBD backend always supports ALUA, and should be assigned
> the correct values for multipathing.
> 
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> ---
>  libmultipath/hwtable.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)

You missed adding it to multipath.conf.defaults.

Sebastian

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index 4549268..e57a69a 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -1156,6 +1156,20 @@  static struct hwentry default_hw[] = {
 		.prio_args     = NULL,
 	},
 	{
+		.vendor	       = "(LIO-ORG|SUSE)",
+		.product       = "RBD",
+		.features      = DEFAULT_FEATURES,
+		.hwhandler     = "1 alua",
+		.pgpolicy      = GROUP_BY_PRIO,
+		.pgfailback    = -FAILBACK_IMMEDIATE,
+		.rr_weight     = RR_WEIGHT_NONE,
+		.no_path_retry = 12,
+		.checker_name  = TUR,
+		.minio         = 100,
+		.prio_name     = PRIO_ALUA,
+		.prio_args     = NULL,
+	},
+	{
 		.vendor	       = "DataCore",
 		.product       = "SANmelody",
 		.features      = DEFAULT_FEATURES,