Page 1 of 1

zpool lost on after second boot with Catalina

PostPosted: Thu Jul 09, 2020 7:50 pm
by diekhans
I am move a ZFS array to a new Mac running Catalina. The first time I turned
it on and did an import, it said I need to use -f due to a change in system
id (or some similar message). Since this is true, I did the import with
-f and all went well. My file systems all mount, life was good.

Now after a reboot, import fails to find the pool. The disk are all there
as expected (via diskutil list), however zpool import says "no pools available to import"

zfs.kext_version: 1.9.4-0
macOS 10.15.5

Any advice greatly appreciated..

Re: zpool lost on after second boot with Catalina

PostPosted: Thu Jul 09, 2020 8:41 pm
by diekhans
I try to use zdb to list one of the disk:

Code: Select all
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *10.0 TB    disk2
   1:                        ZFS kettle                  10.0 TB    disk2s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk2s9


and get

Code: Select all
% sudo zdb -l /dev/disk2
cannot open '/dev/disk2': Operation not permitted
% sudo zdb -l /dev/disk2s1
cannot open '/dev/disk2s1': Operation not permitted


This seems to be a hint that some of the new security is getting in the way..

Re: zpool lost on after second boot with Catalina

PostPosted: Thu Jul 09, 2020 9:30 pm
by diekhans
Disabling SIP brought ZFS back

!!!!! :D

Re: zpool lost on after second boot with Catalina

PostPosted: Mon Jul 13, 2020 9:30 am
by glessard
You shouldn't need to disable SIP in order to use OpenZFS on Catalina. (I run with both.) You might need to give full disk access to /bin/bash, though.

Re: zpool lost on after second boot with Catalina

PostPosted: Mon Aug 31, 2020 2:24 am
by CipherF15
Yes, it's strange, SIP and OpenZFS run together fine on my Mac.