From owner-freebsd-jail@FreeBSD.ORG Sat Jun 18 03:54:27 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3D7D1065670 for ; Sat, 18 Jun 2011 03:54:27 +0000 (UTC) (envelope-from lars@seas.harvard.edu) Received: from Edge00.seas.harvard.edu (edge00.seas.harvard.edu [140.247.173.249]) by mx1.freebsd.org (Postfix) with ESMTP id 9C3338FC0A for ; Sat, 18 Jun 2011 03:54:26 +0000 (UTC) Received: from HUB01.seas.harvard.edu (10.243.39.42) by Edge00.seas.harvard.edu (10.243.37.120) with Microsoft SMTP Server (TLS) id 14.1.255.0; Fri, 17 Jun 2011 23:54:22 -0400 Received: from mail-vw0-f54.google.com (10.243.39.38) by HUB01.seas.harvard.edu (10.243.39.42) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 17 Jun 2011 23:54:25 -0400 Received: by vws18 with SMTP id 18so3365565vws.13 for ; Fri, 17 Jun 2011 20:54:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.106.232 with SMTP id gx8mr3904610vdb.236.1308369264343; Fri, 17 Jun 2011 20:54:24 -0700 (PDT) Received: by 10.52.185.40 with HTTP; Fri, 17 Jun 2011 20:54:24 -0700 (PDT) In-Reply-To: <4DFBBD17.6000604@freenas.org> References: <4DFBBD17.6000604@freenas.org> Date: Fri, 17 Jun 2011 23:54:24 -0400 Message-ID: From: Lars Kellogg-Stedman To: Christian Degen Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.243.39.38] Cc: freebsd-jail@freebsd.org Subject: Re: Exposing a hierarchy of ZFS datasets inside multiple jails X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2011 03:54:28 -0000 > Why dont you create a NFS-loopback? You can create a fstab for each jail = and > use this to mount the nfs-shares. > from rc.conf > jail_alcatraz_fstab=3D"/mnt/tank/freebsd/fstab.alcatraz" > > fstab.alcatraz > 127.0.0.1:/foo/bar =A0 =A0/var/jails/alcatraz/mnt/bar =A0 =A0nfs =A0 =A0r= w =A0 =A00 =A0 =A00 The problem with this solution -- if I understand you correctly -- is that it doesn't deal well with a population of home directories that may change while the jail is running. This is what I described as "writing a poorly designed automounter". I could... - Iterate over /home - Generate an appropriate /etc/fstab. entry for each directory - Start the jail ...but the only way to pick up changes would be to reboot the jail. This is certainly a functional fallback position, but I'd love a more graceful solution. --=20 Lars Kellogg-Stedman Senior Technologist Harvard University SEAS Academic and Research Computing (ARC)