From patchwork Wed Apr 20 09:20:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junichi Nomura X-Patchwork-Id: 721261 X-Patchwork-Delegate: christophe.varoqui@free.fr Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3K9Oce3027530 for ; Wed, 20 Apr 2011 09:24:59 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3K9MEfJ003719; Wed, 20 Apr 2011 05:22:15 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3K9M5gh009154 for ; Wed, 20 Apr 2011 05:22:05 -0400 Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.18]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3K9Lx8T010671 for ; Wed, 20 Apr 2011 05:21:59 -0400 Received: from tyo201.gate.nec.co.jp (TYO201.gate.nec.co.jp [202.32.8.193]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3K9Lj2b012459 for ; Wed, 20 Apr 2011 05:21:45 -0400 Received: from mailgate3.nec.co.jp ([10.7.69.195]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id p3K9LdPL025803; Wed, 20 Apr 2011 18:21:39 +0900 (JST) Received: (from root@localhost) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id p3K9LdG03234; Wed, 20 Apr 2011 18:21:39 +0900 (JST) Received: from mail02.kamome.nec.co.jp (mail02.kamome.nec.co.jp [10.25.43.5]) by mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id p3K9Lchi029914; Wed, 20 Apr 2011 18:21:38 +0900 (JST) Received: from komachi.jp.nec.com ([10.26.220.10] [10.26.220.10]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-541103; Wed, 20 Apr 2011 18:20:15 +0900 Received: from xzibit.linux.bs1.fc.nec.co.jp ([10.34.125.164] [10.34.125.164]) by mail.jp.nec.com with ESMTP; Wed, 20 Apr 2011 18:20:09 +0900 Message-ID: <4DAEA549.70702@ce.jp.nec.com> Date: Wed, 20 Apr 2011 18:20:09 +0900 From: "Jun'ichi Nomura" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: device-mapper development , christophe.varoqui@opensvc.com X-RedHat-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Scanned-By: MIMEDefang 2.68 on 10.5.110.18 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH] multipath-tools: Add new NEC diskarray to internal hardware table X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Apr 2011 09:24:59 +0000 (UTC) Hi Christophe, This patch adds an entry for new NEC Storage M series to internal hwtable. Could you include this change in your tree? Signed-off-by: Jun'ichi Nomura --- libmultipath/hwtable.c | 18 ++++++++++++++++++ multipath.conf.defaults | 14 ++++++++++++++ 2 files changed, 32 insertions(+) -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index 9e6888e..c02caa8 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -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 * diff --git a/multipath.conf.defaults b/multipath.conf.defaults index f8ca0a2..6daf812 100644 --- a/multipath.conf.defaults +++ b/multipath.conf.defaults @@ -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 +# } #}