[libmultipath] Update hardware table for HP HSV200
authorHannes Reinecke <hare@suse.de>
Thu, 9 Nov 2006 10:09:38 +0000 (11:09 +0100)
committerHannes Reinecke <hare@suse.de>
Thu, 9 Nov 2006 10:09:38 +0000 (11:09 +0100)
According to HP the behaviour of the HSV200 depends on the software
release; all revisions smaller or equal to '3000' have active/passive
support; all revisions above that have active/active support.
Translated it means that the older firmware uses the HP-style
'START_STOP_UNIT' command to switch paths, while the newer firmware
supports ALUA.
So we should update the hardware tables accordingly.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/hwtable.c

index b56c231..8c8699d 100644 (file)
@@ -91,7 +91,7 @@ static struct hwentry default_hw[] = {
        },
        {
                .vendor        = "HP",
-               .product       = "(HSV2.*|A6189A)",
+               .product       = "A6189A",
                .getuid        = DEFAULT_GETUID,
                .getprio       = NULL,
                .features      = DEFAULT_FEATURES,
@@ -104,6 +104,53 @@ static struct hwentry default_hw[] = {
                .minio         = DEFAULT_MINIO,
                .checker_name  = READSECTOR0,
        },
+       {
+               .vendor        = "HP",
+               .product       = "HSV20.*",
+               .revision      = "[123].*",
+               .getuid        = DEFAULT_GETUID,
+               .getprio       = NULL,
+               .features      = DEFAULT_FEATURES,
+               .hwhandler     = DEFAULT_HWHANDLER,
+               .selector      = DEFAULT_SELECTOR,
+               .pgpolicy      = MULTIBUS,
+               .pgfailback    = FAILBACK_UNDEF,
+               .rr_weight     = RR_WEIGHT_NONE,
+               .no_path_retry = NO_PATH_RETRY_UNDEF,
+               .minio         = DEFAULT_MINIO,
+               .checker_name  = HP_SW,
+       },
+       {
+               .vendor        = "HP",
+               .product       = "HSV20.*",
+               .revision      = "[^123].*",
+               .getuid        = DEFAULT_GETUID,
+               .getprio       = "/sbin/mpath_prio_alua /dev/%n",
+               .features      = DEFAULT_FEATURES,
+               .hwhandler     = DEFAULT_HWHANDLER,
+               .selector      = DEFAULT_SELECTOR,
+               .pgpolicy      = GROUP_BY_PRIO,
+               .pgfailback    = FAILBACK_UNDEF,
+               .rr_weight     = RR_WEIGHT_NONE,
+               .no_path_retry = NO_PATH_RETRY_UNDEF,
+               .minio         = DEFAULT_MINIO,
+               .checker_name  = TUR,
+       },
+       {
+               .vendor        = "HP",
+               .product       = "HSV21.*",
+               .getuid        = DEFAULT_GETUID,
+               .getprio       = "/sbin/mpath_prio_alua /dev/%n",
+               .features      = DEFAULT_FEATURES,
+               .hwhandler     = DEFAULT_HWHANDLER,
+               .selector      = DEFAULT_SELECTOR,
+               .pgpolicy      = GROUP_BY_PRIO,
+               .pgfailback    = FAILBACK_UNDEF,
+               .rr_weight     = RR_WEIGHT_NONE,
+               .no_path_retry = NO_PATH_RETRY_UNDEF,
+               .minio         = DEFAULT_MINIO,
+               .checker_name  = TUR,
+       },
        /*
         * DDN controller family
         *