From owner-freebsd-hackers Wed Feb 27 16:14:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from nothing-going-on.demon.co.uk (pc-62-31-42-140-hy.blueyonder.co.uk [62.31.42.140]) by hub.freebsd.org (Postfix) with ESMTP id 0B20237B402; Wed, 27 Feb 2002 16:14:32 -0800 (PST) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.3/8.11.3) id g1RNrLO05638; Wed, 27 Feb 2002 23:53:21 GMT (envelope-from nik) Date: Wed, 27 Feb 2002 23:53:20 +0000 From: Nik Clayton To: Kirk Strauser Cc: Patrick Thomas , 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> References: <20020227124518.X67780-100000@utility.clubscholarship.com> <878z9ek580.fsf@pooh.int> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="/Uq4LBwYP4y1W6pO" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <878z9ek580.fsf@pooh.int>; from kirk@strauser.com on Wed, Feb 27, 2002 at 03:03:11PM -0600 Organization: FreeBSD Project 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 --/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 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-hackers" in the body of the message