From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 19:06:22 2009 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 CBC361065670 for ; Mon, 20 Apr 2009 19:06:22 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 550BD8FC1B for ; Mon, 20 Apr 2009 19:06:22 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n3KJ6JZI078111; Mon, 20 Apr 2009 20:06:20 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n3KJ6JZI078111 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1240254380; bh=9BKn7sR0QiBNPzXInFeukT/1kgj+E46drCv8sc03mlk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<49ECC7A5.8020002@infracaninophile.co.uk>|Date:=20M on,=2020=20Apr=202009=2020:06:13=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.21=20(X11/20090407)|MIME-Vers ion:=201.0|To:=20Tom=20Worster=20|CC:=20freebsd-qu estions@freebsd.org|Subject:=20Re:=20portmaster=20-a=20on=20a=20li ve=20server|References:=20|In-Reply- To:=20|X-Enigmail-Version:=200.95.6| Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A =20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"- -----------enigDE031CFCE91F3D994C97967D"; b=hSSN8EqMsERutSZ9ChiSDnkClnSuI9jLVhdE1oMkX+0/fhHRHCU2sVpK+rgsvTKbY EjC594bCa5caP74oikiURddAVD7oU84yl0TQ6DUwDJ5p7nxXoFQv5NFMYbrIn0Cd5X gzj9WqdsoCDgkZl1fUrVLSn8zLlGaVd/YMwoltx4= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <49ECC7A5.8020002@infracaninophile.co.uk> Date: Mon, 20 Apr 2009 20:06:13 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.21 (X11/20090407) MIME-Version: 1.0 To: Tom Worster References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigDE031CFCE91F3D994C97967D" X-Virus-Scanned: clamav-milter 0.95.1 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: portmaster -a on a live server 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, 20 Apr 2009 19:06:23 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDE031CFCE91F3D994C97967D Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Tom Worster wrote: > though all i really need is mysql/apache/php i have about 100 ports > installed and portmaster -a takes a long time to complete (hour or two)= =2E >=20 > so i'm wondering if i ought to be concerned about new binaries being > installed over the old ones on the disk while the old images are loaded= and > running as daemons. >=20 > instead of doing portmaster -a, is there any advantage to: >=20 > portmaster -a -x mysql\-server -x apache > portmaster mysql\-server apache > reboot=20 >=20 > in order to minimize the time that the old servers are running while th= e new > images are on the disk? > Many ports will shut down a running instance of themselves when upgraded like this specifically to avoid the sort of complications that can occur when the running image does not match what is on disk. mysql does, apache doesn't. =20 So upgrade mysql-server last thing before you reboot. Although I know yo= u're not using portupgrade, this snippet from pkgtools.conf has been a blessin= g in minimizing outage lengths during updates on live servers: AFTERINSTALL =3D { '*' =3D> proc { |origin| cmd_start_rc(origin) }, } Of couse, the best course of action is to plan sufficient downtime that y= ou can do the upgrades comfortably plus recover from any number of ways thin= gs might go wrong, but sometimes that simply isn't possible. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigDE031CFCE91F3D994C97967D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAknsx6oACgkQ8Mjk52CukIzPmwCfRCqtlZmSbzOBooatJwC+utD/ uwAAnj6WoJcFnYXURSLgMP/zmHPxq0wy =G2yq -----END PGP SIGNATURE----- --------------enigDE031CFCE91F3D994C97967D--