From owner-freebsd-questions@FreeBSD.ORG Mon Nov 1 20:36:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8AA10656C0 for ; Mon, 1 Nov 2010 20:36:52 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.freebsd.org (Postfix) with ESMTP id 307928FC27 for ; Mon, 1 Nov 2010 20:36:51 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id oA1KaoDF034834; Mon, 1 Nov 2010 21:36:50 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 0AFF3BAAC; Mon, 1 Nov 2010 21:36:50 +0100 (CET) Date: Mon, 1 Nov 2010 21:36:50 +0100 From: Roland Smith To: David N Message-ID: <20101101203649.GA33316@slackbox.erewhon.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: Managing ports on multiple jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2010 20:36:52 -0000 --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. > 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--