Skip to contentSkip to conversation

multipath-tools: Add new NEC diskarray to internal hardware table

PATCH In review Jun'ichi Nomura 2 participants 2 messages Apr 20, 2011 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: Add new NEC diskarray to internal hardware table

Hi Christophe,

This patch adds an entry for new NEC Storage M series to internal hwtable.

Could you include this change in your tree?

---
 libmultipath/hwtable.c  |   18 ++++++++++++++++++
 multipath.conf.defaults |   14 ++++++++++++++
 2 files changed, 32 insertions(+)
libmultipath/hwtable.c +18 -0
index 9e6888e..c02caa8 100644
@@ -1031,6 +1031,24 @@ static struct hwentry default_hw[] = {
 		.prio_name     = PRIO_RDAC,
 		.prio_args     = NULL,
 	},
+	/* NEC Storage M Series */
+	{
+		.vendor        = "NEC",
+		.product       = "DISK ARRAY",
+		.getuid        = DEFAULT_GETUID,
+		.features      = DEFAULT_FEATURES,
+		.hwhandler     = "1 alua",
+		.selector      = DEFAULT_SELECTOR,
+		.pgpolicy      = GROUP_BY_PRIO,
+		.pgfailback    = -FAILBACK_IMMEDIATE,
+		.rr_weight     = RR_WEIGHT_NONE,
+		.no_path_retry = NO_PATH_RETRY_UNDEF,
+		.minio         = DEFAULT_MINIO,
+		.minio_rq      = DEFAULT_MINIO_RQ,
+		.checker_name  = TUR,
+		.prio_name     = PRIO_ALUA,
+		.prio_args     = NULL,
+	},
 	/*
 	 * STK arrays
 	 *
multipath.conf.defaults +14 -0
index f8ca0a2..6daf812 100644
@@ -743,4 +743,18 @@
 #		path_checker		directio
 #		prio			const
 #	}
+#	device {
+#		vendor                  "NEC"
+#		product                 "DISK ARRAY"
+#		getuid_callout          "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
+#		features                "0"
+#		hardware_handler        "1 alua"
+#		path_selector           "round-robin 0"
+#		path_grouping_policy    group_by_prio
+#		failback                immediate
+#		rr_weight               uniform
+#		rr_min_io               1000
+#		path_checker            tur
+#		prio                    alua
+#	}
 #}
#1 lore raw
Quoted 5 lines · Jun'ichi Nomura

Hi Christophe,

This patch adds an entry for new NEC Storage M series to internal hwtable.

Could you include this change in your tree?

Sure, done

Signature · 2 lines
Christophe Varoqui, OpenSVC
http://www.opensvc.com/