From owner-freebsd-current@freebsd.org Tue Dec 1 09:33:32 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F0A094A3C68 for ; Tue, 1 Dec 2020 09:33:32 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4ClcNW56Djz3G4k for ; Tue, 1 Dec 2020 09:33:31 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Date: Tue, 1 Dec 2020 10:33:26 +0100 (CET) From: Ronald Klop To: freebsd-current@freebsd.org Message-ID: <1439301337.11.1606815206810@localhost> In-Reply-To: References: Subject: Re: rc.d/zpool runs before ada(4) attaches MIME-Version: 1.0 X-Mailer: Realworks (536.33.bf126bdda67) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4ClcNW56Djz3G4k X-Spamd-Bar: - X-Spamd-Result: default: False [-1.59 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[194.109.157.24:from]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.91)[0.910]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,none]; HAS_X_PRIO_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[194.109.157.24:from]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; MAILMAN_DEST(0.00)[freebsd-current] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2020 09:33:33 -0000 Van: Harry Schmalzbauer Datum: dinsdag, 1 december 2020 09:43 Aan: freebsd-current@freebsd.org Onderwerp: rc.d/zpool runs before ada(4) attaches > > Hello, I'm playing with HEAD (post r364746, Merge OpenZFS support in to HEAD) on some of my non-out-of-box setups. > > > One machine fails importing zpool because the correponding vdevs (ada0-ada2) > are not available at the time rc.d/zpool runs. > > > Adhoc I'm not aware of any rc(8) vs. driver awareness. > Is there any? > > Suggestions how to fix else than 'sleep 1'? > > Thanks, > > -harry > > P.S.: ahci(4) is compiled into kernel, machine is a HPE U48 (Gen 10 plus MicroServer), zfsloader loads root_MFS kernel module > There have been some changes to etc/rc.d/zpool in September. Do you have the latest version? Compare with: https://github.com/freebsd/freebsd/blob/master/libexec/rc/rc.d/zpool or https://svnweb.freebsd.org/base/head/libexec/rc/rc.d/zpool?revision=365354&view=markup Otherwise it would be helpful for readers if you could post some logs which indicate what is happening. /var/run/dmesg.boot or the output of "dmesg" Part of /var/log/messages Part of /var/log/console.log if it exists. Regards, Ronald. From owner-freebsd-current@freebsd.org Tue Dec 1 11:14:33 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5AA8A4A57B6 for ; Tue, 1 Dec 2020 11:14:33 +0000 (UTC) (envelope-from cglogic@protonmail.com) Received: from mail-40140.protonmail.ch (mail-40140.protonmail.ch [185.70.40.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Clfd34lWlz3M8v for ; Tue, 1 Dec 2020 11:14:30 +0000 (UTC) (envelope-from cglogic@protonmail.com) Date: Tue, 01 Dec 2020 11:14:24 +0000 To: "freebsd-current@freebsd.org" From: cglogic Reply-To: cglogic Subject: pam_zfs_key Message-ID: <3w4nMQm06IvdFCRTkIZ2qXRp_tj6yYhMxPua6tZSEcn4OyznSL3PEUdXNpcZNFWmt227e1OOhKNzmx4jUIdJzIqFFvCd8PlnwD47i3l31Fo=@protonmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Rspamd-Queue-Id: 4Clfd34lWlz3M8v X-Spamd-Bar: / X-Spamd-Result: default: False [-0.89 / 15.00]; HAS_REPLYTO(0.00)[cglogic@protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24:c]; FREEMAIL_FROM(0.00)[protonmail.com]; MIME_BASE64_TEXT_BOGUS(1.00)[]; DKIM_TRACE(0.00)[protonmail.com:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[185.70.40.140:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.986]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; HAS_PHPMAILER_SIG(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[185.70.40.140:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[0.999]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[185.70.40.140:from]; MAILMAN_DEST(0.00)[freebsd-current] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2020 11:14:33 -0000 SGkgdGhlcmUhCgpJcyBwYW1femZzX2tleSBhdmFpbGFibGUgaW4gMTMtQ1VSUkVOVD8gSSB3YW50 IHRvIHNldHVwIGF1dG9tYXRpY2FsbHkgbG9hZGluZyB6ZnMgZW5jcnlwdGlvbiBrZXlzIGZvciBo b21lIGRhdGFzZXRzLgoKVGhhbmtzIQ==