From owner-freebsd-stable@FreeBSD.ORG Tue Mar 24 17:31:57 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42FB51065985 for ; Tue, 24 Mar 2009 17:31:57 +0000 (UTC) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (manor.msen.com [148.59.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id DE14E8FC0C for ; Tue, 24 Mar 2009 17:31:55 +0000 (UTC) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (localhost [127.0.0.1]) by manor.msen.com (8.12.11/8.12.11) with ESMTP id n2OGqGFe046425 for ; Tue, 24 Mar 2009 11:52:16 -0500 (EST) (envelope-from wayne@manor.msen.com) Received: (from wayne@localhost) by manor.msen.com (8.12.11/8.12.11/Submit) id n2OGqFLt046424 for stable@freebsd.org; Tue, 24 Mar 2009 11:52:15 -0500 (EST) (envelope-from wayne) Date: Tue, 24 Mar 2009 11:52:15 -0500 From: "Michael R. Wayne" To: stable@freebsd.org Message-ID: <20090324165215.GA79638@manor.msen.com> Mail-Followup-To: stable@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: setting quotas from inside a jail X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 17:32:02 -0000 On Tue, Mar 24, 2009 at 03:05:05AM -0400, Charles Sprickman wrote: > > The subject describes my goal. I'm aware of the usual caveats - if > there's more than one jail, no UID overlap, this will really only work in > one jail if all jails are on the same filesystem, etc. > > I found a very, very old post that has an... interesting... technique: > > http://groups.google.com/group/mpc.lists.freebsd.hackers/msg/2b92fc66ac72efa6?hl=en > > It actually works. "It" being I suppose the fstab trickery in the jail. > I need to test this some more, but it does seem possible to edit quotas > inside the jail, which is my basic goal. I don't want my provisioning box > to have to hit the host just to alter quotas in one jail that needs them. > > Just looking for any warnings/caveats about the above and what might be > different 6+ years later... That's my post. Yes, we still do this. It still works. Over time, sometimes things get out of sync. If that happens, go to S, shut off quotas, do a quotacheck, turn them back on. /\/\ \/\/