Skip to content

diskutil does not recognise File System (but mount point works) #815

@Haravikk

Description

@Haravikk

Very strange issue, but sometimes when I mount a dataset it seems to mount in a strange state whereby diskutil doesn't detect file system details — the mount point itself works fine (I can access data, write to it etc. without any issues) but this has some knock-on effects such as macOS being unable to search the volume at all (mdutil -as won't even list it).

The issue is strange because it's inconsistent, sometimes it just happens, but I've yet to find any kind of pattern as to why it happens when it does, as after restarting it may be fine again. For example, here is the output for an affected mount point:

% diskutil info disk10s21
   Device Identifier:         disk10s21
   Device Node:               /dev/disk10s21
   Whole:                     No
   Part of Whole:             disk10

   Volume Name:               Not applicable (no file system)
   Mounted:                   Yes
   Mount Point:               /Volumes/Users/haravikk/Documents/Resources
   File System:               None

   Partition Type:            ZFS Dataset
   OS Can Be Installed:       No
   Media Type:                Generic
   Protocol:                  Disk Image
   SMART Status:              Not Supported
   Disk / Partition UUID:     652C0FEC-48FB-3B7A-AE68-E50AAAC38994
   Partition Offset:          0 Bytes (0 512-Byte-Device-Blocks)

   Disk Size:                 6.9 TB (6940667150336 Bytes) (exactly 13555990528 512-Byte-Units)
   Device Block Size:         512 Bytes

   Media OS Use Only:         No
   Media Read-Only:           No
   Volume Read-Only:          Not applicable (no file system)

   Device Location:           Internal
   Removable Media:           Fixed

   Solid State:               Info not available

Note File System reads as None and Volume Name and Volume Read-Only as Not applicable (no file system) despite the dataset being mounted and otherwise usable, it just has information unavailable. For comparison, here is a dataset mounted without any issue:

% diskutil info disk10s5 
   Device Identifier:         disk10s5
   Device Node:               /dev/disk10s5
   Whole:                     No
   Part of Whole:             disk10

   Volume Name:               Downloads
   Mounted:                   Yes
   Mount Point:               /Volumes/Users/media/Downloads

   Partition Type:            ZFS Dataset
   File System Personality:   ZFS
   Type (Bundle):             zfs
   Name (User Visible):       ZFS Dataset

   OS Can Be Installed:       No
   Media Type:                Generic
   Protocol:                  Disk Image
   SMART Status:              Not Supported
   Volume UUID:               7A9048AF-471C-3835-8279-E9F027561713
   Disk / Partition UUID:     7A9048AF-471C-3835-8279-E9F027561713
   Partition Offset:          0 Bytes (0 512-Byte-Device-Blocks)

   Disk Size:                 6.9 TB (6940667150336 Bytes) (exactly 13555990528 512-Byte-Units)
   Device Block Size:         512 Bytes

   Volume Total Space:        871.9 GB (871920074752 Bytes) (exactly 1702968896 512-Byte-Units)
   Volume Used Space:         492.6 GB (492601122816 Bytes) (exactly 962111568 512-Byte-Units) (56.5%)
   Volume Free Space:         379.3 GB (379318951936 Bytes) (exactly 740857328 512-Byte-Units) (43.5%)
   Allocation Block Size:     512 Bytes

   Media OS Use Only:         No
   Media Read-Only:           No
   Volume Read-Only:          No

   Device Location:           Internal
   Removable Media:           Fixed

   Solid State:               Info not available

Note that it correctly shows a volume name, and instead of File System it identifies a File System Personality and type, along with additional details such as the volume sizes.

You can likewise see some missing information in the listing:

% diskutil list disk10   
/dev/disk10 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +6.9 TB     disk10
   1:                ZFS Dataset Drop Box                6.9 TB     disk10s1
   2:                ZFS Dataset Drop Box                6.9 TB     disk10s2
   3:                ZFS Dataset Drop Box                6.9 TB     disk10s3
   4:                ZFS Dataset Drop Box                6.9 TB     disk10s4
   5:                ZFS Dataset Downloads               6.9 TB     disk10s5
   6:                ZFS Dataset Jellyfin Metadata       6.9 TB     disk10s6
   7:                ZFS Dataset Movies                  6.9 TB     disk10s7
   8:                ZFS Dataset Music                   6.9 TB     disk10s8
   9:                ZFS Dataset Plex Metadata           6.9 TB     disk10s9
  10:                ZFS Dataset                         6.9 TB     disk10s10
  11:                ZFS Dataset Site Backups            6.9 TB     disk10s11
  12:                ZFS Dataset VMs                     6.9 TB     disk10s12
  13:                ZFS Dataset Dungeondraft            6.9 TB     disk10s13
  14:                ZFS Dataset Games                   6.9 TB     disk10s14
  15:                ZFS Dataset Downloads               6.9 TB     disk10s15
  16:                ZFS Dataset Kenku FM                6.9 TB     disk10s16
  17:                ZFS Dataset                         6.9 TB     disk10s17
  18:                ZFS Dataset                         6.9 TB     disk10s18
  19:                ZFS Dataset Downloads               6.9 TB     disk10s19
  20:                ZFS Dataset Movies                  6.9 TB     disk10s20
  21:                ZFS Dataset                         6.9 TB     disk10s21
  22:                ZFS Dataset                         6.9 TB     disk10s22

While everything is listed as ZFS Dataset only some have names, and the datasets without names are those that won't show as a "proper" file system despite otherwise functioning as expected. There are no obvious differences in settings between affected datasets (and like I say, it's inconsistent, so doesn't seem to be a setting issue as such, sometimes they'll mount without issue, other times they do this).

I'm running zfs-2.3.0-1 on macOS Sequoia 15.7.2 (24G325).

My only theory is that it has something to do with the macOS file system integration, and how it exposes file system details?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions