Page 1 of 1

Auto-mount zfs on startup?

PostPosted: Fri Dec 25, 2020 5:52 pm
by thedarkhalf
For some reason Zetawatch wont open at all on my 2012 Mac Mini w/Catalina. That used to automount my zfsraid1. Since that's not working anymore, I have to "sudo zpool import <drivename>" to mount the drives. Is there any way to automate this?

Thanks

Re: Auto-mount zfs on startup?

PostPosted: Fri Dec 25, 2020 10:47 pm
by jawbroken
I don't use Zetawatch but I had to give /bin/bash "Full Disk Access" permission in System Preferences > Security & Privacy > Privacy before automount would work for me.

Re: Auto-mount zfs on startup?

PostPosted: Sat Dec 26, 2020 7:18 am
by thedarkhalf
jawbroken wrote:I don't use Zetawatch but I had to give /bin/bash "Full Disk Access" permission in System Preferences > Security & Privacy > Privacy before automount would work for me.


Sorry, I dont understand. Whar are you using to auto-mount then?

Re: Auto-mount zfs on startup?

PostPosted: Sat Dec 26, 2020 9:36 pm
by jawbroken
OpenZFS on OS X does this by default without any other software.

Re: Auto-mount zfs on startup?

PostPosted: Sun Dec 27, 2020 6:33 am
by thedarkhalf
jawbroken wrote:OpenZFS on OS X does this by default without any other software.


It's not for me tho. I added bin/bash to full disk access. Is there anything else I can do to get it to mount on start up?

Thanks

Re: Auto-mount zfs on startup?

PostPosted: Tue Jan 05, 2021 8:37 am
by foobart
I'm seeing the same issue with openzfs 2.0.0 on Catalina 10.15.7 (19H114).

A few more things I discovered:
- LaunchDaemons/org.openzfsonosx.zpool-import-all.plist is called on boot and reports nothing to import.
- When reloading LaunchDaemons/org.openzfsonosx.zpool-import-all.plist manually with launchctl thereafter still no imports reported.
- When calling (sudo root) the actual worker script /usr/local/zfs/libexec/zfs/launchd.d/zpool-import-all.sh the pool does import correctly

I'm expecting some permission issue has popped up after a most recent Catalina security update, but I'm not quite sure what privilege is needed. I have given most zfs tools and scripts already full disc access in system prefs.

On closer inspection, I did not give bash full disk access, picked the wrong shell to give access.
@jawbroken was correct, only bash needed this for it to work.

Re: Auto-mount zfs on startup?

PostPosted: Sun May 30, 2021 3:07 pm
by gasmanc
So I'm also having problems auto-mounting after restarting MacOS.

I vaguely recall having the same issue when I upgraded to Catalina. What worked that time was allowing zsh (or bash) full disk access in settings. This seemed to fix it last time.

Not that I've upgraded to Big Sur, I've hit the same problem with my pool not being auto mounted on restart/start up.

I've made sure zsh/bash have full disk access, but its still not go this time.

Any ideas?

Thanks,

Re: Auto-mount zfs on startup?

PostPosted: Tue Dec 21, 2021 3:48 pm
by t3hite
jawbroken wrote:I don't use Zetawatch but I had to give /bin/bash "Full Disk Access" permission in System Preferences > Security & Privacy > Privacy before automount would work for me.


After upgrading to Monterey (12.1) and installing OSX ZFS 1.2.0 I also had to visit System Preferences a couple times to authorize the extension (zfs.kext) and then to authorize zpool in the privacy tab. I'm just getting running in Monterey; so far my ZFS pool/volumes appear to be working normally.