Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2018 09:48:27 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: any problem going from 9.x (don't laugh) to 11 directly?
Message-ID:  <8ba7354b-9191-b287-e552-ace9d1e163e0@FreeBSD.org>
In-Reply-To: <86lgfvjk6c.fsf@red.stonehenge.com>
References:  <86lgfvjk6c.fsf@red.stonehenge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14/02/2018 22:11, Randal L. Schwartz wrote:
> Never got a chance to move to 10 in time.  Should I just skip 10 and go
> to 11?  What will that break?  And keep in mind I'm ZFS-on-Root,
> although I haven't upgraded my bootloader or ZFS version yet.

Given you're on ZFS then you should have boot environments available to 
you.  BEs work great for major version upgrades -- and you can revert as 
needed if it doesn't work right the first time.

You are correct that you should not update the boot blocks or the ZFS 
feature set until after you're sure you will never need to revert to 9.x 
again.  ZFS is always backwards compatible, so your shiny new 11.x 
installation will work fine with the 9.x zpool and bootblocks.

As for how you do the upgrade -- once you've created your 11.x boot 
environment, you can mount it by eg.

    beadm mount 11_1-RELEASE /mnt

Then mount an instance of devfs:

    mount -t devfs devfs /mnt/dev

and then you can chroot into the boot environment:

    chroot /mnt

and from there you can apply your favourite method for upgrading. 
Remember to unmount /mnt/dev once you're done before you try and 
activate the new BE:

    exit        (from the chroot)
    umount /mnt/dev
    beadm umount 11_1-RELEASE
    beadm activate 11_1-RELEASE
    shutdown -r now

	Cheers,

	Matthew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8ba7354b-9191-b287-e552-ace9d1e163e0>