From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 02:43:36 2010 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 296721065675 for ; Mon, 19 Jul 2010 02:43:36 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id E4A1A8FC13 for ; Mon, 19 Jul 2010 02:43:35 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id o6J2hWZM008944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jul 2010 21:43:32 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.4) with ESMTP id o6J2hWwa029573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jul 2010 21:43:32 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.3/Submit) id o6J2hWOA029572; Sun, 18 Jul 2010 21:43:32 -0500 (CDT) (envelope-from dan) Date: Sun, 18 Jul 2010 21:43:31 -0500 From: Dan Nelson To: Yuri Message-ID: <20100719024331.GK5485@dan.emsphone.com> References: <4C43AE4D.80501@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C43AE4D.80501@rawbw.com> X-OS: FreeBSD 8.1-PRERELEASE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: clamav-milter 0.96 at email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Sun, 18 Jul 2010 21:43:32 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org Subject: Re: Is there a script to upgrade i386 system to amd64 ? 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: Mon, 19 Jul 2010 02:43:36 -0000 In the last episode (Jul 18), Yuri said: > Since this is something that potentially almost everyone would need at > least once this should be made very easy for the end user. When I did it, I believe I just made copies of /usr/lib and /usr/local/lib to ../lib32 (so 32-bit ports would still work), installed the 64-bit kernel and world, rebooted, then upgraded all the ports over a week or so. I was running zfs so I made a snapshot of the 32-bit system as it was just before the install. A 64-bit buildworld and GENERIC kernel both default to enabling 32-bit support and compat libraries, and I believe a 64-bit kernel will boot and run a 32-bit world, so compatibility is good. Just be aware that binary file formats for programs installed via ports may differ, so things like rrdtool datafiles and mysql databases will need to be dumped to text form and reloaded. That's where the 32-bit snapshot came in handy (so I had access to the 32-bit binaries after my port upgrades finished and could dump using old binaries then reload using the new ones as I discovered problems). -- Dan Nelson dnelson@allantgroup.com