Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2006 01:19:02 +0300
From:      "Andrew Pantyukhin" <infofarmer@gmail.com>
To:        "pobox@verysmall.org" <pobox@verysmall.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: advice on upgrading production FreeBSD 5.4
Message-ID:  <cb5206420602261419y519ea8e5g972fe3fc15a04488@mail.gmail.com>
In-Reply-To: <4401F701.10202@verysmall.org>
References:  <4401F701.10202@verysmall.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/26/06, pobox@verysmall.org <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.



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