Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2002 11:02:12 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Stefanos Kiakas <stefanos@e-scape.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: jail
Message-ID:  <3DE66834.B2333404@mindspring.com>
References:  <200211282309.SAA95904@corp.e-scape.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DE66834.B2333404>