From owner-freebsd-questions@FreeBSD.ORG Sun Jul 10 14:50:46 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 6BBCB1065672 for ; Sun, 10 Jul 2011 14:50:46 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta12.emeryville.ca.mail.comcast.net (qmta12.emeryville.ca.mail.comcast.net [76.96.27.227]) by mx1.freebsd.org (Postfix) with ESMTP id 5380A8FC17 for ; Sun, 10 Jul 2011 14:50:46 +0000 (UTC) Received: from omta02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by qmta12.emeryville.ca.mail.comcast.net with comcast id 6Eq91h0010QkzPwACEqjkN; Sun, 10 Jul 2011 14:50:43 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta02.emeryville.ca.mail.comcast.net with comcast id 6Eqi1h00r1t3BNj8NEqi0J; Sun, 10 Jul 2011 14:50:43 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 8ACF8102C36; Sun, 10 Jul 2011 07:50:44 -0700 (PDT) Date: Sun, 10 Jul 2011 07:50:44 -0700 From: Jeremy Chadwick To: "Christopher J. Ruwe" Message-ID: <20110710145044.GA94832@icarus.home.lan> References: <20110710142617.1d80289b@dijkstra> <86mxgmjooc.fsf@gmail.com> <20110710160504.0d4bf4c0@dijkstra> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110710160504.0d4bf4c0@dijkstra> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org, freebsd-questions@freebsd.org, Pan Tsu 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 14:50:46 -0000 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: > > > "Christopher J. Ruwe" 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. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |