Page 1 of 1

1.9.4 preview forum release

PostPosted: Sun Mar 01, 2020 10:07 pm
by FadingIntoBlue
Hi all

I've tried out the new 1.9.4 preview release, and it is auto mounting in my setup - Catalina 10.15.3, SIP on

Thanks for all the hard work
Cheers

Re: 1.9.4 preview forum release

PostPosted: Thu Mar 12, 2020 5:02 pm
by gfc
I've just upgraded from Mojave and 1.8.1 to Catalina (10.15.3) and 1.9.4. It didn't go to plan.

I exported my one and only pool, upgraded the OS and then installed 1.9.4 over the top of 1.8.1. Upon reboot my pool not import. I can manually import it but when I do I now see this:

config:

NAME STATE READ WRITE CKSUM
zxstore ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
media-B09D7708-9584-244F-BCE5-7217CA8538DE ONLINE 0 0 0
PCI0@0-RP05@1C,4-UPSB@0-DSB1@1-UPS0@0-pci-bridge@2-pci1b21,612@0-PRT0@0-PMP@0-@0:1 ONLINE 0 0 0
media-01C67746-9DD8-1449-A769-7E49841F9A90 ONLINE 0 0 0
PCI0@0-RP05@1C,4-UPSB@0-DSB1@1-UPS0@0-pci-bridge@0-pci1b21,612@0-PRT0@0-PMP@0-@0:1 ONLINE 0 0 0

errors: No known data errors


Where before I saw this:

config:

NAME STATE READ WRITE CKSUM
zxstore ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
media-B09D7708-9584-244F-BCE5-7217CA8538DE ONLINE 0 0 0
media-F1584040-448F-9C4B-8470-7B04DFD1A15C ONLINE 0 0 0
media-01C67746-9DD8-1449-A769-7E49841F9A90 ONLINE 0 0 0
media-309C48EB-3A7F-5B49-AA3C-3CD63D9A1F22 ONLINE 0 0 0

errors: No known data errors

I subsequently tried to uninstall/reinstall but the results are the same; no import on boot and the pool reported in this way when imported manually. To be clear, there were no other changes between export and upgrade.

Any assistance would be appreciated.

Re: 1.9.4 preview forum release

PostPosted: Thu Mar 12, 2020 7:29 pm
by gfc
Okay, in rooting around a bit I see that the script launched by launchd passes -d /var/run/disk/by-id to import. So that's sorted out, but still not sure what's going on with autoimport at boot. Seeing this in the log:

Thu Mar 12 17:41:30 PDT 2020
2020-03-12 17:41:39.980 system_profiler[411:2782] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
9.27 real 0.47 user 0.48 sys
Waiting up to 60 seconds for the InvariantDisks idle file /var/run/disk/invariant.idle to exist
Found /var/run/disk/invariant.idle after 0 iterations of sleeping 0.1 seconds
Thu Mar 12 17:41:40 PDT 2020
Running zpool import -a
Thu Mar 12 17:41:50 PDT 2020
Thu Mar 12 17:41:52 PDT 2020
Finished running zpool import -a : 0
Touching the file /var/run/org.openzfsonosx.zpool-import-all.didRun
Thu Mar 12 17:41:52 PDT 2020
-zpool-import-all.sh


but in the .err file I see this entries that say "no pools available to import". They're not timestamped so I can't correlate these.

Re: 1.9.4 preview forum release

PostPosted: Sat Mar 14, 2020 2:10 pm
by gfc
Definitely requires Full Disk Access for /bin/bash

Re: 1.9.4 preview forum release

PostPosted: Sun Mar 15, 2020 3:01 pm
by gfc
Just to close this out, I've written a small C stub that just execs bash with zpool-import-all.sh as an argument, I've given this full disk access and and call it from org.openzfsonosx.zpool-import-all.plist. This seems to work and prevents me from having to give bash full disk access. The net-net for me, though, is that 1.9.4 does not autoimport on Catalina out of the box.

Re: 1.9.4 preview forum release

PostPosted: Mon Mar 16, 2020 10:47 am
by fluffy
why can't you get full access?

Re: 1.9.4 preview forum release

PostPosted: Thu Mar 19, 2020 11:00 pm
by FadingIntoBlue
Another workaround that I used briefly is ZetaWatch

https://github.com/cbreak-black/ZetaWatch

using the Auto-Import Pools setting

Very useful for lots of other reasons as well