Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2010 21:36:50 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        David N <davidn04@gmail.com>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Managing ports on multiple jails
Message-ID:  <20101101203649.GA33316@slackbox.erewhon.net>
In-Reply-To: <AANLkTimrPwtxFcQ--1ip6pMTvw_WJSQBRG3uzw%2BGkN_6@mail.gmail.com>
References:  <AANLkTimrPwtxFcQ--1ip6pMTvw_WJSQBRG3uzw%2BGkN_6@mail.gmail.com>

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

--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 01, 2010 at 11:47:16PM +1100, David N wrote:
> Hi,
>=20
> I have multiple jails using ezjails, approx 20.
<snip>
> Does anyone have any other ways to quickly upgrade multiple jails or
> even multiple boxes?

If you don't mind that all 20 boxes have the same software installed;

1)  Use one box or jail as the build box. Only this box/jail needs a ports
    tree. The others don't need /usr/ports, nor /var/db/ports or /var/db/pk=
g.
2a) In case of real boxes, rsync /usr/local from the build box to the other
    boxes. Then re-start updated ports. =20
2b) In case of jails, have all but the build jail share (a read-only)
    /usr/local via nullfs. Use rsync to copy /usr/local from the build jail=
 to
    the shared location of the other jails, then restart the upgraded ports=
 on
    all jails.

Except from /usr/local, you might need to update stuff in other parts of the
filesystem, depending on the port. Like /etc/rc.conf, or sometimes stuff in
/var.=20

The usage of nullfs (with unionfs) is described on one of my web pages:
http://www.xs4all.nl/~rsmith/unix/misc.html
Look under the section "Using nullfs and unionfs for the ports tree in a ja=
il".

Hope this helps.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--KsGdsel6WgEHnImy
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAkzPJOEACgkQEnfvsMMhpyVn+wCgm6dL93GVlRVdqPg49HzPfVE0
5mcAnjQDt6ttgnBz8rD7rUfpV5vOME9C
=Kn0E
-----END PGP SIGNATURE-----

--KsGdsel6WgEHnImy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101101203649.GA33316>