zpool-zfs'es on a GELI-encrypted volume are not mounted at boot [patch included]

Christopher J. Ruwe cjr at cruwe.de
Sun Jul 10 15:20:25 UTC 2011


On Sun, 10 Jul 2011 07:50:44 -0700
Jeremy Chadwick <freebsd at 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 at gmail.com> wrote:
> > 
> > > "Christopher J. Ruwe" <cjr at cruwe.de> writes:
> > > 
> > > > 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?
> > > [...]
> > > 
> > > Have you tried to set zfs_enable=YES in rc.conf? Based on
> > > rcorder(8) output rc.d/zfs should come just after
> > > rc.d/mountcritlocal.
> > 
> > zfs_enable="YES" is set. rcorder gives curious output, so maybe my
> > etcs are wrong?
> > 
> > $> rcorder /etc/rc.d/zfs
> > rcorder: file `/etc/rc.d/zfs' is before unknown provision
> > `mountlate' /etc/rc.d/zfs
> > 
> > $> rcorder /etc/rc.d/mountcritlocal
> > rcorder: requirement `root' in file `/etc/rc.d/mountcritlocal' has
> > no providers. /etc/rc.d/mountcritlocal
> 
> You're using rcorder wrong here.  "rcorder /etc/rc.d/*" will get you
> what you're looking for.  Yes, literally an asterisk.
> 

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 zfs mount of {/usr,/usr/local, ...}.

Anyhow, thanks for setting me up on the proper usage of rcorder.

Cheers, 
-- 
Christopher J. Ruwe
TZ GMT + 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20110710/49e11913/signature.pgp


More information about the freebsd-fs mailing list