Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 14:32:03 -0800 (PST)
From:      Patrick Thomas <root@utility.clubscholarship.com>
To:        Nik Clayton <nik@freebsd.org>
Cc:        Kirk Strauser <kirk@strauser.com>, <freebsd-hackers@freebsd.org>, <freebsd-emulation@freebsd.org>
Subject:   Re: using vnconfig devices instead of partitions for jails ?
Message-ID:  <20020228143046.F29049-100000@utility.clubscholarship.com>
In-Reply-To: <20020227235320.C4562@canyon.nothing-going-on.org>

next in thread | previous in thread | raw e-mail | index | archive | help

thank you - I am glad to see that this is a good way of doing things.  Two
quick items:

1. How do I give each jail a 'proc' filesystem in its /proc using this
configuration ?

2. Is there any downside to this whatsoever ?  This seems infinitely
better than a new partition for each jail, so was I just silly for doing
it that way ?

thanks!

On Wed, 27 Feb 2002, Nik Clayton wrote:

> 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.
> > >
> > > 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.
> >
> > Good question.  Is there any ability at all within the system to set a quota
> > 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
> 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
> --
> 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 ---         .\._/_)
>


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?20020228143046.F29049-100000>