Date: Wed, 27 Feb 2002 23:53:20 +0000 From: Nik Clayton <nik@freebsd.org> To: Kirk Strauser <kirk@strauser.com> Cc: Patrick Thomas <root@utility.clubscholarship.com>, freebsd-hackers@FreeBSD.ORG, freebsd-emulation@FreeBSD.ORG Subject: Re: using vnconfig devices instead of partitions for jails ? Message-ID: <20020227235320.C4562@canyon.nothing-going-on.org> In-Reply-To: <878z9ek580.fsf@pooh.int>; from kirk@strauser.com on Wed, Feb 27, 2002 at 03:03:11PM -0600 References: <20020227124518.X67780-100000@utility.clubscholarship.com> <878z9ek580.fsf@pooh.int>
next in thread | previous in thread | raw e-mail | index | archive | help
--/Uq4LBwYP4y1W6pO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 27, 2002 at 03:03:11PM -0600, Kirk Strauser wrote: > At 2002-02-27T20:49:18Z, Patrick Thomas <root@utility.clubscholarship.com= > writes: > > I would like to put a large number of jails (16 or 20) on a server for > > testing purposes. > >=20 > > I have two options so far: create 16 or 20 partitions OR just put them = all > > in one partition, but the downside of that is that then I cannot enforce > > disk usage between jails. So at this point, 16-20 partitions seems the > > safest route. >=20 > Good question. Is there any ability at all within the system to set a qu= ota > on a jail? Each vn* device has to be baced by a physical file on the system. Simply make sure that this physical device is the maximum size you want to allow in the jail. For example, on a server with 160GB of (RAID) disk, and 12 jails, each 10GB= =20 in size, I just have 12 jails; On the 'master' host for the jails. # cd /usr/local/jails/disk-images # ls -l totall 1758115 drwxr-xr-x 2 root wheel 512 Jan 23 00:40 . drwxr-xr-x 4 root wheel 512 Jan 23 00:39 .. -rw-r--r-- 1 root wheel 136 Jan 22 18:45 README -rw-r--r-- 1 root wheel 10737418240 Feb 27 23:35 foo.com.vn -rw-r--r-- 1 root wheel 10737418240 Feb 27 23:35 bar.com.vn -rw-r--r-- 1 root wheel 10737418240 Feb 27 23:35 baz.com.vn ... These were created with "truncate 10G file", and are then mounted configued on different vn* devices, which are then mounted as normal. # mount ... /dev/vn0a on /usr/local/jails/foo.com /dev/vn1a on /usr/local/jails/bar.com /dev/vn2a on /usr/local/jails/baz.com ... N --=20 FreeBSD: The Power to Serve http://www.freebsd.org/ (__) FreeBSD Documentation Project http://www.freebsd.org/docproj/ \\\'',) \/ \= ^ --- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 --- .\._/= _) --/Uq4LBwYP4y1W6pO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjx9cW8ACgkQk6gHZCw343Ub6QCfd9ZpULzClh4ZAlw6GqFZwruc vdkAn21PQ5CkRRN0pneTnlOE6q3zOoJ4 =gN1u -----END PGP SIGNATURE----- --/Uq4LBwYP4y1W6pO-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020227235320.C4562>