From owner-freebsd-questions@FreeBSD.ORG Fri Sep 24 18:23:24 2010 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 DE8CE106566B for ; Fri, 24 Sep 2010 18:23:24 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 938408FC0A for ; Fri, 24 Sep 2010 18:23:24 +0000 (UTC) Received: by qwd6 with SMTP id 6so1677987qwd.13 for ; Fri, 24 Sep 2010 11:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=qYV9izuLdpZtDGU0UuQuVJYcxisw/zBSeJsUslVQA5s=; b=h5J4wnU2XlIv08v+YzdnFePtP+SHC2dxWLkFUGp2ouV3aPJFkKE2u3JJEWXFceULXQ SDrdMceibbEXxRHcn1Wl5vVX6Kc6mBu/BvJ4TNTLozD4XiVz4YF4ULOfDvyjjewpplIQ 6KMgd+JMRyEZh9qmtRY4GEZyQWQvH1DZXnNLs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XAahFJIyf5s//O46YDWvnmeFUaGwgCi1MklW68i4IdeZpwmHdtBNjOyttvyh6DvctY p6AR79uVaasV0NSG5AcXKMzQ/08fQMhm+9xs7j8/hGXfgW3LUDSjTm9j56aJI38w0f5A njmQAmjgA6r4DzqJWqQjoAdcp2amVapfXx3xY= MIME-Version: 1.0 Received: by 10.224.6.145 with SMTP id 17mr2732394qaz.218.1285350962520; Fri, 24 Sep 2010 10:56:02 -0700 (PDT) Received: by 10.229.215.209 with HTTP; Fri, 24 Sep 2010 10:56:02 -0700 (PDT) In-Reply-To: References: <867hibxh6t.fsf@shell.gmplib.org> Date: Fri, 24 Sep 2010 18:56:02 +0100 Message-ID: From: krad To: Torbjorn Granlund Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Mount order for ZFS, jails, and nullfs 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, 24 Sep 2010 18:23:24 -0000 On 24 September 2010 18:52, krad wrote: > > > On 24 September 2010 17:03, Torbjorn Granlund wrote: > >> In jails, I'd like a local ZFS /, a read-only nullfs-mounted /usr, and a >> local /usr/local. (I'd also have read-only nullfs-mounted /bin, /lib, >> /libexec, but let's forget about that for now.) >> >> This way, I can upgrade the master /usr once, in one place, and have all >> jails inherit it. And my dear jail inmates can install anything in >> /usr/local (such as their favourite packages/ports). >> >> I.e., things should look like this: >> >> /myjail/ zfs >> /myjail/usr nullfs ro >> /myjail/usr/local zfs >> >> There is no problem to make this happen by issuing a handful of commands >> manually after boot, but I cannot seem to get it to work automatically, >> with existing boot mechanism. The problem is that the mount of /usr >> will be attempted before ZFS has mounted /myjail, the jail's root. >> >> ZFS maintains its own mount table. It is possible to disable the >> automated mounting in ZFS by specifying the pseudo mountpoint "legacy", >> and then--according to the FreeBSD manual--mount it with mount(8). >> Unfortunately, FreeBSD's mount seems unable to perform mounts of ZFS >> volumes. >> >> How can I achieve the result I want after a reboot? >> >> >> (The reply "use ezjail!" is not the right one. :-) It does not do what >> I want to do. I dislike its symlink forest, and that it creates just >> one ZFS filesystem for the entire jail.) >> >> -- >> Torbj=F6rn >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to " >> freebsd-questions-unsubscribe@freebsd.org" >> > > > use zfs mount/imount > whops s/i/u/