From owner-freebsd-questions@FreeBSD.ORG Sun Jul 10 12:26:24 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 187D1106564A; Sun, 10 Jul 2011 12:26:24 +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 9F3AC8FC12; Sun, 10 Jul 2011 12:26:23 +0000 (UTC) Received: from cruwe.de (unknown [127.0.0.4]) by cruwe.de (Postfix) with ESMTP id 02DF71CBA5; Sun, 10 Jul 2011 14:26:22 +0200 (CEST) Received: by cruwe.de (Postfix, from userid 65534) id D2E211CBA4; Sun, 10 Jul 2011 14:26:21 +0200 (CEST) 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 (p5B37B008.dip.t-dialin.net [91.55.176.8]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by cruwe.de (Postfix) with ESMTPSA id 55C901CB94; Sun, 10 Jul 2011 14:26:19 +0200 (CEST) Date: Sun, 10 Jul 2011 14:26:17 +0200 From: "Christopher J. Ruwe" To: freebsd-questions@freebsd.org Message-ID: <20110710142617.1d80289b@dijkstra> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/ICitDr9IVUgfV8mY8Yu1fTF" X-Virus-Scanned: ClamAV on mail.cruwe.de using ClamSMTP Cc: freebsd-fs@freebsd.org Subject: Fw: 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 12:26:24 -0000 --MP_/ICitDr9IVUgfV8mY8Yu1fTF Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? Thank you, cheers, -- Christopher J. Ruwe TZ GMT + 2 Begin forwarded message: Date: Tue, 5 Jul 2011 20:59:48 +0200 From: "Christopher J. Ruwe" To: Subject: zpool-zfs'es on a GELI-encrypted volume are not mounted at boot [patch included] I run my notebook under FreeBSD 8.2-stable, r223699. I have setup my disks with ZFS so that I boot from a very small rpool and mount datasets, among these /usr from another pool configured on top of an AES encrypted GELI. When installing a new world using this setup, it is necessary to manually adapt /etc/rc.d/mountcritlocal, mountcritlocal_start() to do a zfs mount -a. Failing to do so causes my rootpool to be mounted (which follows from rc.conf), then the GELI volume to be unlocked. After this, the boot routine hangs, as /usr (which resides) on the encrypted vol, which is not mounted, as the canonical zfs mounts are mounted before GELI. I cannot imagine that I am the only one to run ZFSes on an encrypted GELI volume. Am I booting this setup in an inadvisable way, so that I need to run into problems? If not, then it might be an idea to include a zfs mount -a in mountcritlocal in the canonical rc.d-setup. Am I getting this right or could you please comment? Thank you, cheers, -- Christopher J. Ruwe TZ GMT + 2 --MP_/ICitDr9IVUgfV8mY8Yu1fTF Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=zfs-mountcritlocal.patch *** /usr/src/etc/rc.d/mountcritlocal 2011-06-30 21:37:46.097575355 +0200 --- /etc/rc.d/mountcritlocal 2011-07-01 18:03:43.518493334 +0200 *************** *** 36,41 **** --- 36,42 ---- done mount_excludes=${mount_excludes%,} mount -a -t ${mount_excludes} + zfs mount -a err=$? check_startmsgs && echo '.' --MP_/ICitDr9IVUgfV8mY8Yu1fTF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit _______________________________________________ freebsd-fs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-fs To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" --MP_/ICitDr9IVUgfV8mY8Yu1fTF--