From patchwork Sat Dec 28 00:24:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 11311419 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C57D14DB for ; Sat, 28 Dec 2019 00:25:55 +0000 (UTC) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E76620828 for ; Sat, 28 Dec 2019 00:25:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TR4tJ3hW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E76620828 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577492753; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PqQBdI0NInx0Eb7o/pF75BY/2aK7ZA8UScEM3pd8tJo=; b=TR4tJ3hWs1eRV2SVn69/of37cu/n+XCgFNP/wk383Tcj49u9IJbt3zbykNdNwxtz94fLNt uCbp0z224KGaL89plDQkVJj80BtqTt6uwHOwu6QSMbzum9MDUTBagkrhr5ZYsu0wNgUeCJ d7i9qD50XC0Q1+FcThlse9U+fXcxSAg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-354-YJfeIi54OlGzmOJn3wBOmQ-1; Fri, 27 Dec 2019 19:25:49 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4ACA11800D42; Sat, 28 Dec 2019 00:25:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 735991081318; Sat, 28 Dec 2019 00:25:42 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DC3404E16F; Sat, 28 Dec 2019 00:25:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBS0PauM020415 for ; Fri, 27 Dec 2019 19:25:36 -0500 Received: by smtp.corp.redhat.com (Postfix) id 21E01B5791; Sat, 28 Dec 2019 00:25:36 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1C75B8FB11 for ; Sat, 28 Dec 2019 00:25:33 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B16668F6162 for ; Sat, 28 Dec 2019 00:25:33 +0000 (UTC) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-425-RjngyTUBOa-2974kQ9e5BA-1; Fri, 27 Dec 2019 19:25:31 -0500 Received: by mail-ed1-f46.google.com with SMTP id c26so26807731eds.8 for ; Fri, 27 Dec 2019 16:25:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TJQbbPefZlxS5DcIgEeha7GKHhInYNHL5rPCPokNLcc=; b=BGQo4n/iENyRi/Sjcg76omEb2MCN0TVyIA8HgieBH+xf8tnywHXIuuzkPRadVVmnZQ v3/QyG/uoSUS4xirbeTO6aF2+es3bwR80e+pHndxzjw93ooSOde2ATNeXJnS4FZlsnze 4WTwE/Qt2hMxggH8ENZrAzwReUiuzLfzbLUyQeQg+cgi5+Kf1ioaa8pLrMlDfRlTu6eE izAmM6GK0MJmzaabNMiYlYco3Jx5Z3Ykx4iVrmKkOEjtSTU8ea/VHiQDoDueg+ucO+lm IPG9z0PVH8g7h+OpEr3xVW9rT6IpEEed9PxNUEkYldy3+JlGTkhypJBsDlyXkvyjS3sp 7d9Q== X-Gm-Message-State: APjAAAV98XI2gBSJyVHxIYKPDp+BXuSPI/OlyLPXS3LVjZ9ju/tC0ENz HEziAVZZrRrugDu45MUaqg== X-Google-Smtp-Source: APXvYqy0sJx9OS7R9g7nWd2aSM5OUJcSusxBlOtNIWZd4yh9zULLqXMjziAdxecoEcjtbVS37vkMBg== X-Received: by 2002:a05:6402:1804:: with SMTP id g4mr40631554edy.78.1577492730469; Fri, 27 Dec 2019 16:25:30 -0800 (PST) Received: from localhost (232.red-95-127-150.staticip.rima-tde.net. [95.127.150.232]) by smtp.gmail.com with ESMTPSA id q11sm4300910ejt.64.2019.12.27.16.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 16:25:30 -0800 (PST) From: Xose Vazquez Perez To: Date: Sat, 28 Dec 2019 01:24:51 +0100 Message-Id: <20191228002451.9536-1-xose.vazquez@gmail.com> MIME-Version: 1.0 X-MC-Unique: RjngyTUBOa-2974kQ9e5BA-1 X-MC-Unique: YJfeIi54OlGzmOJn3wBOmQ-1 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBS0PauM020415 X-loop: dm-devel@redhat.com Cc: DM-DEVEL ML , Xose Vazquez Perez , Brian Bunker Subject: [dm-devel] [PATCH resend] ALUA support for PURE FlashArray 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: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 From: Brian Bunker Hello all, It has been some time since we updated our PURE FlashArray configuration. The Linux vendors that we had been seeing in the field were using very old versions of multipath-tools, so we haven’t needed to change anything for some time. With the release of RHEL8, some of our earlier values have been lost by upstream changes. In addition we have our Active Cluster feature which leverages ALUA since our last patch. The ALUA confguration will work for all FlashArrays with or without Active Cluster. We are changing 3 things. 1. ALUA support 2. Fast fail timeout from the default of 5 seconds to 10 seconds (We need this for our FC NPIV port migration). 3. Maximum sector size of 4MB. Some Linux vendors don’t honor the block limits VPD page of INQUIRY). Thanks, Brian Cc: Christophe Varoqui Cc: DM-DEVEL ML Signed-off-by: Xose Vazquez Perez Signed-off-by: Brian Bunker --- libmultipath/hwtable.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index 16627ec..9bc59f1 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -1039,7 +1039,12 @@ static struct hwentry default_hw[] = { /* FlashArray */ .vendor = "PURE", .product = "FlashArray", - .pgpolicy = MULTIBUS, + .pgpolicy = GROUP_BY_PRIO, + .pgfailback = -FAILBACK_IMMEDIATE, + .hwhandler = "1 alua", + .prio_name = PRIO_ALUA, + .fast_io_fail = 10, + .max_sectors_kb = 4096, }, /* * Huawei