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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to