From patchwork Sat Jul 30 00:28:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 9252971 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 458C76075F for ; Sat, 30 Jul 2016 00:33:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 365FC28442 for ; Sat, 30 Jul 2016 00:33:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B35028443; Sat, 30 Jul 2016 00:33:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC91928445 for ; Sat, 30 Jul 2016 00:33:29 +0000 (UTC) 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 u6U0TBVd002162; Fri, 29 Jul 2016 20:29:11 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u6U0T1uU032573 for ; Fri, 29 Jul 2016 20:29:01 -0400 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6U0T1cm005058 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 29 Jul 2016 20:29:01 -0400 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8221A4A544 for ; Sat, 30 Jul 2016 00:29:00 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id o80so17801722wme.0 for ; Fri, 29 Jul 2016 17:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ajDo7NHAPenc9R9xNJivPOq+5SrIi2lkOVoRELdAH7E=; b=VBvaUv1VUzn1BEvK1qMcA8kc+NYZc2o585n3V6wpRS2yGQurIy2S67Ooeo/ex7+5oR RVc7zfWF/GrZVq2JYKvJ44MF3ju2Cem0cQQCSmQmT+x9vWJU816g+xccBz6b3K92/K45 GQetlcDjyUhS2IWSUa2DamK3+Ek98CZiPIX+F6N8Xz1j1CJKzIobYTZgLorjqSZO99wc M3TtSJxHo7gokC/BlYzEQg8kDQxiXZLPJL+LGEVjgm642bP1Cdz/TlVTJ5GBaTKp8Ojh EzqEHzYrChkaO4QkkVhZWtsO8Xk667VaQur934k8xf6BlM2Dbji1fjrFWK5FbYqkfI7Q htEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ajDo7NHAPenc9R9xNJivPOq+5SrIi2lkOVoRELdAH7E=; b=RdlBhrMzw0tNI5oDJN8HeOsaanb0HnDvMQwHJTToxh7Q8Eoz7x4+odpNiZsgCGxTsq 9bqA3QQpfSgak2yVmmLSKC0nnp/iV2D2btfmXujCxdsJlP+XIwyfG6Sl9p/08ZHBwd+w qT5DsOAzyKucC0HzWkSTvllPQnpqtrN/UIoFs34qL+y1yxR/933XVfGT+/+T9TkIre0j 6+bJyOeRE11O3TGStxcIvuUJMtCfACdJFQcGPYq4TnzLfxS4exkh/vRQ+TV68Fgu9R9D yMk+oGJQdQ/fAXeMvNm/8vqLTEBFsNDLJErgp06+LOYf/mg+PLDd6tq4LcMUPhskm3gX a+2w== X-Gm-Message-State: AEkoouv3D+wXssrey4ZYw20/CN0TuSB3yrat27wQpJ9+qPFmtREWqBY+QtBsD2N5WB2qJg== X-Received: by 10.28.32.77 with SMTP id g74mr43803189wmg.45.1469838539048; Fri, 29 Jul 2016 17:28:59 -0700 (PDT) Received: from localhost (247.169.78.188.dynamic.jazztel.es. [188.78.169.247]) by smtp.gmail.com with ESMTPSA id h7sm18792214wjd.17.2016.07.29.17.28.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jul 2016 17:28:58 -0700 (PDT) From: Xose Vazquez Perez To: Date: Sat, 30 Jul 2016 02:28:18 +0200 Message-Id: <1469838506-15689-10-git-send-email-xose.vazquez@gmail.com> In-Reply-To: <1469838506-15689-1-git-send-email-xose.vazquez@gmail.com> References: <1469838506-15689-1-git-send-email-xose.vazquez@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sat, 30 Jul 2016 00:29:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sat, 30 Jul 2016 00:29:00 +0000 (UTC) for IP:'74.125.82.68' DOMAIN:'mail-wm0-f68.google.com' HELO:'mail-wm0-f68.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.02 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.68 mail-wm0-f68.google.com 74.125.82.68 mail-wm0-f68.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez Subject: [dm-devel] [PATCH 10/18] multipath-tools: add Nexsan E-Series and SATABeast/SATABoy to hwtable X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP Based on documentation provided by the manufacturer: https://drive.google.com/file/d/0B_B6YmEmO7cDeGRXeG85MXFVMEU Redhat 6: vendor "NEXSAN " product "NXS-B0.*|SATAB.*" getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n" path_grouping_policy group_by_prio prio alua path_checker directio path_selector "round-robin 0" hardware_handler "0" rr_weight priorities no_path_retry 15 failback immediate SUSE 11 (including OpenSUSE): vendor "NEXSAN " product "NXS-B0.*|SATAB.*" getuid_callout "/lib/udev/scsi_id --whitelisted -g -u -d /dev/%n" path_grouping_policy group_by_prio prio alua path_checker directio path_selector "round-robin 0" hardware_handler "0" rr_weight priorities no_path_retry 15 failback immediate Debian Wheezy: vendor "NEXSAN " product "NXS-B0.*|SATAB.*" path_grouping_policy group_by_prio prio alua path_checker directio path_selector "round-robin 0" hardware_handler "1 alua" rr_weight priorities no_path_retry 5 failback immediate Cc: Christophe Varoqui Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- libmultipath/hwtable.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index 4d5717a..45a6332 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -841,6 +841,18 @@ static struct hwentry default_hw[] = { .dev_loss = MAX_DEV_LOSS_TMO, .fast_io_fail = 1, }, + /* + * Nexsan + */ + { + .vendor = "NEXSAN", + .product = "(NXS-B0.*|SATAB.*)", + .selector = "round-robin 0", + .prio_name = PRIO_ALUA, + .hwhandler = "1 alua", + .rr_weight = RR_WEIGHT_PRIO, + .no_path_retry = 15, + }, #if 0 /* * Copy this TEMPLATE to add new hardware.