Date: Fri, 22 Apr 2011 22:17:05 -0400 From: "J. Hellenthal" <jhell@DataIX.net> To: Eirik =?iso-8859-1?Q?=D8verby?= <ltning@anduin.net> Cc: "freebsd-jail@freebsd.org" <freebsd-jail@freebsd.org> Subject: Re: limiting jail size Message-ID: <20110423021705.GA30454@DataIX.net> In-Reply-To: <4785B5A9-27FC-43F2-A942-23488A932A96@anduin.net> References: <BANLkTimCB-0no0vH07u6CQ0%2B81YXB2c=Rg@mail.gmail.com> <4785B5A9-27FC-43F2-A942-23488A932A96@anduin.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--9amGYk9869ThD9tj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 22, 2011 at 07:39:46AM +0200, Eirik =D8verby wrote: >Hi, > >No problem. Use ZFS :) >And dozens or even hundreds of jails are possible; limited only by RAM and= kern.maxfiles .. > >/Eirik > >On 22. apr. 2011, at 06:31, Mickey Harvey <mh.unet@gmail.com> wrote: > >> I was wondering if there is an easy way to limit the amount of hard drive >> space a jail can take up. Say I have 20 jails on a system would this eve= n be >> possible? ZFS is not the only way to limit the jails there certainly is an abundance of other things you can work at doing to if your limited. For example: # mkdir /exports/jail1 # truncate -s 2g /exports/jail1.vnode # mdconfig -f /exports/jail1.vnode # newfs -O2 /dev/md0 # mount /dev/md0 /exports/jail1 # <install your environment to /exports/jail1> # <add whatever else is needed to rc.local or rc.conf> And you now have a 2G portable jail without all the copy this here that there mess if you have to back it up just copy the file over to another jail to adjust for a second running jail and so on. This is slightly incomplete to a full setup but should be enough to paint the beginning of the picture for you. Happy Trees! --=20 Regards, J. Hellenthal WWJD --9amGYk9869ThD9tj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNsjahAAoJEJBXh4mJ2FR+e0oH/RTnh//3cLz7GJTa7fEPmSPD uvUPkG8gSeDgPCYDowZFQ58Y3rfCKdynJT4kLRvNqy+LIYxHXM2XRRymglGsAUFk sSdNR/Op41vHNcQE7jjHHCfWKVvCzer5I/JuwcKGp8f9A++wiBlZkpHpu7Fwr+HM 09LJiUoy9qh/R+++tN/ofL2qJJOfFssS4oQ1Rj1MYMKrTUns94QtgpUkZ2tFdJ0d aIHJIzvM7oBowtIDJfjgXakvqVGe0hpw7/Ouh2yLS3eSjAA4JzLkOzgCcXsk2h3h 0uTvqxNTpgOWPS1aYT/lSfSckjMsJzf2c9UJA4PNYe8EFI52mPaWXc8P6Zc4Ifg= =TU7a -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110423021705.GA30454>