From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 15:25:01 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 27A69106564A for ; Fri, 22 Jul 2011 15:25:01 +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 C71568FC08 for ; Fri, 22 Jul 2011 15:25:00 +0000 (UTC) Received: from cruwe.de (unknown [127.0.0.4]) by cruwe.de (Postfix) with ESMTP id 206FC1E377 for ; Fri, 22 Jul 2011 15:24:59 +0000 (UTC) Received: by cruwe.de (Postfix, from userid 65534) id 01CA71E373; Fri, 22 Jul 2011 15:24:58 +0000 (UTC) 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 (p5B37B370.dip.t-dialin.net [91.55.179.112]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by cruwe.de (Postfix) with ESMTPSA id A78261E363; Fri, 22 Jul 2011 15:24:56 +0000 (UTC) Date: Fri, 22 Jul 2011 17:24:54 +0200 From: "Christopher J. Ruwe" To: Pan Tsu Message-ID: <20110722172454.2cf322e6@dijkstra> In-Reply-To: <86r55wd0ot.fsf@gmail.com> References: <20110710142617.1d80289b@dijkstra> <86mxgmjooc.fsf@gmail.com> <20110710160504.0d4bf4c0@dijkstra> <20110710145044.GA94832@icarus.home.lan> <20110710172012.51fce47c@dijkstra> <86tyauc7vb.fsf@gmail.com> <20110711194707.48812c43@dijkstra> <86r55wd0ot.fsf@gmail.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV on mail.cruwe.de using ClamSMTP Cc: freebsd-questions@freebsd.org 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: Fri, 22 Jul 2011 15:25:01 -0000 On Tue, 12 Jul 2011 00:25:38 +0400 Pan Tsu wrote: > "Christopher J. Ruwe" writes: > > [...] > > In this setup, I should not have any problems. However, I do not > > realize (and very much doubt) that I changed anything in the order > > of the services (lacking the capability to deterministically do so, > > anyway). > > > > From rcorder I understand that all that is required to set rcorder > > right would be to change /etc/rc.d/zfs to include a REQUIRE: geli, > > so that my geli-encrypted volume would be unlocked before all > > zfs-datasets are mounted? > > Yep, or revert to default where rc.d/zfs depends on > rc.d/mountcritlocal. > > $ svn co -qr223699 svn://svn.freebsd.org/base/stable/8/etc/rc.d > $ rcorder rc.d/* | nl | sed /zfs/q > 1 rc.d/hostid > 2 rc.d/zvol > 3 rc.d/dumpon > 4 rc.d/ddb > 5 rc.d/initrandom > 6 rc.d/geli > 7 rc.d/gbde > 8 rc.d/encswap > 9 rc.d/ccd > 10 rc.d/swap1 > 11 rc.d/fsck > 12 rc.d/root > 13 rc.d/hostid_save > 14 rc.d/mdconfig > 15 rc.d/mountcritlocal > 16 rc.d/zfs > > > > If so, what could be the reason that my rcorder-setup deviates from > > the standard and how could I coerce it back to standard? > > No idea. Try basic check with > > $ diff -ur /usr/src/etc/rc.d /etc/rc.d > $ mergemaster > $ mergemaster -s > > unless someone else can reproduce your issue. Please accept my apologies for replying so late, I was stuck up in work and could not find time to test this issue. Your proposed solution of reverting to the default setup worked as expected. My idea of adding a REQUIRE: geli to /etc/rc.d/zfs did not, although rcorder showed geli before zfs then. However, with my problem solved, I have no incentive to research why I deviated from default rc.d in the first place ... the only thing I am sure of is, that it was not intentionally. Anyhow, thank you for your help, it is really appreciated. -- Christopher J. Ruwe TZ GMT + 2