Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2020 10:33:26 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        freebsd-current@freebsd.org
Subject:   Re: rc.d/zpool runs before ada(4) attaches
Message-ID:  <1439301337.11.1606815206810@localhost>
In-Reply-To: <b55604d6-5c23-a590-859c-a52f36386d44@omnilan.de>
References:  <b55604d6-5c23-a590-859c-a52f36386d44@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help
 
Van: Harry Schmalzbauer <freebsd@omnilan.de>
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: <owner-freebsd-current@freebsd.org>
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 <freebsd-current@mailman.nyi.freebsd.org>;
 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 <freebsd-current@freebsd.org>; 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" <freebsd-current@freebsd.org>
From: cglogic <cglogic@protonmail.com>
Reply-To: cglogic <cglogic@protonmail.com>
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
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Dec 2020 11:14:33 -0000

SGkgdGhlcmUhCgpJcyBwYW1femZzX2tleSBhdmFpbGFibGUgaW4gMTMtQ1VSUkVOVD8gSSB3YW50
IHRvIHNldHVwIGF1dG9tYXRpY2FsbHkgbG9hZGluZyB6ZnMgZW5jcnlwdGlvbiBrZXlzIGZvciBo
b21lIGRhdGFzZXRzLgoKVGhhbmtzIQ==



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1439301337.11.1606815206810>