Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2018 12:36:05 -0700
From:      Craig Leres <leres@freebsd.org>
To:        Warner Losh <imp@bsdimp.com>, Jan Knepper <jan@digitaldaemon.com>
Cc:        FreeBSD Filesystems <freebsd-fs@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>, Richard Yao <ryao@gentoo.org>, Willem Jan Withagen <wjw@digiware.nl>, Alan Somers <asomers@freebsd.org>
Subject:   Re: Getting ZFS pools back.
Message-ID:  <d810c526-fa5e-3457-c213-d84be799f00a@freebsd.org>
In-Reply-To: <CANCZdfqWKZpCfnB0OZ_OkOMAzwbtBEOU%2B2EXGQ9VgP6yUq6kZg@mail.gmail.com>
References:  <5f836c79-b379-f066-689b-1645e393c5e9@digiware.nl> <E3B39DFA-269A-4041-922E-38F0CF35CB9A@gentoo.org> <a7fb7ffc-fa5f-4031-c78a-20e7ba618566@digiware.nl> <CAOtMX2gpuc0ntoxqKJv3iw3x_Dcq99zpcmqE8g%2B2QiDtYPHmZQ@mail.gmail.com> <1645b168-4133-693c-2dd3-8e0606abb9c3@digiware.nl> <07576f68-f67e-3a22-7a50-ff261c9b3fff@digitaldaemon.com> <CANCZdfonKRcFKiV%2BCmCvAQ3O5h%2BuNBcWDW7oyxOhWMdmpDHEcw@mail.gmail.com> <5692d3b6-038e-4c4b-c5b6-b0f719b4ac38@digitaldaemon.com> <CANCZdfqWKZpCfnB0OZ_OkOMAzwbtBEOU%2B2EXGQ9VgP6yUq6kZg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/29/18 11:34, Warner Losh wrote:
> If you always install a new kernel and reboot
> (especially across major releases) and then install the new binaries,
> you're safe.

I upgraded 40+ systems from 10.3-RELEASE to 11.1-RELEASE over the last 
few weeks including 8 or so with zfs partitions (but all boot off of 
ufs2). The work flow I converged on was:

  - (I use rcs for configs so) co -l all customized config files
  - Check /etc/freebsd-update.conf for the desired config
  - Download the upgrade updates (freebsd-update upgrade -r 11.1-RELEASE)
  - Check /etc/rc.conf and disable kern_securelevel if enabled
  - Check/update /etc/resolv.conf if using bind9*
  - Switch to /usr/bin/sshd if using openssh-portable
  - Copy and install custom 11.1 kernel from my build server
  - Stop most services
  - Save a list of installed packages:
      pkg info|sed -e 's/-[0-9a-zA-Z._,]*  *.*//' > /var/tmp/a
  - Remove all packages (pkg-static delete -fya)
  - Reboot
  - Run "freebsd-update install" three times
  - Reinstall packages:
      pkg update -f
      pkg clean -ay
      pkg install -y `cat /var/tmp/a`
  - Check/reset/checkin configs and reboot

I had zero^H^H^H^Hno zfs issues.

On 04/29/18 11:32, Willem Jan Withagen wrote:
 > Most of my upgrades went smooth, other than being pestered by
 > files that are only changed in verssion no and/or comments.

I also find this annoying but started manually updating things that were 
problematic before starting which minimized freebsd-update merging.

		Craig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d810c526-fa5e-3457-c213-d84be799f00a>