From owner-freebsd-questions@FreeBSD.ORG Tue Nov 18 02:16:47 2014 Return-Path: Delivered-To: freebsd-questions@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 A8EFB967 for ; Tue, 18 Nov 2014 02:16:47 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 73941A76 for ; Tue, 18 Nov 2014 02:16:47 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-107.adsl.hiwaay.net [216.180.19.107]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id sAI2GdTl018538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 17 Nov 2014 20:16:39 -0600 Message-ID: <546AAD7E.4080603@hiwaay.net> Date: Mon, 17 Nov 2014 20:22:54 -0600 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: upgrading 9.3 / ZFS v28 References: <54697AA5.6040804@networktest.com> <20141117123929.GB60429@ozzmosis.com> <546A1538.4040801@networktest.com> <20141117181527.GA62908@ozzmosis.com> <546A91D4.3070009@networktest.com> In-Reply-To: <546A91D4.3070009@networktest.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2014 02:16:47 -0000 On 11/17/14 18:24, David Newman wrote: > On 11/17/14, 10:15 AM, andrew clarke wrote: >> On Mon 2014-11-17 07:33:12 UTC-0800, David Newman (dnewman@networktest.com) wrote: >> >>>>> Greetings. For a system running 9.3-RELEASE with ZFS v28 on the root >>>>> partition (I did this manually long ago), are there any gotchas for >>>>> upgrading to 10.1? >>> Hmmm...this could have gone better for me: >>> >>> To install the downloaded upgrades, run "/usr/sbin/freebsd-update install". >>> root@boonen:~ # freebsd-update install >>> Installing updates...chflags: ///var/empty: Read-only file system >>> >>> Normally, freebsd-update returns a reboot-and-proceed message at this >>> point. Also, this system has no /var/empty partition. >>> >>> How to proceed? >>> >>> Thanks! >> Ah yes, I encountered that error too. I think you'll find you do have >> a /var/empty judging from the above error. On my system: >> >> $ zfs list | grep empty >> zroot/var/empty 14K 239G 14K /var/empty >> >> $ zfs get readonly zroot/var/empty >> NAME PROPERTY VALUE SOURCE >> zroot/var/empty readonly on local >> >> So this is necessary before you run freebsd-update: >> >> # zfs set readonly=off zroot/var/empty >> >> Obviously, set readonly=on after freebsd-update has finished: >> >> # zfs set readonly=on zroot/var/empty > Thanks very much for that. With those changes, the install completed > successfully. > > As for upgrading ZFS, I think it's done save for one issue. > > This command will upgrade the zpool, even when mounted: > > zpool upgrade -a > > This command will take the system offline, as I learned the hard way: > > zfs upgrade > > The right way to do this: > > 1. Boot into a LiveCD. I used the FreeBSD 10.1 DVD. > > 2. For each boot partition, use this command: > > # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > > This assumes that (a) the freebsd-boot partition is first on the disk > and ada0 is the disk. Use "gpart show" to verify this. > > This system has four disks, each with a freebsd-boot partition, so I > went on like this: > > # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada1 > # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 3 ada2 > # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 4 ada3 > > ...and I got an invalid index error on that last one, even though it's > set up the same as the others. > > The system seems to boot and run OK, but I'm not sure why that last > command failed. > > dn > > > > >> Regards >> Andrew >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -i <0-3>, not <1-4>, i.e. zero-based counting ? My man page says otherwise (9.3RELEASE-p3), so maybe not .... $0.02, no more no less .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.