Upgrade instructions - uninstall / reinstall??

All your general support questions for OpenZFS on OS X.

Upgrade instructions - uninstall / reinstall??

Postby _max_ » Mon Apr 21, 2025 7:11 am

I've read through the wiki and searched this board, but I cannot find specific instructions on upgrading from one version to the next for an official release.

Do you export all, un-install then re-install? Or can you just export, open the new version dmg and install over the old version??

Many thanks.
_max_
 
Posts: 6
Joined: Fri Feb 10, 2023 4:24 am

Re: Upgrade instructions - uninstall / reinstall??

Postby nodarkthings » Tue Apr 22, 2025 2:20 am

Hi!
You're right, there's no instruction. ;)
I've discovered that, since a few versions, all you have to do is:
- export all
- run the new installer. If a former version is already installed, it will uninstall it. You might get an error message.
- reboot
- run the new installer. This time it will work.
- reboot, just to be on the safe side.

So, if you want to uninstall your current version without installing another one, just run the installer once.
I find this behaviour quite clever, it would just need to be specified somewhere... :mrgreen:
nodarkthings
 
Posts: 192
Joined: Mon Jan 26, 2015 10:32 am

Re: Upgrade instructions - uninstall / reinstall??

Postby nodarkthings » Tue Apr 22, 2025 2:27 am

Note that this works also when downgrading to another v2: I recently came back to 2.1.0 after running 2.2.3 for a while, just using the 2.1.0 installer. I guess it will work the same as long as there's no additional element installed by a future version.
You can check where things are installed from this screen capture:
Uninstall v2.png
Uninstall v2.png (5.15 KiB) Viewed 20838 times


EDIT: strange enough, on another drive I upgraded from 2.2.2 to 2.2.3 without the installer uninstalling 2.2.2 as a first stroke, like it does on my main system... :shock: So take all that with a bit of salt, things might apparently defer slightly sometimes for whatever reason... :mrgreen:
Last edited by nodarkthings on Thu May 01, 2025 12:39 pm, edited 2 times in total.
nodarkthings
 
Posts: 192
Joined: Mon Jan 26, 2015 10:32 am

Re: Upgrade instructions - uninstall / reinstall??

Postby Haravikk » Sun Apr 27, 2025 2:20 am

nodarkthings wrote:Note that this works also when downgrading to another v2: I recently came back to 2.1.0 after running 2.2.3 for a while, just using the 2.1.0 installer. I guess it will work the same as long as there's no additional element installed by a future version.
You can check where things are installed from this screen capture:
Uninstall v2.png

Just wanted to add to this, but when trying a new version of ZFS don't run zpool upgrade until you're sure you're happy with it – if you upgrade a pool and then decide you want to downgrade the ZFS version, you may find the pool is either unusable or will be read-only, due to missing features. While upgrades are intended to be safe (features that aren't backwards compatible shouldn't activate automatically), that hasn't always been the case, so it's better to be safe than sorry!

Personally I don't run zpool upgrade until I've been running a new version for at least a month (usually longer, because I'm forgetful and have terrible time management ;) ).
Haravikk
 
Posts: 99
Joined: Tue Mar 17, 2015 4:52 am

Re: Upgrade instructions - uninstall / reinstall??

Postby nodarkthings » Sun Apr 27, 2025 4:29 am

Haravikk wrote:Just wanted to add to this, but when trying a new version of ZFS don't run zpool upgrade until you're sure you're happy with it – if you upgrade a pool and then decide you want to downgrade the ZFS version, you may find the pool is either unusable or will be read-only, due to missing features. While upgrades are intended to be safe (features that aren't backwards compatible shouldn't activate automatically), that hasn't always been the case, so it's better to be safe than sorry!

Personally I don't run zpool upgrade until I've been running a new version for at least a month (usually longer, because I'm forgetful and have terrible time management ;) ).


You're absolutely right! ;) I forgot to mention this.
Actually, I haven't upgraded my oldest pool since v1. For my use case, the only worthy improvement in v2 is the ZSTD compression feature, very efficient for some contents (VMs and sparsebundles, for example) but quite useless for others (data already compressed such as dmg, iso, mp3, zip, etc.)
nodarkthings
 
Posts: 192
Joined: Mon Jan 26, 2015 10:32 am

Re: Upgrade instructions - uninstall / reinstall??

Postby tangles » Fri May 02, 2025 5:24 pm

I just did a fresh install of oc-macOS on an TrashCan and then installed ZFS via brew.

I saw the word ZEVO in brew’s output which freaked me out at first but seems not related to installing the latest and correct architecture by the looks.
Required a restart and all working as expected.

Will be interesting to see what happens when the brew repository is updated for the next release…
tangles
 
Posts: 202
Joined: Tue Jun 17, 2014 6:54 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 12 guests