Jag Lally

Q: automount nfs mount hangs iMac or mounts read only

hi,

 

I'm trying to use automount to mount nfs share from debian jessie linux server. My exports file looks like below:

export 192.168.1.0/24(rw,insecure,fsid=0,no_subtree_check,sync,crossmnt,sec=krb5,no_ro ot_squash)

/export/data 192.168.1.0/24(rw,insecure,no_subtree_check,sync,sec=krb5,no_root_squash)

 

and on my iMac, the /etc/auto_master is:

#

# Automounter master map

#

+auto_master # Use directory service

/net -hosts -nobrowse,hidefromfinder,nosuid

/home auto_home -nobrowse,hidefromfinder

/Network/Servers -fstab

/- -static

/- auto_odin

 

and the map file /etc/auto_odin is:

/mnt/odin -fstype=nfs4,rw,intr,locallocks,nfc,sec=krb5,vers=4,tcp,noresvport,noatime,no_r oot_squash odin.asgard.internal:/export/data

 

I've tried various combination of options and share paths. It always ends up either mounted read only; which crashed the IMac when I try to edit a test file, or it fails to mount. The curious thing is mounting manually in terminal or Finder works perfectly.

e.g.

sudo mount -t nfs -o sec=krb5,vers=4,resvport,rw,noatime,intr,hard odin.asgard.internal:/data /mnt/odin

In Finder:

nfs://ver=4,rsize=32768,wsize=32768,noatime,tcp,odin.asgard.internal/export

 

It feels like there is an option automount needs which I'm not settling but I can't find any further documentation or help other than the Apple pdf document and some examples where it's worked for other people.

 

Any ideas on  how to mount via auomount?

 

thanks

Jag

iMac, OS X El Capitan (10.11), null

Posted on Oct 16, 2015 12:11 AM

Close

Q: automount nfs mount hangs iMac or mounts read only

  • All replies
  • Helpful answers

  • by Jag Lally,Solvedanswer

    Jag Lally Jag Lally Oct 16, 2015 2:49 PM in response to Jag Lally
    Level 1 (0 points)
    Oct 16, 2015 2:49 PM in response to Jag Lally

    It's funny how you go around and around in frustration until you get to the magic answer that works. I have spent days on this problem before posting earlier today, and now I found the solution myself. My map file /etc/auto_odin is now:

     

    /mnt/odin -rw,noresvport,vers=4,rsize=32768,wsize=32768,noatime,tcp,intr,sec=krb5,hard odin.asgard.internal:/

     

    According to the man page, I shouldn't need fstype for nfs filesystems. My url wasn't quite right for NFS version 4 either as I needed it to point to the root exported with fsid=0. That seems to have been the correct magical incantation to make it work.

     

    I'm still getting weird kerberos authentication failures but at least it mounts now.

     

    Hope it helps someone else with a similar problem.