zfs legacy mount not working

Moderators: jhartley, MSR734, nola

zfs legacy mount not working

Post by amteza » Tue Nov 13, 2012 8:10 am

Hi there,

I tried to mount filesystem using mount and it didn't work, any ideas?

Code: Select all
sharrow:ZFSPool Berto$ zfs list
NAME                 USED   AVAIL   REFER  MOUNTPOINT
ZFSPool             114Gi  68,3Gi  9,71Mi  /Volumes/ZFSPool
ZFSPool/Parallels  53,2Gi  68,3Gi  38,1Gi  /Volumes/ZFSPool/Parallels
ZFSPool/Users      60,5Gi  68,3Gi  56,1Gi  /Users
ZFSPool/zfsmnt      108Ki  68,3Gi   108Ki  legacy


Code: Select all
sharrow:ZFSPool Berto$ mount -t zfs ZFSPool/zfsmnt /Volumes/ZFSPool/jj
can_import: no media for zfsmnt


Cheers.
amteza Offline


 
Posts: 22
Joined: Wed Oct 17, 2012 4:40 am
Location: Spain

Re: zfs legacy mount not working

Post by grahamperrin » Tue Nov 13, 2012 9:44 pm

Output please from:

zfs upgrade
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: zfs legacy mount not working

Post by dbrady » Tue Nov 13, 2012 11:32 pm

You should use the zfs command to mount zfs file systems:

Code: Select all
$ zfs mount ZFSPool/zfsmnt


On OSX, mount(8) assumes that local file systems are always mounted on a device path (like /dev/diskNsn).
dbrady Offline


 
Posts: 67
Joined: Wed Sep 12, 2012 12:43 am

Re: zfs legacy mount not working

Post by amteza » Wed Nov 14, 2012 2:43 am

grahamperrin wrote:Output please from:

zfs upgrade

Code: Select all
sharrow:~ Berto$ zfs upgrade
This system is currently running ZFS filesystem version 5.

All filesystems are formatted with the current version.
amteza Offline


 
Posts: 22
Joined: Wed Oct 17, 2012 4:40 am
Location: Spain

Re: zfs legacy mount not working

Post by amteza » Wed Nov 14, 2012 2:47 am

dbrady wrote:You should use the zfs command to mount zfs file systems:

Code: Select all
$ zfs mount ZFSPool/zfsmnt


On OSX, mount(8) assumes that local file systems are always mounted on a device path (like /dev/diskNsn).

I tried that too:
Code: Select all
sharrow:~ Berto$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *256.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            55.0 GB    disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:                        ZFS                         70.2 GB    disk0s4
   5:                        ZFS                         129.7 GB   disk0s5
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:             zfs_pool_proxy ZFSPool                *198.6 GB   disk1
   1:       zfs_filesystem_proxy Users                   134.0 GB   disk1s1
   2:       zfs_filesystem_proxy Parallels               114.8 GB   disk1s2
   3:       zfs_filesystem_proxy zfsmnt                  73.4 GB    disk1s3
sharrow:~ Berto$


Code: Select all
sharrow:~ Berto$ mount -t zfs /dev/disk1s3 /Volumes/ZFSPool/mnt
sharrow:~ Berto$


It seems to work but...
Code: Select all
sharrow:~ Berto$ mount
/dev/disk0s2 on / (hfs, local, journaled, noatime)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk1s1 on /Users (zfs, local, journaled, noatime)
/dev/disk1 on /Volumes/ZFSPool (zfs, local, journaled, noatime)
/dev/disk1s2 on /Volumes/ZFSPool/Parallels (zfs, local, journaled, noatime)
sharrow:~ Berto$

It didn't.

Cheers.
amteza Offline


 
Posts: 22
Joined: Wed Oct 17, 2012 4:40 am
Location: Spain

comparison

Post by grahamperrin » Wed Nov 14, 2012 3:25 am

For reference, a comparison. Here with ZEVO Community Edition 1.1.1 on OS X 10.8.2 (and experimental automated snapshots) with a ZFS slice on the disk that's internal to a MacBookPro5,2 I unmounted a child file system before I went to bed –

gjp22/intrigue

After I woke, as expected:

Code: Select all
macbookpro08-centrim:~ gjp22$ diskutil list | grep zfs
   0:             zfs_pool_proxy gjp22                  *614.2 GB   disk3
   1:       zfs_filesystem_proxy intrigue                188.9 GB   disk3s1
   0:             zfs_pool_proxy zhandy                 *635.7 GB   disk6
   1:       zfs_filesystem_proxy Pocket Time Machine     129.3 GB   disk6s1
macbookpro08-centrim:~ gjp22$ mount | grep zfs
/dev/disk3 on /Volumes/gjp22 (zfs, local, journaled, noatime)
/dev/disk6 on /Volumes/zhandy (zfs, local, journaled, noatime)
/dev/disk6s1 on /Volumes/zhandy/Pocket Time Machine (zfs, local, journaled, noatime)


Then, some messing around (experimenting with a partition type instead of file system type):

Code: Select all
macbookpro08-centrim:~ gjp22$ mount -t zfs_filesystem_proxy /dev/disk3s1 /Volumes/gjp22/intrigue
mount: exec /System/Library/Filesystems/zfs_filesystem_proxy.fs/Contents/Resources/mount_zfs_filesystem_proxy for /Volumes/gjp22/intrigue: No such file or directory


Then a fluffy (not proper) check for mount point conflict:

Code: Select all
macbookpro08-centrim:~ gjp22$ ls -d /Volumes/gjp22/intrigue
/Volumes/gjp22/intrigue
macbookpro08-centrim:~ gjp22$ ls -ld /Volumes/gjp22/intrigue
drwxr-xr-x  2 gjp22  wheel  2  6 Nov 04:15 /Volumes/gjp22/intrigue
macbookpro08-centrim:~ gjp22$ ls -l /Volumes/gjp22/intrigue


Then again messing around:

Code: Select all
macbookpro08-centrim:~ gjp22$ mount /dev/disk3s1 /Volumes/gjp22/intrigue
mount: You must specify a filesystem type with -t.


And finally:

Code: Select all
macbookpro08-centrim:~ gjp22$ mount -t zfs /dev/disk3s1 /Volumes/gjp22/intrigue
macbookpro08-centrim:~ gjp22$ mount | grep zfs
/dev/disk3 on /Volumes/gjp22 (zfs, local, journaled, noatime)
/dev/disk6 on /Volumes/zhandy (zfs, local, journaled, noatime)
/dev/disk6s1 on /Volumes/zhandy/Pocket Time Machine (zfs, local, journaled, native)macbookpro08-centrim:~ gjp22$ ls -al /Volumes/gjp22/intrigue
total 112
drwxr-xr-x    2 gjp22  wheel    2  6 Nov 04:15 .
drwx-wxr-x  193 gjp22  wheel  318 12 Nov 23:18 ..


– neither an error at the command line, nor a mount.

Whilst it's not explicit in Apple's manual pages, I have a vague notion/recollection that (from the OS X perspective, not necessarily ZEVO/ZFS) for some things: the mount verb of the diskutil command is preferable to the mount command …
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

result of a diskutil mount command

Post by grahamperrin » Wed Nov 14, 2012 3:35 am

Code: Select all
macbookpro08-centrim:~ gjp22$ date
Wed 14 Nov 2012 08:28:52 GMT
macbookpro08-centrim:~ gjp22$ uptime
 8:28  up 13:19, 6 users, load averages: 1.61 1.41 1.07
macbookpro08-centrim:~ gjp22$ mount | grep zfs
/dev/disk3 on /Volumes/gjp22 (zfs, local, journaled, noatime)
/dev/disk6 on /Volumes/zhandy (zfs, local, journaled, noatime)
/dev/disk6s1 on /Volumes/zhandy/Pocket Time Machine (zfs, local, journaled, noatime)
macbookpro08-centrim:~ gjp22$ clear


Now see below. Where the mount approach seems to fail silently, the diskutil mount approach is explicit about the failure.

This reminds me of another topic, but experience with phpBB tells me to not even bother looking.

Code: Select all
macbookpro08-centrim:~ gjp22$ diskutil mount -mountPoint /Volumes/gjp22/intrigue /dev/disk3s1
Volume on disk3s1 failed to mount
macbookpro08-centrim:~ gjp22$ diskutil mount /dev/disk3s1
Volume on disk3s1 failed to mount
macbookpro08-centrim:~ gjp22$ ls -al /Volumes/gjp22/intrigue
total 112
drwxr-xr-x    2 gjp22  wheel    2  6 Nov 04:15 .
drwx-wxr-x  193 gjp22  wheel  318 12 Nov 23:18 ..
macbookpro08-centrim:~ gjp22$ zfs list | grep intrigue
gjp22/intrigue               660Ki   175Gi   660Ki  /Volumes/gjp22/intrigue
macbookpro08-centrim:~ gjp22$ diskutil info /dev/disk3s1
   Device Identifier:        disk3s1
   Device Node:              /dev/disk3s1
   Part of Whole:            disk3
   Device / Media Name:      gjp22/intrigue

   Volume Name:              intrigue
   Escaped with Unicode:     intrigue

   Mounted:                  No

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

   Partition Type:           zfs_filesystem_proxy
   OS Can Be Installed:      No
   Media Type:               Generic
   Protocol:                 SATA
   SMART Status:             Not Supported
   Volume UUID:              269DBCDA-D18C-5763-B6E0-57984C2CA40E

   Total Size:               188.9 GB (188933668864 Bytes) (exactly 369011072 512-Byte-Blocks)
   Volume Free Space:        0 B (0 Bytes) (exactly 0 512-Byte-Blocks)
   Device Block Size:        512 Bytes

   Read-Only Media:          No
   Read-Only Volume:         Not applicable (not mounted)
   Ejectable:                No

   Whole:                    No
   Internal:                 Yes
   Solid State:              No

macbookpro08-centrim:~ gjp22$ zfs get all gjp22/intrigue
NAME            PROPERTY              VALUE                    SOURCE
gjp22/intrigue  type                  filesystem               -
gjp22/intrigue  creation              Tue Nov  6  4:15 2012    -
gjp22/intrigue  used                  660Ki                    -
gjp22/intrigue  available             175Gi                    -
gjp22/intrigue  referenced            660Ki                    -
gjp22/intrigue  compressratio         4.60x                    -
gjp22/intrigue  mounted               no                       -
gjp22/intrigue  quota                 none                     default
gjp22/intrigue  reservation           none                     default
gjp22/intrigue  recordsize            128Ki                    default
gjp22/intrigue  mountpoint            /Volumes/gjp22/intrigue  default
gjp22/intrigue  checksum              on                       default
gjp22/intrigue  compression           on                       inherited from gjp22
gjp22/intrigue  atime                 off                      inherited from gjp22
gjp22/intrigue  devices               on                       default
gjp22/intrigue  exec                  on                       default
gjp22/intrigue  setuid                on                       default
gjp22/intrigue  readonly              off                      default
gjp22/intrigue  snapdir               visible                  inherited from gjp22
gjp22/intrigue  canmount              on                       default
gjp22/intrigue  copies                1                        default
gjp22/intrigue  version               5                        -
gjp22/intrigue  utf8only              on                       -
gjp22/intrigue  normalization         formD                    -
gjp22/intrigue  casesensitivity       insensitive              -
gjp22/intrigue  refquota              none                     default
gjp22/intrigue  refreservation        none                     default
gjp22/intrigue  primarycache          all                      default
gjp22/intrigue  secondarycache        all                      default
gjp22/intrigue  usedbysnapshots       0                        -
gjp22/intrigue  usedbydataset         660Ki                    -
gjp22/intrigue  usedbychildren        0                        -
gjp22/intrigue  usedbyrefreservation  0                        -
gjp22/intrigue  logbias               latency                  default
gjp22/intrigue  sync                  standard                 default
macbookpro08-centrim:~ gjp22$ clear





macbookpro08-centrim:~ gjp22$ diskutil coreStorage list
CoreStorage logical volume groups (2 found)
|
+-- Logical Volume Group 902434C9-0131-4E3A-AE15-2B8B938087AD
|   =========================================================
|   Name:         gjp22-cs
|   Size:         616336003072 B (616.3 GB)
|   Free Space:   0 B (0 B)
|   |
|   +-< Physical Volume 179AADE6-34F1-404C-A994-9FD99C881BA6
|   |   ----------------------------------------------------
|   |   Index:    0
|   |   Disk:     disk0s7
|   |   Status:   Online
|   |   Size:     616336003072 B (616.3 GB)
|   |
|   +-> Logical Volume Family FFCE2FAF-BE8E-4FEF-9F3E-E221C6CBCA11
|       ----------------------------------------------------------
|       Encryption Status:       Unlocked
|       Encryption Type:         AES-XTS
|       Conversion Status:       Complete
|       Conversion Direction:    -none-
|       Has Encrypted Extents:   Yes
|       Fully Secure:            Yes
|       Passphrase Required:     Yes
|       |
|       +-> Logical Volume 0CFAFD38-E79B-40AC-A4BE-63296E6B4331
|           ---------------------------------------------------
|           Disk:               disk2
|           Status:             Online
|           Size (Total):       616017227776 B (616.0 GB)
|           Size (Converted):   -none-
|           Revertible:         No
|           LV Name:            gjp22-cs
|           Content Hint:       Apple_HFS
|
+-- Logical Volume Group 039C0D47-F3CF-44D3-A825-B48F01FCF334
    =========================================================
    Name:         OS
    Size:         99484213248 B (99.5 GB)
    Free Space:   0 B (0 B)
    |
    +-< Physical Volume 86D2FA98-8C69-4828-B909-8312AE4A75E2
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk0s5
    |   Status:   Online
    |   Size:     99484213248 B (99.5 GB)
    |
    +-> Logical Volume Family 7AA96B8E-0E41-4C3F-9589-5FAE0C956372
        ----------------------------------------------------------
        Encryption Status:       Unlocked
        Encryption Type:         AES-XTS
        Conversion Status:       Complete
        Conversion Direction:    -none-
        Has Encrypted Extents:   Yes
        Fully Secure:            Yes
        Passphrase Required:     Yes
        |
        +-> Logical Volume B13EE5BF-5D08-49D3-94C2-DF58AFEA1D08
            ---------------------------------------------------
            Disk:               disk1
            Status:             Online
            Size (Total):       99165437952 B (99.2 GB)
            Size (Converted):   -none-
            Revertible:         No
            LV Name:            OS
            Volume Name:        OS
            Content Hint:       Apple_HFS
macbookpro08-centrim:~ gjp22$ clear


Code: Select all
macbookpro08-centrim:~ gjp22$ date
Wed 14 Nov 2012 08:31:41 GMT
macbookpro08-centrim:~ gjp22$ sw_vers
ProductName:   Mac OS X
ProductVersion:   10.8.2
BuildVersion:   12C60
macbookpro08-centrim:~ gjp22$ uname -a
Darwin macbookpro08-centrim.home 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
macbookpro08-centrim:~ gjp22$
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: zfs legacy mount not working

Post by scasady » Sat Nov 24, 2012 7:16 pm

dbrady wrote
zfs mount
not mount -t zfs
scasady Offline


 
Posts: 45
Joined: Sat Sep 15, 2012 8:00 am

Re: zfs legacy mount not working

Post by grahamperrin » Sun Nov 25, 2012 6:41 am

Understood, thanks.

Part of what's above is to demonstrate that

> for some things: the mount verb of the diskutil command is preferable to the mount command

For me this topic, as a whole, falls under the umbrella of best efforts towards full integration. Whilst I never expected perfect integration with 1.1.1 on OS X 10.8.2, it'll be nice if a future version/edition of ZEVO can be closer to perfect with future builds of diskutil, with future builds of mount.

Postscript: I see, amteza has not yet shown use of the zfs command.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: zfs legacy mount not working

Post by amteza » Mon Nov 26, 2012 3:00 am

grahamperrin wrote:Understood, thanks.

Part of what's above is to demonstrate that

> for some things: the mount verb of the diskutil command is preferable to the mount command

For me this topic, as a whole, falls under the umbrella of best efforts towards full integration. Whilst I never expected perfect integration with 1.1.1 on OS X 10.8.2, it'll be nice if a future version/edition of ZEVO can be closer to perfect with future builds of diskutil, with future builds of mount.

Postscript: I see, amteza has not yet shown use of the zfs command.

I there Graham, it worked fine when I set "canmount" property to "noauto". Then I'm using zfs mount and it behaves as I wanted to for unix mount command.
amteza Offline


 
Posts: 22
Joined: Wed Oct 17, 2012 4:40 am
Location: Spain


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 3 guests

cron