From owner-freebsd-questions@FreeBSD.ORG Sun Jul 10 18:23:45 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 4B0021065740; Sun, 10 Jul 2011 18:23:45 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 181478FC08; Sun, 10 Jul 2011 18:23:44 +0000 (UTC) Received: by pvg11 with SMTP id 11so2871466pvg.13 for ; Sun, 10 Jul 2011 11:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=oDm9lpGPhUsnFIlGh9OqNvxdCcOlYu8DUyLxb42pycI=; b=QifAFVmPccDrPBmfCDKEDK8ooa6xub2auhvcn/4RA88WnUaTRcrEQw0eX+d94hVFoJ nuJdKZOKBSprClpyWbNv6Sj6WzFaeBhQlVSUNAUy6TrtMYX8MjXSff4BEOXdXIFSRJZN zOa8cXfGI0s460Z7JoOZIlmXxi6OnT4G0G09E= Received: by 10.68.12.101 with SMTP id x5mr6257290pbb.267.1310322224517; Sun, 10 Jul 2011 11:23:44 -0700 (PDT) Received: from localhost (tor-exit-router41-readme.formlessnetworking.net [199.48.147.41]) by mx.google.com with ESMTPS id x1sm7880502pbb.50.2011.07.10.11.23.41 (version=SSLv3 cipher=OTHER); Sun, 10 Jul 2011 11:23:43 -0700 (PDT) From: Pan Tsu To: "Christopher J. Ruwe" References: <20110710142617.1d80289b@dijkstra> <86mxgmjooc.fsf@gmail.com> <20110710160504.0d4bf4c0@dijkstra> <20110710145044.GA94832@icarus.home.lan> <20110710172012.51fce47c@dijkstra> Date: Sun, 10 Jul 2011 22:23:36 +0400 In-Reply-To: <20110710172012.51fce47c@dijkstra> (Christopher J. Ruwe's message of "Sun, 10 Jul 2011 17:20:12 +0200") Message-ID: <86tyauc7vb.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-fs@freebsd.org, 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: Sun, 10 Jul 2011 18:23:45 -0000 "Christopher J. Ruwe" writes: [...] > /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, ...}. Do you mount the root pool over smth else? Otherwise, root should be mounted by kernel before init(8) is started. And /etc/rc.d doesn't exist before root is mounted. I think the correct order is 0 vfs_mountroot* .. 2 rc.d/zvol (pre v28) .. 6 rc.d/geli .. 15 rc.d/mountcritlocal 16 rc.d/zfs where extra datasets from the root pool can be mounted via fstab at rc.d/mountcritlocal time. Not sure if you import geli pool during boot or not and leak its configuration via zpool.cache. > > Anyhow, thanks for setting me up on the proper usage of rcorder.