From owner-freebsd-questions@FreeBSD.ORG Sat Jul 26 22:03:10 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F64037B401 for ; Sat, 26 Jul 2003 22:03:10 -0700 (PDT) Received: from mobile.hub.org (u134n133.eastlink.ca [24.224.134.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6720D43F85 for ; Sat, 26 Jul 2003 22:03:09 -0700 (PDT) (envelope-from scrappy@hub.org) Received: by mobile.hub.org (Postfix, from userid 1001) id 3A3FB200; Sun, 27 Jul 2003 02:03:08 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mobile.hub.org (Postfix) with ESMTP id 29CE61E7; Sun, 27 Jul 2003 02:03:08 -0300 (ADT) Date: Sun, 27 Jul 2003 02:03:08 -0300 (ADT) From: The Hermit Hacker To: BSD In-Reply-To: <20030726194123.GA23196@Amber.XtremeDev.com> Message-ID: <20030727015915.F81611@hub.org> References: <20030726112605.E439@firewire.nightrealmstudios.com> <20030726194123.GA23196@Amber.XtremeDev.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org cc: User KATRINA Subject: Re: Sharing among jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2003 05:03:10 -0000 On Sat, 26 Jul 2003, BSD wrote: > IMHO, the best way would be to use mount_union or mount_null (I still > can't figure out what's the difference between them...) of the ports > directory. However, that said, I tried that myself about a year back, > and accesses in the jail caused my FreeBSD machine to lock up solid. So > I guess the warnings in the BUGS section of the mount_union and > mount_null man pages are still in full effect. *Alot* has changed in a year ... I use UNIONFS to share between 60 jails on one server right now, and the server has been purring *knock on wood* up 19+08:28, 0 users, load 10.66, 11.52, 10.17 As for the difference between UNION and NULL ... and someone more knowledge will hopefully correct me, but based on my experience ... If you UNIONfs a file system over top of another, you can use NULLfs to "seperate" the two ... as an example, if you UNIONFS /usr/ports under /jail/usr/ports and do a du of /jail/usr/ports, you will get everything ... if you NULLFS mount /jail/usr/ports to /null/usr/ports, and do /null/usr/ports, you will get only those files that are *on* /jail/usr/ports ... Basically, NULLFS gives the same result as if you unmounted the UNIONFS and looked at /jail/usr/ports ...