OS X Mavericks: Connecting to ZFS on Ubuntu Through NFS

I have a working zpool and dataset set on my home server. I want to setup NFS to access ZFS over my home network on my Mac. The server is running Ubuntu 14.04; my Mac is running OS 10.9.2 Mavericks.


On the Ubuntu side, I have...


  • # apt-get install nfs-kernel-server
  • # zfs set sharenfs=rw=@192.168.0.0/24,insecure tank/documents
    • should allow 192.168.0.0 - 192.168.0.255
    • insecure is needed so the mac connects on ports bigger than 1024
  • # zfs share tank/documents
  • # service nfs-kernel-server start

    commented out && grep -q '^[[:space:]]*[^#]*/' $export_files in /etc/init.d/nfs-kernel-server because I can't start the server with an empty /etc/exports/ file

  • # showmount -e to verify directory is mounted


The output of showmount -e is this.

Export list for ubuntu1404:

/tank/documents *



On the Mac side, I have...

  • $ rpcinfo -p 192.168.0.3 to verify NFS is visible on the network
  • $ mount -t nfs 192.168.0.3:/tank/documents /Users/me/Remote

This last step is where I'm stuck. I keep getting "Operation not permitted".



I've been reading around, but I've only found old tutorials that use NFS Mounts from Disk Utility. Does anyone have any up-to-date tutorials?

MacBook Air, OS X Mavericks (10.9.2)

Posted on Apr 19, 2014 4:50 PM

Reply
4 replies

Apr 21, 2014 7:57 AM in response to Mae8se

Mae8se wrote:


Okay, so I must have the syntax for mount wrong because I can connect through Finder's Connect to server menu item.


nfs://192.168.0.3/tank/documents


Not necessarily. NFS is ancient UNIX technology. It was designed for a world where only root mounted volumes. If you mount through the Finder, then root is doing the mounting for you. All bets are off if you try from the command line.


What is Autofs?


Here is the documentation: http://images.apple.com/business/docs/Autofs.pdf


Autofs was designed with NFS in mind, so it should work well with it. It will be like having the Finder do the mount for you whenever you attempt to access the mount point. In theory, it should unmount the server too when you are no longer using it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

OS X Mavericks: Connecting to ZFS on Ubuntu Through NFS

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.