Date: Sun, 10 Jul 2011 17:20:12 +0200 From: "Christopher J. Ruwe" <cjr@cruwe.de> To: freebsd@jdc.parodius.com 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] 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <freebsd@jdc.parodius.com> 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 <inyaoo@gmail.com> wrote:
> >=20
> > > "Christopher J. Ruwe" <cjr@cruwe.de> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110710172012.51fce47c>
