OSX Ventura not seeing any zfs volumes at all

Developer discussions.

OSX Ventura not seeing any zfs volumes at all

Postby Luftwaffle » Sun Mar 19, 2023 6:09 pm

Tearing my hair out (whats left of it). After successfully fixing the encrypted dataset issue (see my previous post) my MacStudio (OSX Ventura 13.2.1, M1 chip) has now decided to not seeing any zfs pools at all. De-installed (per script) and re-installed O3X 2.1.6, rebooted, checked: nothing.

My old laptop running Mojave 10.14.6 sees and imports/exports any dataset just fine. I have attached screenshots from both machines.
Diskutil list clearly shows both drives (mirrored pool).
All datasets are mounted under /mnt which requires the synthetic.conf file in /etc to map it to System/Volumes/Data/mnt in Ventura.

I usually hear this from my users: "It worked yesterday"...
It did. Then I needed to reboot a few times after having issues with an external JBOD set (it goes to sleep after ten minutes, no matter what).
And that's when it started. It just won't see any pool at all.
Any idea/suggestions where to look?
Attachments
Ventura 13.2.1.png
No luck here...
Ventura 13.2.1.png (225.96 KiB) Viewed 8818 times
OSX Mojave 10.14.6.png
old OSX loads just fine
OSX Mojave 10.14.6.png (446.23 KiB) Viewed 8818 times
Luftwaffle
 
Posts: 6
Joined: Mon Feb 20, 2023 12:36 pm

Re: OSX Ventura not seeing any zfs volumes at all

Postby cgiard » Sun Mar 19, 2023 6:29 pm

I ran into an issue where Terminal started needing full disk access (in privacy / security) in Monterey after one of the point releases. Maybe try that?
cgiard
 
Posts: 22
Joined: Sat Dec 20, 2014 8:10 am

Re: OSX Ventura not seeing any zfs volumes at all

Postby lundman » Sun Mar 19, 2023 7:32 pm

The output looks like it sees your pool and you can import it?


"zpool import" will LIST all available pools, then issue

"zpool import pool" to import pool "pool". For you,

"zpool import tank_40".

(Everything with sudo obvs)

Still an issue?

The compatibility comment is because your ZFS software can do newer features your pool does not have enabled. This will not matter yet,
in the future, when you are sure you don't need to go back to older ZFS, you can issue "zpool upgrade tank_40" to enable all the new
features (probably just blake3). But then older ZFS versions can not import the pool. So feel free to wait until you are sure.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: OSX Ventura not seeing any zfs volumes at all

Postby Luftwaffle » Mon Mar 20, 2023 2:40 am

T
lundman wrote:The output looks like it sees your pool and you can import it?

That's the old system (Mojave).
In Ventura (first picture) zpool import does NOT see any pools at all, despite them being online (as seen by diskutil).
I have been using O3X for years now. Never had any problems. This all started with the 'Ventura' upgrade.
Luftwaffle
 
Posts: 6
Joined: Mon Feb 20, 2023 12:36 pm

Re: OSX Ventura not seeing any zfs volumes at all

Postby Luftwaffle » Mon Mar 20, 2023 2:41 am

cgiard wrote:I ran into an issue where Terminal started needing full disk access (in privacy / security) in Monterey after one of the point releases. Maybe try that?

Thanks. Already tried. No avail.
Luftwaffle
 
Posts: 6
Joined: Mon Feb 20, 2023 12:36 pm

Re: OSX Ventura not seeing any zfs volumes at all

Postby Luftwaffle » Mon Mar 20, 2023 2:58 am

Perhaps some log extracts might help.
Tail from org.openzfsonosx.zed.err:

ZFS Event Daemon 2.1.6-1 (PID 1715)
Failed to initialize libzfs
Ignoring "zed.rc": not executable by user
Failed to stat "/etc/zfs/zed.d/zvol.remove.sh": No such file or directory
Registered zedlet "vdev_clear-led.sh"
Registered zedlet "history_event-zfs-list-cacher.sh"
Registered zedlet "data-notify.sh"
Registered zedlet "all-syslog.sh"
Failed to stat "/etc/zfs/zed.d/zvol.create.sh": No such file or directory
Registered zedlet "pool_import-led.sh"
Registered zedlet "scrub_finish-notify.sh"
Registered zedlet "resilver_finish-notify.sh"
Registered zedlet "vdev_attach-led.sh"
Registered zedlet "snapshot_unmount.sh"
Registered zedlet "statechange-notify.sh"
Registered zedlet "resilver_finish-start-scrub.sh"
Registered zedlet "statechange-led.sh"
Registered zedlet "snapshot_mount.sh"
Ignoring "zed-functions.sh": not executable by user
ZFS Event Daemon 2.1.6-1 (PID 2122)
Failed to initialize libzfs


The ones highlighted look suspicious. Particularly the libzfs.
Why would it be unable to run this? Another security issue?

Ok, fixed above issues thanks to some help from other threads in this forum (2 execute permissions), did the 'trigger-panic-medic' thingy, re-installed O3X, gave permission via system panel as requested.
STILL NOTHING! Not a single zfs-formatted disk recognised.
What gives?
Luftwaffle
 
Posts: 6
Joined: Mon Feb 20, 2023 12:36 pm

Re: OSX Ventura not seeing any zfs volumes at all

Postby lundman » Mon Mar 20, 2023 4:45 pm

OK, so you installed 2.1.6, and all your disks show in diskutil, and when you do

zpool import -d /dev

it sees nothing?
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: OSX Ventura not seeing any zfs volumes at all

Postby gideon » Wed Mar 22, 2023 12:13 am

Hi,

I am experiencing the exact same problem. I have an intel laptop running Ventura 13.2.1 which is able to import my zpool but
a mac mini running 13.2.1 doesn't see any pools at all. diskutil sees all 5 drives. I tried a complete reinstall of O3X on the mini
with the latest dev version OpenZFSonOsX-2.1.99-Ventura-13-arm64.pkg, to no avail. On the intel laptop I run version 2.1.6.

Here is the diskutil list output on the mini:
Code: Select all
/dev/disk8 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *14.0 TB    disk8
   1:                        ZFS tank1                   14.0 TB    disk8s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk8s9

/dev/disk9 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *14.0 TB    disk9
   1:                        ZFS tank1                   14.0 TB    disk9s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk9s9

/dev/disk10 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *14.0 TB    disk10
   1:                        ZFS tank1                   14.0 TB    disk10s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk10s9

/dev/disk11 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *14.0 TB    disk11
   1:                        ZFS tank1                   14.0 TB    disk11s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk11s9

/dev/disk12 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *14.0 TB    disk12
   1:                        ZFS tank1                   14.0 TB    disk12s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk12s9


I tried both import using zpool import -af and zpool import -d /dev.
Code: Select all
bash-5.2# zpool import -af
no pools available to import
bash-5.2# zpool import -d /dev
no pools available to import


Anything I can do to further investigate what's going on ?

Thx, Gideon
gideon
 
Posts: 1
Joined: Tue Mar 21, 2023 3:04 am

Re: OSX Ventura not seeing any zfs volumes at all

Postby lundman » Wed Mar 22, 2023 4:25 pm

That is most peculiar, and it has started recently? As in, on newer Ventura? I think from earlier posts we've tried adding zpool to FullDiskAccess.

Either of you have SIP debug enabled to run dtruss of zpool import -d /dev ?
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: OSX Ventura not seeing any zfs volumes at all

Postby o3x_prokyon » Tue May 23, 2023 1:21 am

Off topic: Is there any good reason why you are still on Ventura 13.2.1? The latest version is 13.4 and I think, Apple has fixed some security vulnerabilities, which have been exploited in the wild. So, just an advice...
o3x_prokyon
 
Posts: 33
Joined: Thu Dec 01, 2022 1:17 pm


Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 16 guests