From owner-freebsd-current@freebsd.org Tue Dec 1 20:24:03 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 0C9AF4B3258 for ; Tue, 1 Dec 2020 20:24:03 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cltq56gpfz4qB4 for ; Tue, 1 Dec 2020 20:24:01 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 04C4D5C005F for ; Tue, 1 Dec 2020 15:24:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 01 Dec 2020 15:24:01 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeivddgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehgtd erredttddvnecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshes iiihgihsthdrnhgvtheqnecuggftrfgrthhtvghrnheptdehiefgvddufeekkedvtdefvd ettddtkeduvdegveelffdtkeffudejvdfhudetnecukfhppeekvddrjedtrdeluddruddt udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtvg gthhdqlhhishhtshesiiihgihsthdrnhgvth X-ME-Proxy: Received: from rpi4.local (fws.zyxst.net [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 472CF328005A for ; Tue, 1 Dec 2020 15:24:00 -0500 (EST) Date: Tue, 1 Dec 2020 20:23:58 +0000 From: tech-lists To: freebsd-current@freebsd.org Subject: Re: rc.d/zpool runs before ada(4) attaches Message-ID: Mail-Followup-To: freebsd-current@freebsd.org References: <1439301337.11.1606815206810@localhost> <08815f92-742c-2934-e746-fd04ca9b4e16@omnilan.de> <286917313.21.1606836130991@localhost> <786faeee90e79aa0175b298ec859265ff57a3129.camel@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qMG+2uCRzxAAIJzI" Content-Disposition: inline In-Reply-To: <786faeee90e79aa0175b298ec859265ff57a3129.camel@freebsd.org> X-Rspamd-Queue-Id: 4Cltq56gpfz4qB4 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.29:from]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.111.4.29:from]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm1,messagingengine.com:s=fm1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[zyxst.net]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[66.111.4.29:from:127.0.2.255]; MAILMAN_DEST(0.00)[freebsd-current] 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 20:24:03 -0000 --qMG+2uCRzxAAIJzI Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 01, 2020 at 08:34:33AM -0700, Ian Lepore wrote: >On Tue, 2020-12-01 at 16:22 +0100, Ronald Klop wrote: >> >> You can define these in /boot/loader.conf: >> #kern.cam.boot_delay=3D"10000" # Delay (in ms) of root mount for CAM >> bus >> #kern.cam.scsi_delay=3D"2000" # Delay (in ms) before probing SCSI >> >> Maybe that helps. >> >> Ronald. >> > >Those settings control waiting before mounting root. Harry's problem >is that root is mounted quickly, before other drives are ready for zfs. > >The zpool script waits for 'disks'. It would be nice if the cam >subsystem had something like a sysctl it set to indicate when initial >probing for disks was done, then there could be an rc.d/camprobe script >with 'PROVIDE: disks' which waits for the probing to complete. > >-- Ian kern.cam.boot_delay should still fix it because what is required is a delay while the devices (all of the disks, zfs or not) get ready. Because root=20 has to happen before disks/zfs.=20 --=20 J. --qMG+2uCRzxAAIJzI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl/GplYACgkQs8o7QhFz NAVURg/9HQdUEibtWcuSQ31RUSSCy/Y0ly7jruWb4FftNgZEN5f0sKukdh70eFF+ 9OiDcHh2eVVvZat22ZgIjm0u+yBOoCHBdHSm1+yEuAzdaoPdftt4fDF5Y9u9RUoV d4cN5eWECFSreJ7xM72fIjboVmB9TK9mEFNBg/leU80y9eIZ6ObRCPVeHJDqI8zN 98K9/fzAG+0nUcgd2JyYVTZIGVsDrX5bXFMGbWOFOTFD7BgKFLx+51FKe+nj03tB /PamQ5BKv2oMs4dDio+rxhntQormIRiOg+zSomDwqtlRgIM6wMRSv5aNY4sO5n/O v/wcgUmH7hu7FPk7ypbdufMEP/LavePwa+zLWjLLdrzgvBFNREBOL4JOJ/Czbjvr lux57HDf5u1PNklz4pW/P8VHzCe/llNjw9yD9k9Jlsj412RFgnpy/GINauJ2ujwJ sbnKPNS3BShoJNTvJ7Gq+21vZchKja8/QUa+sCh8VWUblHpmet0g6/SN1xh0JWl6 Yk7s4GPPwZ6xtRW7allKF3vQcU1foiWsHI+UWBUHpnvUgWoNXWuYTXdgITmpbxwa PSEzJVg43QtIs8IWT+vI1vdRG75v1d+SD5zsJQ1UTAxuBGHS1o8VegbJjJOtRDfe sDUZJWueMOhlrSDSEF8FO9vvqGRBnVszwS96Io9NcXReAIbbZa4= =0mQT -----END PGP SIGNATURE----- --qMG+2uCRzxAAIJzI--