Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0A5BC00A89 for ; Tue, 3 Nov 2020 01:11:24 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1B643206E3 for ; Tue, 3 Nov 2020 01:11:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bPv8wVpp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B643206E3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604365883; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jRrVeBWIjHSdY4598CX/gSQRGmW3UguBb54Kq3JeQ00=; b=bPv8wVppwCQcKBj2QyMyKU3bXMil/GgbOFqCJrOIuIwmLuku4g0T0HZEVkKIRmP8RfuKu/ i6mUgQPHg7lMT/6Ect7u/1bbfNgkv0/SNJoVxPXyjRCxOsbI5vsUzdAAisu8VSawdfwIaw JxZYPjcwQTsC1zd4KS3EEcfwNrtoK6g= 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-286-fqwWtArQPYCpsVdOAFevYA-1; Mon, 02 Nov 2020 20:11:21 -0500 X-MC-Unique: fqwWtArQPYCpsVdOAFevYA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 751F48030DC; Tue, 3 Nov 2020 01:11:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A62AD55794; Tue, 3 Nov 2020 01:11:14 +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 87636181A06B; Tue, 3 Nov 2020 01:11:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0A31BB5G004194 for ; Mon, 2 Nov 2020 20:11:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id BC138177F9; Tue, 3 Nov 2020 01:11:11 +0000 (UTC) Received: from octiron.msp.redhat.com (octiron.msp.redhat.com [10.15.80.209]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9ABE25C22A; Tue, 3 Nov 2020 01:11:08 +0000 (UTC) Received: from octiron.msp.redhat.com (localhost.localdomain [127.0.0.1]) by octiron.msp.redhat.com (8.14.9/8.14.9) with ESMTP id 0A31B7Ce013282; Mon, 2 Nov 2020 19:11:07 -0600 Received: (from bmarzins@localhost) by octiron.msp.redhat.com (8.14.9/8.14.9/Submit) id 0A31B6tu013281; Mon, 2 Nov 2020 19:11:06 -0600 Date: Mon, 2 Nov 2020 19:11:06 -0600 From: Benjamin Marzinski To: Martin Wilck Message-ID: <20201103011105.GX3384@octiron.msp.redhat.com> References: <1603487708-12547-1-git-send-email-bmarzins@redhat.com> <1603487708-12547-5-git-send-email-bmarzins@redhat.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: dm-devel@redhat.com Cc: "dm-devel@redhat.com" , "sschremm@netapp.com" , "ng-eseries-upstream-maintainers@netapp.com" Subject: Re: [dm-devel] [PATCH 4/5] libmultipath: only read 0xc9 vpd page for devices with rdac checker 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.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Fri, Oct 30, 2020 at 09:12:46PM +0000, Martin Wilck wrote: > On Fri, 2020-10-23 at 16:15 -0500, Benjamin Marzinski wrote: > > Only rdac arrays support 0xC9 vpd page inquiries. All other arrays > > will > > return a failure. Since all rdac arrays in the the built-in device > > configuration explicitly set the RDAC path checker, and almost all > > other > > scsi arrays do not set a path checker, it makes sense to only do the > > rdac inquiry when detecting array capabilities if the array's path > > checker is explicitly set to rdac. > >=20 > > Multipath was doing the check if either the path checker was set to > > rdac, or no path checker was set. This means that for almost all > > non-rdac arrays, multipath was issuing a bad inquiry. This was > > annoying > > users. >=20 > This is sort of funny. We created the entire check_rdac() feature in > order to autodetect RDAC arrays. If we limit the autodetection to those > arrays that have "rdac" set already, why would we do this at all? We > could simply go with the hwtable / config file settings, as we used to > before check_rdac() was created. All we'd need to do is use "alua" prio > for arrays with "rdac" checker. What am I missing here? >=20 > I thought that this autodetection was intended because there are many > Netapp OEMs which we may not all have included in the hwtable (thus > having no path_checker set). For those, we'd choose the wrong settings > by default with this patch, only to avoid some error messages about > unsupported VPDs. I'm not convinced that that's a good idea. >=20 > Suggestion: we could try to retrieve VPD 0 (supported VPDs) before > checking VPD 0xc9. That would avoid the errors on non-Netapp hardware, > while still allowing us to autodetect RDAC systems that are missing in > the hwtable. When this idea was brought up in discussions about how to solve this, there was a worry that older rdac devices might not not support vpd page 0 correctly. I'm not sure how valid that worry is. -Ben >=20 > Regards > Martin >=20 > >=20 > > Cc: Steve Schremmer > > Cc: NetApp RDAC team > > Signed-off-by: Benjamin Marzinski > > --- > > libmultipath/propsel.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c > > index fa4ac5d9..90a77d77 100644 > > --- a/libmultipath/propsel.c > > +++ b/libmultipath/propsel.c > > @@ -501,7 +501,7 @@ check_rdac(struct path * pp) > > =09if (pp->bus !=3D SYSFS_BUS_SCSI) > > =09=09return 0; > > =09/* Avoid ioctl if this is likely not an RDAC array */ > > -=09if (__do_set_from_hwe(checker_name, pp, checker_name) && > > +=09if (!__do_set_from_hwe(checker_name, pp, checker_name) || > > =09 strcmp(checker_name, RDAC)) > > =09=09return 0; > > =09len =3D get_vpd_sgio(pp->fd, 0xC9, 0, buff, 44); >=20 > --=20 > Dr. Martin Wilck , Tel. +49 (0)911 74053 2107 > SUSE Software Solutions Germany GmbH > HRB 36809, AG N=FCrnberg GF: Felix > Imend=F6rffer >=20 -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel