From owner-freebsd-questions@FreeBSD.ORG Wed Aug 6 12:22:51 2008 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 AFE371065671 for ; Wed, 6 Aug 2008 12:22:51 +0000 (UTC) (envelope-from rkramer@mweb.com) Received: from mwbmarshal.mweb.com (mwbmarshal.mweb.com [196.2.141.6]) by mx1.freebsd.org (Postfix) with ESMTP id A63468FC2C for ; Wed, 6 Aug 2008 12:22:49 +0000 (UTC) (envelope-from rkramer@mweb.com) Received: from mwbfes1.mweb.com (Not Verified[196.2.141.73]) by mwbmarshal.mweb.com with NetIQ MailMarshal 6.0 Service Pack 1 (v6, 0, 3, 28) id ; Wed, 06 Aug 2008 14:22:46 +0200 Received: from MWBEXCH.mweb.com ([196.2.141.75]) by mwbfes1.mweb.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 6 Aug 2008 14:22:46 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 6 Aug 2008 14:22:45 +0200 Message-ID: <39DC135F7F0571489196E0B6F5D58B4A03B45FDE@MWBEXCH.mweb.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Upgrading from 6.x to 7.x Thread-Index: Acj3nkjoWT9QxgAOSMWJuetnHhnGbAAGrROw References: <200808061826.34644.shinjii@maydias.com> From: "Rudi Kramer - MWEB" To: "Warren Liddell" , X-OriginalArrivalTime: 06 Aug 2008 12:22:46.0295 (UTC) FILETIME=[22193270:01C8F7BF] Cc: Subject: RE: Upgrading from 6.x to 7.x 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: Wed, 06 Aug 2008 12:22:51 -0000 > 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