From owner-freebsd-stable@FreeBSD.ORG Fri May 18 23:27:12 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E30D16A400 for ; Fri, 18 May 2007 23:27:12 +0000 (UTC) (envelope-from Hans.F.Nordhaug@hiMolde.no) Received: from sil.himolde.no (sil.hiMolde.no [158.38.83.3]) by mx1.freebsd.org (Postfix) with ESMTP id DC32713C480 for ; Fri, 18 May 2007 23:27:11 +0000 (UTC) (envelope-from Hans.F.Nordhaug@hiMolde.no) Received: from malle.himolde.no ([158.38.68.22]) by sil.himolde.no with InterScan Message Security Suite; Sat, 19 May 2007 00:57:09 +0200 Received: from harr.himolde.no (harr.hiMolde.no [158.38.68.20])by malle.himolde.no (8.12.11.20060308/8.12.8) with ESMTP id l4IMv6aP001825;Sat, 19 May 2007 00:57:06 +0200 Received: from harr.himolde.no (localhost.localdomain [127.0.0.1])by harr.himolde.no (8.13.1/8.13.1) with ESMTP id l4IMv63x002051; Sat, 19 May 2007 00:57:06 +0200 Received: (from nordhaug@localhost)by harr.himolde.no (8.13.1/8.13.1/Submit) id l4IMv5gA002050;Sat, 19 May 2007 00:57:05 +0200 Date: Sat, 19 May 2007 00:57:05 +0200 From: "Hans F. Nordhaug" To: freebsd-stable@freebsd.org Message-ID: <20070518225705.GA2009@hiMolde.no> References: <20061019193846.GA6209@hiMolde.no> <45380731.9010004@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <45380731.9010004@freebsd.org> User-Agent: Mutt/1.4.1i X-imss-version: 2.047 X-imss-result: Passed X-imss-approveListMatch: *@*.no Cc: Colin Percival Subject: Re: daemonology.net instructions - binary upgrade 5.3 to 6.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 23:27:12 -0000 * Colin Percival [2006-10-20]: > Hans F. Nordhaug wrote: > > At daemonology.net Colin Percival has some excellent instructions on > > how to do binary upgrades - he has even written a script to do a 6.0 > > to 6.1 upgrade. My question is: Can I do a 5.3 to 6.1 upgrade using > > the instructions for "5.4 system to FreeBSD 6.0" - see > > http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/ > > Or, should I upgrade 5.3 to 6.0 and finally use the script to > > get from 6.0 to 6.1? I assume the former, but just want to be sure. > > Either option will probably work; but I've never done a 5.3->6.0 binary > upgrade directly, so I can't guarantee that it will work. :-) OK, I finally had some time to upgrade my server, and I ended up doing an upgrade from 5.3 to 6.2 directly following your instructions on http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/ It didn't go very well. It took me many hours to find out what went wrong - the kernel wasn't upgraded. (I was running with a 6.2 userland and a 5.3 kernel.) Digging some more I found the problem: In step 7 we generate /usr/base.tgz by doing cat /mnt/6.0-RELEASE/${dist}/${dist}.?? > /usr/${dist}.tgz (where $dist is one of base dict doc manpages) or in my case cat /mnt/6.2-RELEASE/${dist}/${dist}.?? > /usr/${dist}.tgz If you look at the base.tgz created from 6.2-RELEASE-i386-disc1.iso you'll notice it contains an empty /boot/kernel directory !!! If you look at the /boot/kernel directory of the CD everything is present ... I wonder if this a mistake when creating the 6.2-RELEASE/base/base.?? files on the disc or if this is an intentional change from 6.0 to 6.2? After getting the new kernel in place things turned out OK. Well, actually I got a new surprise - all my config files were overwritten. I created the file /root/base-modified (as explained in the instructions). I then did for dist in base dict doc manpages catpages info; do /rescue/tar -Uxpzf /usr/${dist}.tgz -X /root/base-modified -C / done as explained, but still the files in /etc was overwritten - for example /etc/passwd even if that file is listed in /root/base-modified. Could it be that /rescue/tar is seeing "etc/passwd" in base.tgz and hence doesn't exclude "/etc/passwd". Anyway, I did have a back-up. Regards, Hans PS! In step 17 - portsnap has moved in the Ports collection. The new location /usr/ports/ports-mgmt/portsnap. @Colin: I'm not in anyway blaming you - I'm completely aware of the fact that the instructions were for 5.4 -> 6.0. I'm just sharing my experience if someone considers doing a 5.X -> 6.2 upgrade...