Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2014 05:15:27 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        David Newman <dnewman@networktest.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: upgrading 9.3 / ZFS v28
Message-ID:  <20141117181527.GA62908@ozzmosis.com>
In-Reply-To: <546A1538.4040801@networktest.com>
References:  <54697AA5.6040804@networktest.com> <20141117123929.GB60429@ozzmosis.com> <546A1538.4040801@networktest.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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

Regards
Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141117181527.GA62908>