Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 2008 14:22:45 +0200
From:      "Rudi Kramer - MWEB" <rkramer@mweb.com>
To:        "Warren Liddell" <shinjii@maydias.com>, <freebsd-questions@freebsd.org>
Subject:   RE: Upgrading from 6.x to 7.x
Message-ID:  <39DC135F7F0571489196E0B6F5D58B4A03B45FDE@MWBEXCH.mweb.com>
References:  <200808061826.34644.shinjii@maydias.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Warren Liddell=20
> I have read a lot of ways an issues with upgrading to 7.x from 6.x ...
the
> main place that seemd ot have someewhat simple guidelines was
> http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-6x-7x.txt  ..
however
> i wanted to know if that is the most simplest an efficent way to go
about the
> process ?
>=20
> The reason i ask as this machine is a production system and cant
afford for
> any down time or in theory anything to break to cause down time in the
> system.
>=20
> Any thoughts etc are always welcomed.

We have upgraded quite a few FreeBSD 6.2 and 6.3 servers to 7.0 and the
only problems we've had have been caused by admin-input :-)

!!!ACHTUNG !!!! DANGER!!! !!!GEWAAR !!! INKOZI!!!!

Any upgrade or patching can potentially lead to a non-functioning
server. The best way to do an upgrade is pre-test the upgrade on similar
hardware, same software and also the same FreeBSD version.

So load up a FreeBSD 6.2 server, install all the apps you use on your
production server  and then go through the upgrade steps and make sure
that everything is working before you go ahead with the live update.
This also gives you good practice. Backups are also essential in case
the sever dies and you need to get it back in a hurry.

Now back to updating:

The doc by Ralf looks very comprehensive but also very complicated; it
also differs slightly from the FreeBSD handbook.
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.htm
l)

The easiest way to do the upgrade (if you are using a GENERIC kernel) is
to use Freebsd-update (http://www.daemonology.net/freebsd-update/)

It's a pretty powerful tool which allows you to do binary updates for
FreeBSD.=20

To upgrade between major versions you would want to check out this page:
http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade
.html.


The second more difficult method which is recommended by the FreeBSD
handbook and slightly tweaked by me is as follows:

1) Get the latest source=20

# cp /usr/share/examples/cvsup/stable-supfile /usr/local/etc/

2) Edit the supfile, replace CHANGE_THIS.FreeBSD.org with your closet
mirror
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CV
SUP-MIRRORS)

#csup /usr/local/etc/stable-supfile

3) less /usr/src/UPDATING and check for any warnings, notes, letters to
the editor etc.

4) Perform Update:

#  cd /usr/src
# make buildworld
# make buildkernel
# make installkernel
# reboot
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster - (all files except those that have been manually edited)
# reboot

!done!

If you have a custom kernel you would change Step #4 to the following:

#  cd /usr/src
# make -j10 buildworld
# make buildkernel KERNCONF=3Dkernelname
# make installkernel KERNCONF=3Dkernelname
# reboot
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster - all files except /etc/hosts, /etc/motd, /etc/passwd,
# reboot

!!done!!

Rudi



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