Page 1 of 1

2.1.6 Monterrey Intel - Mismatched kmod and tools

PostPosted: Thu Dec 08, 2022 8:35 pm
by s34gull
After running the OpenZFSonOsX-2.1.6-Monterey-12.pkg installer to upgrade from 2.1.0 to 2.1.6, I'm left with a mismatched set of tools vs. kernel module. I've run the uninstall scripts, then re-installed, and am still seeing the following. Do I need to manually clear-out some files that the uninstaller missed? Any help is appreciated.

Code: Select all
~/ zpool version
zfs-macOS-2.1.6-1
zfs-kmod-2.1.0-1

Re: 2.1.6 Monterrey Intel - Mismatched kmod and tools

PostPosted: Thu Dec 08, 2022 10:56 pm
by lundman
Monterey is famous for holding on to old kexts, and it's frustrating that Apple didn't go back to fix it.

One guaranteed way to kid rid of old kext, is to boot into Recovery, open terminal, and run
kmutil trigger-panic-media --volume-root /Volume/yourOSname

it moves all the 3rd party kexts out of the way. Then after rebooting normally
you have to "Approve" them again, including ZFS.

Re: 2.1.6 Monterrey Intel - Mismatched kmod and tools

PostPosted: Fri Dec 09, 2022 9:58 am
by s34gull
Thanks for your suggestion! After you mentioned Monterey's preference for holding old kexts, I checked System Preferences > Security & Privacy, and sure enough there was a pending approval for the upgraded kext. I approved and restarted, and now the tools and kmod match:

Code: Select all
~/ zpool version
zfs-macOS-2.1.6-1
zfs-kmod-2.1.6-1


This ended up being easier than booting into recover mode for me, since the MacMini that is hosting ZFS is running headless.

Re: 2.1.6 Monterrey Intel - Mismatched kmod and tools

PostPosted: Fri Dec 09, 2022 11:06 pm
by lundman
Yay \o/