Page 1 of 1

ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Mon Mar 11, 2019 8:30 am
by godzilla
Hello

I have recently upgraded (from 10.13) to Mojave (10.14). For some reason my ZFS disk are "seen" as FAT32 volumes... and obviously don't work !

MBP13:~ alex$ kextstat | grep lundman
73 1 0xffffff7f813a4000 0x498 0x498 net.lundman.kernel.dependencies.31 (12.5.0) B5522CE7-BF86-4025-8C10-C6D74BFD9C11
74 1 0xffffff7f813a5000 0x11f5000 0x11f5000 net.lundman.spl (1.8.1) 522C363B-617C-3BD6-9114-7CFCB2060A12 <73 8 6 5 3 1>
75 0 0xffffff7f825f6000 0x30b000 0x30b000 net.lundman.zfs (1.8.1) 0E2ADDD4-FAEF-388B-8F84-1D8CDD0E3194 <74 26 8 6 5 3 1>
MBP13:~ alex$ sudo zpool list
Password:
no pools available
MBP13:~ alex$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 500.1 GB disk0s2

/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +500.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintsoh HD 414.5 GB disk1s1
2: APFS Volume Preboot 43.2 MB disk1s2
3: APFS Volume Recovery 517.0 MB disk1s3
4: APFS Volume VM 8.6 GB disk1s4

/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *32.1 GB disk2
1: Windows_FAT_32 32.1 GB disk2s1


Disk 2 is actually a ZFS volume, created under 1.8.1.
Interestingly it will show up for time to time after a cold reboot (but not always). Never manager to have it work plugging it "live" into the system,

Any help / pointer much appreciated.

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Mon Mar 11, 2019 5:13 pm
by lundman
And "zpool import", "zpool import -d /dev" show nothing available for import?

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Tue Mar 12, 2019 2:26 am
by godzilla
Indeed

no pools available to import

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Tue Mar 12, 2019 3:52 pm
by lundman
32G sounds more like a USB stick? Or did you create a 32G pool on something?

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Wed Mar 13, 2019 10:53 am
by godzilla
Sorry, should have made it clearer: it is indeed a USB stick. Does it matter?

I have a few ZFS formatted one and they work fine (but they were initialized with older builds of OpenZFS under Mac OS 10.12 or 10.13). This one was recently initialized and was working fine until upgrading to Mojave.

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Wed Mar 13, 2019 2:25 pm
by Sharko
It would be interesting to test whether the USB stick still imports correctly if you boot from a clone of your system prior to Mojave. My guess is that Mojave is somehow interpreting the partitioning scheme differently, and not presenting it to ZFS the way it used to.

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Thu Mar 14, 2019 5:59 pm
by lundman
No, that it is a stick does not matter, I was just expecting a disk. It would be concerning though if it suddenly thinks it is a FAT32 partition, and attempts to fsck/mount it.

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Thu Mar 14, 2019 10:11 pm
by godzilla
After some further testing

    *the disk is not seen on my old system config
    *it would, seemingly randomly, either
      mount as a ZFS volume
      mount as a bogus FAT volume
      generate an error that "Mac OSX could not repair disk" (ouch)
    when connected under Mojave
It only mounts as ZFS when connected at boot - would not come up at all if plugged into a live system

My guess is that the OS somehow misinterpreted the volume as a FAT32 disk and tried to auto repair it - obviously failing to do so but corrupting it.

What is the actual "signature" of a ZFS volume (ie what should I check on the disk to ensure it is correctly identified) ?

Re: ZFS disk seen at FAT32 since Mojave upgrade

PostPosted: Sat Mar 16, 2019 12:16 pm
by chrryd
https://openzfsonosx.org/wiki/Suppressi ... ing_pop-up has some info on the correct partition type for ZFS.