From owner-freebsd-hackers Thu Nov 28 11: 3:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0798737B401 for ; Thu, 28 Nov 2002 11:03:38 -0800 (PST) Received: from mallard.mail.pas.earthlink.net (mallard.mail.pas.earthlink.net [207.217.120.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 532A943E88 for ; Thu, 28 Nov 2002 11:03:37 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0388.cvx22-bradley.dialup.earthlink.net ([209.179.199.133] helo=mindspring.com) by mallard.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18HTwg-0004g5-00; Thu, 28 Nov 2002 11:03:30 -0800 Message-ID: <3DE66834.B2333404@mindspring.com> Date: Thu, 28 Nov 2002 11:02:12 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Stefanos Kiakas Cc: freebsd-hackers@freebsd.org Subject: Re: jail References: <200211282309.SAA95904@corp.e-scape.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stefanos Kiakas wrote: > Jean Milanez Melo wrote: > > I run a number of jail enviroments in a public server, so, i would like to > > limit the disk usage of each jail to, say, X GB. Lets think of a practical > > issue. I have 40GB storage space, and what i want is to limit disk usage > > to 5GB each jail. > I believe it has been discussed on one of these lists before. > > Create a file that is 5G and use vnconfig to define pseudo disk > device, create a new file system using newfs, then create the jail. Note that the vnode file code is moderately broken, with regard to locks and GEOM and all that. To avoid lockups if you do this, make sure each 5G file lives in its own subdirectory, and does not share a subdirectory with another file that is also being used as a device. Otherwise, it's fairly easy to lock up, and in fact, the cron job for the security notification's "find" in the main vs. the jailed system will cause it to lock hard. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message