All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] multipath: add default hardware configs.
@ 2011-09-27 20:50 Benjamin Marzinski
  2011-09-27 21:04 ` Christophe Varoqui
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Marzinski @ 2011-09-27 20:50 UTC (permalink / raw)
  To: device-mapper development; +Cc: Christophe Varoqui

Here are some hardware configs I've received from vendors, that haven't made it
upstream yet, along with a little bit of cleanup. The changes come from Redhat
BZ #622569, #636213, and #694602

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 libmultipath/hwtable.c |   60 ++++++++++++++++++++++++++++++++-----------------
 1 file changed, 40 insertions(+), 20 deletions(-)

Index: multipath-tools-110916/libmultipath/hwtable.c
===================================================================
--- multipath-tools-110916.orig/libmultipath/hwtable.c
+++ multipath-tools-110916/libmultipath/hwtable.c
@@ -242,6 +242,24 @@ static struct hwentry default_hw[] = {
 		.prio_name     = DEFAULT_PRIO,
 		.prio_args     = NULL,
 	},
+	{
+		/* HP P2000 family arrays */
+		.vendor        = "HP",
+		.product       = "P2000 G3 FC|P2000G3 FC/iSCSI|P2000 G3 SAS|P2000 G3 iSCSI",
+		.getuid        = DEFAULT_GETUID,
+		.features      = DEFAULT_FEATURES,
+		.hwhandler     = DEFAULT_HWHANDLER,
+		.selector      = DEFAULT_SELECTOR,
+		.pgpolicy      = GROUP_BY_PRIO,
+		.pgfailback    = -FAILBACK_IMMEDIATE,
+		.rr_weight     = RR_WEIGHT_NONE,
+		.no_path_retry = 18,
+		.minio         = 100,
+		.minio_rq      = DEFAULT_MINIO_RQ,
+		.checker_name  = TUR,
+		.prio_name     = PRIO_ALUA,
+		.prio_args     = NULL,
+	},
 	/*
 	 * DDN controller family
 	 *
@@ -281,10 +299,10 @@ static struct hwentry default_hw[] = {
 		.pgpolicy      = MULTIBUS,
 		.pgfailback    = FAILBACK_UNDEF,
 		.rr_weight     = RR_WEIGHT_NONE,
-		.no_path_retry = NO_PATH_RETRY_UNDEF,
+		.no_path_retry = 6,
 		.minio         = DEFAULT_MINIO,
 		.minio_rq      = DEFAULT_MINIO_RQ,
-		.checker_name  = DIRECTIO,
+		.checker_name  = TUR,
 		.prio_name     = DEFAULT_PRIO,
 		.prio_args     = NULL,
 	},
@@ -320,6 +338,7 @@ static struct hwentry default_hw[] = {
 		.no_path_retry = 5,
 		.minio         = DEFAULT_MINIO,
 		.minio_rq      = DEFAULT_MINIO_RQ,
+		.checker_name  = TUR,
 		.prio_name     = DEFAULT_PRIO,
 		.prio_args     = NULL,
 	},
@@ -346,24 +365,6 @@ static struct hwentry default_hw[] = {
 		.prio_name     = DEFAULT_PRIO,
 		.prio_args     = NULL,
 	},
-	{
-		.vendor        = "EMC",
-		.product       = "Invista",
-		.bl_product    = "LUNZ",
-		.getuid        = DEFAULT_GETUID,
-		.features      = DEFAULT_FEATURES,
-		.hwhandler     = DEFAULT_HWHANDLER,
-		.selector      = DEFAULT_SELECTOR,
-		.pgpolicy      = FAILOVER,
-		.pgfailback    = FAILBACK_UNDEF,
-		.rr_weight     = RR_WEIGHT_NONE,
-		.no_path_retry = 5,
-		.minio         = DEFAULT_MINIO,
-		.minio_rq      = DEFAULT_MINIO_RQ,
-		.checker_name  = TUR,
-		.prio_name     = DEFAULT_PRIO,
-		.prio_args     = NULL,
-	},
 	/*
 	 * Hitachi controller family
 	 *
@@ -752,6 +753,24 @@ static struct hwentry default_hw[] = {
 		.prio_name     = PRIO_ALUA,
 		.prio_args     = NULL,
 	},
+	{
+		/* IBM RSSM */
+		.vendor        = "IBM",
+		.product       = "1820N00",
+		.getuid        = DEFAULT_GETUID,
+		.features      = DEFAULT_FEATURES,
+		.hwhandler     = DEFAULT_HWHANDLER,
+		.selector      = DEFAULT_SELECTOR,
+		.pgpolicy      = GROUP_BY_PRIO,
+		.pgfailback    = -FAILBACK_IMMEDIATE,
+		.rr_weight     = RR_WEIGHT_NONE,
+		.no_path_retry = NO_PATH_RETRY_QUEUE,
+		.minio         = 100,
+		.minio_rq      = DEFAULT_MINIO_RQ,
+		.checker_name  = TUR,
+		.prio_name     = PRIO_ALUA,
+		.prio_args     = NULL,
+	},
 	/*
 	 * IBM Power Virtual SCSI Devices
 	 *
@@ -1110,6 +1129,7 @@ static struct hwentry default_hw[] = {
 		.minio_rq      = DEFAULT_MINIO_RQ,
 		.checker_name  = DEFAULT_CHECKER,
 		.prio_name     = DEFAULT_PRIO,
+		.prio_args     = NULL,
 	},
 	/*
 	 * Pivot3 RAIGE

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] multipath: add default hardware configs.
  2011-09-27 20:50 [PATCH] multipath: add default hardware configs Benjamin Marzinski
@ 2011-09-27 21:04 ` Christophe Varoqui
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Varoqui @ 2011-09-27 21:04 UTC (permalink / raw)
  To: Benjamin Marzinski; +Cc: device-mapper development, Christophe Varoqui

On mar., 2011-09-27 at 15:50 -0500, Benjamin Marzinski wrote:
> Here are some hardware configs I've received from vendors, that haven't made it
> upstream yet, along with a little bit of cleanup. The changes come from Redhat
> BZ #622569, #636213, and #694602
> 
ok. applied.

> Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
> ---
>  libmultipath/hwtable.c |   60 ++++++++++++++++++++++++++++++++-----------------
>  1 file changed, 40 insertions(+), 20 deletions(-)
> 
> Index: multipath-tools-110916/libmultipath/hwtable.c
> ===================================================================
> --- multipath-tools-110916.orig/libmultipath/hwtable.c
> +++ multipath-tools-110916/libmultipath/hwtable.c
> @@ -242,6 +242,24 @@ static struct hwentry default_hw[] = {
>  		.prio_name     = DEFAULT_PRIO,
>  		.prio_args     = NULL,
>  	},
> +	{
> +		/* HP P2000 family arrays */
> +		.vendor        = "HP",
> +		.product       = "P2000 G3 FC|P2000G3 FC/iSCSI|P2000 G3 SAS|P2000 G3 iSCSI",
> +		.getuid        = DEFAULT_GETUID,
> +		.features      = DEFAULT_FEATURES,
> +		.hwhandler     = DEFAULT_HWHANDLER,
> +		.selector      = DEFAULT_SELECTOR,
> +		.pgpolicy      = GROUP_BY_PRIO,
> +		.pgfailback    = -FAILBACK_IMMEDIATE,
> +		.rr_weight     = RR_WEIGHT_NONE,
> +		.no_path_retry = 18,
> +		.minio         = 100,
> +		.minio_rq      = DEFAULT_MINIO_RQ,
> +		.checker_name  = TUR,
> +		.prio_name     = PRIO_ALUA,
> +		.prio_args     = NULL,
> +	},
>  	/*
>  	 * DDN controller family
>  	 *
> @@ -281,10 +299,10 @@ static struct hwentry default_hw[] = {
>  		.pgpolicy      = MULTIBUS,
>  		.pgfailback    = FAILBACK_UNDEF,
>  		.rr_weight     = RR_WEIGHT_NONE,
> -		.no_path_retry = NO_PATH_RETRY_UNDEF,
> +		.no_path_retry = 6,
>  		.minio         = DEFAULT_MINIO,
>  		.minio_rq      = DEFAULT_MINIO_RQ,
> -		.checker_name  = DIRECTIO,
> +		.checker_name  = TUR,
>  		.prio_name     = DEFAULT_PRIO,
>  		.prio_args     = NULL,
>  	},
> @@ -320,6 +338,7 @@ static struct hwentry default_hw[] = {
>  		.no_path_retry = 5,
>  		.minio         = DEFAULT_MINIO,
>  		.minio_rq      = DEFAULT_MINIO_RQ,
> +		.checker_name  = TUR,
>  		.prio_name     = DEFAULT_PRIO,
>  		.prio_args     = NULL,
>  	},
> @@ -346,24 +365,6 @@ static struct hwentry default_hw[] = {
>  		.prio_name     = DEFAULT_PRIO,
>  		.prio_args     = NULL,
>  	},
> -	{
> -		.vendor        = "EMC",
> -		.product       = "Invista",
> -		.bl_product    = "LUNZ",
> -		.getuid        = DEFAULT_GETUID,
> -		.features      = DEFAULT_FEATURES,
> -		.hwhandler     = DEFAULT_HWHANDLER,
> -		.selector      = DEFAULT_SELECTOR,
> -		.pgpolicy      = FAILOVER,
> -		.pgfailback    = FAILBACK_UNDEF,
> -		.rr_weight     = RR_WEIGHT_NONE,
> -		.no_path_retry = 5,
> -		.minio         = DEFAULT_MINIO,
> -		.minio_rq      = DEFAULT_MINIO_RQ,
> -		.checker_name  = TUR,
> -		.prio_name     = DEFAULT_PRIO,
> -		.prio_args     = NULL,
> -	},
>  	/*
>  	 * Hitachi controller family
>  	 *
> @@ -752,6 +753,24 @@ static struct hwentry default_hw[] = {
>  		.prio_name     = PRIO_ALUA,
>  		.prio_args     = NULL,
>  	},
> +	{
> +		/* IBM RSSM */
> +		.vendor        = "IBM",
> +		.product       = "1820N00",
> +		.getuid        = DEFAULT_GETUID,
> +		.features      = DEFAULT_FEATURES,
> +		.hwhandler     = DEFAULT_HWHANDLER,
> +		.selector      = DEFAULT_SELECTOR,
> +		.pgpolicy      = GROUP_BY_PRIO,
> +		.pgfailback    = -FAILBACK_IMMEDIATE,
> +		.rr_weight     = RR_WEIGHT_NONE,
> +		.no_path_retry = NO_PATH_RETRY_QUEUE,
> +		.minio         = 100,
> +		.minio_rq      = DEFAULT_MINIO_RQ,
> +		.checker_name  = TUR,
> +		.prio_name     = PRIO_ALUA,
> +		.prio_args     = NULL,
> +	},
>  	/*
>  	 * IBM Power Virtual SCSI Devices
>  	 *
> @@ -1110,6 +1129,7 @@ static struct hwentry default_hw[] = {
>  		.minio_rq      = DEFAULT_MINIO_RQ,
>  		.checker_name  = DEFAULT_CHECKER,
>  		.prio_name     = DEFAULT_PRIO,
> +		.prio_args     = NULL,
>  	},
>  	/*
>  	 * Pivot3 RAIGE

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-27 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 20:50 [PATCH] multipath: add default hardware configs Benjamin Marzinski
2011-09-27 21:04 ` Christophe Varoqui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.