From owner-freebsd-stable@FreeBSD.ORG Wed Nov 19 15:44:37 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 73F11EC9; Wed, 19 Nov 2014 15:44:37 +0000 (UTC) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E6CA4961; Wed, 19 Nov 2014 15:44:36 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id l4so699919lbv.38 for ; Wed, 19 Nov 2014 07:44:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Hdj3mVVGWIb/q9fiwL9rqRLASsyEjqqxHED6pAFX3Sc=; b=jssc+SuwhbG+iPm/BYAmgNUgtIM5IgYceALtddzjUdRX+YP3k9gUEwrfcqK9lidMX9 3p62k7QFhJFISl0/TVfwVgl2N7eeMAcCi62D4KMLM3OtQ9lb5d7KjkbVYfq+1FIzNX4j /AmRkVNwYmde6Kmcx5cGcPvHdmIeadwWiZ+E1D6Sl3o4yLKN9I5OiZiCd1E8e9yYebRF yteB8/mqK39frMCgC51ZIiGP/NZAygIJ9xKov7YiSmLRamrO7y7EjbpWclSr2LvgAGK0 mvtqfRu6xUGR8ONkMfdAFwLNeVw31ytVeiodECR0grhkVfMt0Cju529Fswa4rgkK7DRc wLvA== X-Received: by 10.152.42.172 with SMTP id p12mr42627440lal.11.1416411875122; Wed, 19 Nov 2014 07:44:35 -0800 (PST) MIME-Version: 1.0 Sender: royce.williams@gmail.com Received: by 10.112.171.73 with HTTP; Wed, 19 Nov 2014 07:44:14 -0800 (PST) In-Reply-To: References: From: Royce Williams Date: Wed, 19 Nov 2014 06:44:14 -0900 X-Google-Sender-Auth: 1xWx8YWt9XwSDZxFjReHoYpBLhM Message-ID: Subject: Re: best overall upgrade from 8.x? To: Craig Rodrigues Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 15:44:37 -0000 On Mon, Nov 17, 2014 at 9:55 PM, Craig Rodrigues wrote: > On Fri, Nov 14, 2014 at 7:44 PM, Royce Williams wrote: >> >> I have some 8.x boxes that I'm looking to start planning to transition >> before 8.4 is likely to go EOL next year. >> >> All other things being equal, what's the general consensus on where to >> upgrade to from 8.x ... 9.x, or 10.x? The original intent of my question was not very clear. I happen to be tracking -RELEASE with freebsd-update, but my question was really intended to be a "which one is better, 9.x or 10.x?" rather than about how to perform the upgrade per se. > Do you have one of your machines available for experimentation to do > a test upgrade from 8.x to 10.1-RELEASE via freebsd-update, and also pkg_add > to pkgng? I do, though the systems in question are already using pkgng. > I would be curious what your experience with this would be, so that we can > fix documentation for doing such an upgrade. Fair enough! In a VM, I did a stock install of 8.4-RELEASE and then used freebsd-update to upgrade to 10.1-RELEASE. I tried to act like someone familiar with freebsd-update and FreeBSD 8.x (and below), but unaware of any issues specific to 9.x or 10.x upgrades. tl;dr: This was relatively painless, with a few freebsd-update cosmetic oddities that might throw off the uninitiated, and a nice hint from pkg to bootstrap itself. Walkthrough: I installed 8.4-RELEASE from the original release DVD ISO in a Virtualbox VM. Other than things like using the entire drive for FreeBSD and using automatic partitioning, I only enabled sshd and IPv4 DHCP, and installed packages bash, portmaster, screen, and sudo during the install. At first boot, I brought 8.4 current with: # freebsd-update fetch install ... which threw these errors: Installing updates...install: ///user/src/share/zoneinfo/leap-seconds.list: No such file or directory install: ///usr/src/share/zoneinfo/zone1970.tab: No such file or directory done. I then rebooted: # shutdown -r now ... which brought me to 8.4-RELEASE-p19. I then started an upgrade to 10.1: # freebsd-update -r 10.1-RELEASE upgrade This fetched 9400 patches and 10336 files. Changes that were merged: /etc/group: added unbound group. /etc/passwd: added unbound user. /etc/motd: updates to newbie guidance. /etc/master.passwd: added unbound user. Tag changes only: /etc/shells Continuing with the upgrade: # freebsd-update install ... produced this error: Installing updates...rmdir: ///boot/kernel: Directory not empty Continuing: # shutdown -r now ... rebooted to the expected kernel: 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 Continuing: # freebsd-update install ... after which I was prompted to rebuild all third-party software. This wasn't too hard, as I'd only installed bash, portmaster, screen, and sudo (and their dependencies libiconv and gettext). Attempting to run pkg, I got this helpful prompt: The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from [url], please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done Installing pkg-1.3.8_3: 100% Message for pkg-1.3.8_3: If you are upgrading from the old package format, first run: # pkg2ng I ran pkg2ng, with no errors. However, I had also neglected to install a ports tree: # portmaster -a ===>>> The ports directory ( make: stopped in /root) does not seem to contain a ports tree ==>>> Killing background jobs Terminated ===>>> Exiting ... so ... # portsnap fetch extract and then ... # portmaster -a ... which fetched as dependencies: devel/bison devel/gmake devel/m4 lang/perl5.16 ports-mgmt/dialog4ports print/indexinfo The package message for pkg prompted me to add "WITH_PKGNG=yes", to /etc/make.conf, so I did so. Unrelated to the vanilla upgrade, I was also prompted to add fdesc support for bash. So as prompted, I added to /etc/fstab: fdesc /dev/fd fdescfs rw 0 0 I then ran freebsd-update one more time: # freebsd-update install ... which completed with no errors. Royce