From owner-freebsd-questions@FreeBSD.ORG Sun Feb 26 22:19:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFEEB16A420 for ; Sun, 26 Feb 2006 22:19:03 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FA6B43D45 for ; Sun, 26 Feb 2006 22:19:03 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so752181nzd for ; Sun, 26 Feb 2006 14:19:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QZRE6FPctjBhTGdOKjIuyZX8IkhIqYQ6LsQtU5jhNb71e7iRChsLS0UIbnn+IXw9iEbFfKcO3/UJ5QxNlKfc7+UsrTNXRuDEEkTNch/N6lBvS1HKPXj0c7FkrA08d5/9waHo2HMEL6sZiSFAy95IKqL7tiCN8vTkeMxVBCYmm8Q= Received: by 10.36.220.54 with SMTP id s54mr3110127nzg; Sun, 26 Feb 2006 14:19:02 -0800 (PST) Received: by 10.37.20.11 with HTTP; Sun, 26 Feb 2006 14:19:02 -0800 (PST) Message-ID: Date: Mon, 27 Feb 2006 01:19:02 +0300 From: "Andrew Pantyukhin" To: "pobox@verysmall.org" In-Reply-To: <4401F701.10202@verysmall.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4401F701.10202@verysmall.org> Cc: freebsd-questions@freebsd.org Subject: Re: advice on upgrading production FreeBSD 5.4 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: Sun, 26 Feb 2006 22:19:03 -0000 On 2/26/06, pobox@verysmall.org wrote: > I inherited a production FreeBSD 5.4 used as a web/mail server (Apache, > PostgreSQL, php, qmail, vpopmail, Courier). Could anybody help me with > information about a web resource on upgrading such system (all, OS only > or component by component) with minimum downtime. I looked into cvsup > and portupgrade - is this the right way for production systems or is > there another one? For example is it possible to have the older version > running until the new one downloads/compiles and then to replace it > within seconds? Also - what if the new version does not work correctly - > is it possible to keep the old and revert to it. > > Thank you, > Iv > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > First, you'd better upgrade to 6.1. Read /usr/src/UPDATING and handbook for that. Then use portupgrade to upgrade critical services one by one. Most of the time it happens just as you describe it. Sometimes a service is stopped automatically when new binaries are installed, so you have to /usr/local/etc/rc.d/ /whatever start when you upgrade things like mysql. Then use portupgrade -ak to upgrade the rest of your software and ensure they look good afterwards.