From owner-freebsd-isp Tue Jan 15 3:45:46 2002 Delivered-To: freebsd-isp@freebsd.org Received: from axis.tdd.lt (axis.tdd.lt [213.197.128.94]) by hub.freebsd.org (Postfix) with ESMTP id 7AB4337B417 for ; Tue, 15 Jan 2002 03:45:43 -0800 (PST) Received: from localhost (midom@localhost) by axis.tdd.lt (8.11.6/8.11.6) with ESMTP id g0FBkQr60226; Tue, 15 Jan 2002 13:46:26 +0200 (EET) (envelope-from midom@delfi.lt) X-Authentication-Warning: axis.tdd.lt: midom owned process doing -bs Date: Tue, 15 Jan 2002 13:46:26 +0200 (EET) From: Domas Mituzas X-X-Sender: To: Matiss Elsbergs Cc: Subject: Re: Jail quota In-Reply-To: Message-ID: <20020115134344.G58690-100000@axis.tdd.lt> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi there, > Hello there, fellow owners of all system processes, > I believe, that this question has been discussed, and not once. > But - here it goes again.. > How to limit disk usage, when running jail environment? > Do I need to setup an user x, set a quota for him, and run a jail as this > user? > Are there any other ways? > rgds, Matis actually in normal file system quotas are mapped to user ID's. In order to have separate quotas for jails, you should: a) Either to have separate vnode based file system for each jail. b) Try to find jailfs extension to nullfs (some guy on IRC told he developed it :) Then you'd be able to have separate quotas for distinct parts of one filesystem. c) Have different uid spaces for each jail (10000-10999,11000-11999,...) and set quotas from master system. Regards, Domas Mituzas DELFI Internet, UAB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message