Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2004 16:17:59 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        hal <hal@cc.usu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Keeping multiple machine up to date
Message-ID:  <20040302161759.GA42948@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <9135F686-6C60-11D8-B2F8-000A959670A0@cc.usu.edu>
References:  <9135F686-6C60-11D8-B2F8-000A959670A0@cc.usu.edu>

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

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

On Tue, Mar 02, 2004 at 08:45:01AM -0700, hal wrote:
> I have 10 FreeBSD machines which I need to keep
> up to date software wise.  Half of the machines
> only have access to the local network.  On the
> machines which have network access I use cvsup.
> Cvsuping multiple machines is time consuming, is
> there a better way?  What is the conventional
> wisdom for keeping many machines up to date?
>=20
> A pointer to an FAQ or something would be great.

The usual thing in this situation is to choose one machine as your
local repository for sources, run cvsup(1) on that, and then
distribute the sources from there to the rest of your systems.

There's several variations on doing that.  Perhaps the simplest thing
to do is just cvsup(1) the ports onto a designated build machine, use
that machine to build packages for all of the others and either share
out /usr/ports/packages by NFS or setup an anoymous FTP server.

Alternatively, you can just NFS export your /usr/ports directory to
all of the machines on your network, and build stuff on each machine.
A good idea when doing this is to set WRKDIRPREFIX and maybe DISTDIR
in your environment (see ports(7)), or in pkgtools.conf (if you're a
portupgrade user) to point to chunk of diskspace held locally to each
machine.  That will let you avoid thrashing your network when building
ports.  If you have a local DISTDIR on each machine you can export
your /usr/ports read only which can be an advantage.  Nb. to avoid
repeatedly downloading the same source tarballs, either share out
/usr/ports/distfiles or set DISTDIR to a local directory and use
MASTER_SITE_OVERRIDE to force the client machines to try and get the
distfiles from a local server before they go out to the net.

The most flexible way of doing this sort of thing is to set up a
machine as a cvsup(1) mirror or a CVS server, and pull down the CVS
repository onto it.  There's a net/cvsup-mirror port to help you do
that.  Then you can either cvsup(1) you client machines against the
local cvsup server, which is blindingly fast on a 100Mb/s network and
even better if your local server has a fast disk system, or you can
use CVS to check the ports tree out of that server.

There's some description of all this sort of thing in the handbook --
see

    http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/small-lan.html

but it doesn't say much more than I've put in this e-mail.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFARLO3dtESqEQa7a0RAsgNAJ9mWc3JvNpQTUBie9IVn6YHX6NcFwCaA/GN
ew3cOfFAhSC5/40Knmvv6yM=
=7tVC
-----END PGP SIGNATURE-----

--gKMricLos+KVdGMg--



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