From owner-freebsd-questions@FreeBSD.ORG Sun Jul 10 15:20:25 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75CDE1065670; Sun, 10 Jul 2011 15:20:25 +0000 (UTC) (envelope-from cjr@cruwe.de) Received: from cruwe.de (cruwe.de [188.40.164.98]) by mx1.freebsd.org (Postfix) with ESMTP id 1F5D68FC08; Sun, 10 Jul 2011 15:20:24 +0000 (UTC) Received: from cruwe.de (unknown [127.0.0.4]) by cruwe.de (Postfix) with ESMTP id 0369A1C123; Sun, 10 Jul 2011 17:20:24 +0200 (CEST) Received: by cruwe.de (Postfix, from userid 65534) id D35C31C121; Sun, 10 Jul 2011 17:20:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.cruwe.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 Received: from dijkstra (p5B37B008.dip.t-dialin.net [91.55.176.8]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by cruwe.de (Postfix) with ESMTPSA id DCB591C110; Sun, 10 Jul 2011 17:20:20 +0200 (CEST) Date: Sun, 10 Jul 2011 17:20:12 +0200 From: "Christopher J. Ruwe" To: freebsd@jdc.parodius.com Message-ID: <20110710172012.51fce47c@dijkstra> In-Reply-To: <20110710145044.GA94832@icarus.home.lan> References: <20110710142617.1d80289b@dijkstra> <86mxgmjooc.fsf@gmail.com> <20110710160504.0d4bf4c0@dijkstra> <20110710145044.GA94832@icarus.home.lan> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/A=OqQpayWJb/b1/olJpKxKn"; protocol="application/pgp-signature" X-Virus-Scanned: ClamAV on mail.cruwe.de using ClamSMTP Cc: freebsd-fs@freebsd.org, freebsd-questions@freebsd.org, inyaoo@gmail.com Subject: Re: zpool-zfs'es on a GELI-encrypted volume are not mounted at boot [patch included] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2011 15:20:25 -0000 --Sig_/A=OqQpayWJb/b1/olJpKxKn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 10 Jul 2011 07:50:44 -0700 Jeremy Chadwick wrote: > On Sun, Jul 10, 2011 at 04:05:04PM +0200, Christopher J. Ruwe wrote: > > On Sun, 10 Jul 2011 16:38:43 +0400 > > Pan Tsu wrote: > >=20 > > > "Christopher J. Ruwe" writes: > > >=20 > > > > Nearly a week ago I posted this question to freebsd-fs, but > > > > probalby my question is a) worded too complicatedly, b) not > > > > really a filesystem-issue or c) both. > > > > > > > > To rephrase: In setups requiring one or more ZFS-dataset to be > > > > mounted before another service is activated (GELI in my case) > > > > and the rest of the ZFS-datasets after that service is activated > > > > (because they require GELI), it seems to be necessary to add a > > > > `zfs mount -a` to mountcritlocal. Is this considered correct > > > > behaviour and wouldn't it make sense to add such a line to > > > > mountcritlocal in the standard setup? > > > [...] > > >=20 > > > Have you tried to set zfs_enable=3DYES in rc.conf? Based on > > > rcorder(8) output rc.d/zfs should come just after > > > rc.d/mountcritlocal. > >=20 > > zfs_enable=3D"YES" is set. rcorder gives curious output, so maybe my > > etcs are wrong? > >=20 > > $> rcorder /etc/rc.d/zfs > > rcorder: file `/etc/rc.d/zfs' is before unknown provision > > `mountlate' /etc/rc.d/zfs > >=20 > > $> rcorder /etc/rc.d/mountcritlocal > > rcorder: requirement `root' in file `/etc/rc.d/mountcritlocal' has > > no providers. /etc/rc.d/mountcritlocal >=20 > You're using rcorder wrong here. "rcorder /etc/rc.d/*" will get you > what you're looking for. Yes, literally an asterisk. >=20 I see. Thank you. That gives me (I skip the rest after mountcritlocal) /etc/rc.d/zvol /etc/rc.d/zfs /etc/rc.d/dumpon /etc/rc.d/ddb /etc/rc.d/initrandom /etc/rc.d/geli /etc/rc.d/gbde /etc/rc.d/encswap /etc/rc.d/ccd /etc/rc.d/swap1 /etc/rc.d/fsck /etc/rc.d/root /etc/rc.d/hostid_save /etc/rc.d/mdconfig /etc/rc.d/mountcritlocal This makes sense to me and reflects the order I assumed in my description. = The question remains, however, if my configuration is of any in {unusual, .= .., stupid} as I require first zfs mount of /, then GELI-unlock and then zf= s mount of {/usr,/usr/local, ...}. Anyhow, thanks for setting me up on the proper usage of rcorder. Cheers,=20 --=20 Christopher J. Ruwe TZ GMT + 2 --Sig_/A=OqQpayWJb/b1/olJpKxKn Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBAgAGBQJOGcMxAAoJEJTIKW/o3iwU9bQQAOPzESChzsRE/gJleQzaRm8P e7SGlvrJkix+2QlHq2GkS53Xm5A2jugEwzPoOfu7K0yNYUCFnGLDQAyCunR5OcQb xnB9ga1+XjlU6vilHjddOVeb0uv9nk3CJuTetSic9Br9puJYkLO3pLiO3pGv1Pur xiGhW1a2otKzkhI92eywURnovUo7vJ+ouwkhbubqqMmNkojY9E1zdlY9RJtXkbxZ mIOb97Ruio+YbrKWs1O36kWEJ0Djgmvh1CvpE5lgQVh9MJ2kzajHi8VotWBQVZSp 7vEhmfXH08eH9+jrju/m6qFj3e8RJVB7xI8i1B33o6iuoT3LBxP8Ke5AXXdHf6Pp KFt75DvuKYqCuytTargkP2NFosCwISCdy6C18q13hfy2Q5YWo7yl2bfvJctJKkn5 8uYow30HyvwLJYe9LjcdDC+l7XnOHTNfWpHyqYFHd2OO9FAqlD9PCeP6Ci2yEUg2 zRDaiJ7Th+f56hkN3e/GtfQJwK2Xp3uVyope5gsHpe6yjPBMxajAq+WjtomzAt6R EtU5P0sUHsnFBRid23dp1/tSoFZndTGg3MLBjyZUVMXraConIxwSVMxk8ec4qeAt p0keYtZ9lUkpfQXoTf7Lrj1kJF9YJtzrSzmyGw7cex55j6Y80OwQdVhhWEJ1/0TT gbHZF/Cnx+E37c8ALE+5 =uN0b -----END PGP SIGNATURE----- --Sig_/A=OqQpayWJb/b1/olJpKxKn--