ZetaWatch icon indicating copy to clipboard operation
ZetaWatch copied to clipboard

OpenZFS on Mac is now 2.2.2. ZetaWatch mostly works.

Open jaminmc opened this issue 1 year ago • 9 comments

I have OpenZFS 2.2.2 installed on macOS Sonoma on a M1 Ultra Studio. Since upgrading my macOS and OpenZFS on it, ZetaWatch still works, but scrubbing is messed up. It says "Never Scrubbed". It does have the option to "Start Scrub", and it does indeed start scrubbing. But it doesn't give any updates on the scrub and still says "Never Scrubbed" for the pool.

It did, however, show when I had 1 CRC error on my pool. Hence, I scrubbed it.

https://openzfsonosx.org/wiki/Downloads

zfs-2.2.2-1
zfs-kmod-2.2.2-1

jaminmc avatar Jan 30 '24 10:01 jaminmc

Chances are OpenZFS changed its internal data format, and it is no longer fully compatible. I might have to recompile or possibly adapt the code slightly.

cbreak-black avatar Jan 30 '24 18:01 cbreak-black

Also having issues with 2.2.2 and ZetaWatch, can confirm the "Never Scrubbed" issue, also none of my pools show up for import but if I import them from terminal they work fine apart from the scrubbing issues. On Sonoma. Thanks!

nixcamic avatar Mar 30 '24 17:03 nixcamic

So... pools not showing for import seems to be a separate issue, downgraded to ZFS 2.1.6 and pools still dont show in zetawatch but do in zpool import.

nixcamic avatar Mar 30 '24 17:03 nixcamic

I no longer have an Apple Developer account, since it wasn't worth the money, and I barely ever boot macOS once every few months, so I won't be able to release an updated build.

I'll check if I can fix the code, but I don't think that'll be sufficient.

cbreak-black avatar Mar 30 '24 23:03 cbreak-black

Would it be possible to release an updated but unsigned build? Sorry, I know this is volunteer and you've moved on, but if it were just a simple rebuild. If it's more than that then yeah understandable if it's too much work.

nixcamic avatar Mar 31 '24 17:03 nixcamic

I expect to have to make some small fixes to get it to compile properly with the new version.

The Problem with making an unsigned build is that the helper binary that is used to perform actions as root (to mount filesystems, import pools, and the like) only works if the main binary is code-signed with my old key. (Or any other key, if the meta data is changed accordingly)

cbreak-black avatar Mar 31 '24 18:03 cbreak-black

Could you self sign it? It wouldn't be good enough for OS X app protection but if manually launched it would be ok no?

nixcamic avatar Apr 01 '24 04:04 nixcamic

I've rebuilt ZetaWatch with ZFS 2.2, but as expected, the helper won't work without proper code signing. But you should be able to test it, and you might be able to sign it yourself. https://github.com/cbreak-black/ZetaWatch/releases/tag/r50-zfs2.2

cbreak-black avatar Apr 07 '24 14:04 cbreak-black

I've rebuilt ZetaWatch with ZFS 2.2, but as expected, the helper won't work without proper code signing. But you should be able to test it, and you might be able to sign it yourself. https://github.com/cbreak-black/ZetaWatch/releases/tag/r50-zfs2.2

It seems to be working for for me. I don't know what requires elevated privileges, but it works now to see last scrubbed, and I was able to have it initiate a scrub. No problem. I did do a xattr -rd com.apple.quarantine /Applications/ZetaWatch.app to make sure that the quarantine didn't get in the way.

It may be working, because I never uninstalled the Helper script that was installed with a previous version?

jaminmc avatar Apr 19 '24 22:04 jaminmc