(I asked this on Stack Exchange, but figured I'd ask here too)
I'm trying to automount a NFS fielsystem on an iMac (El Capitan 10.11.1). The FS is exported from a Mac Mini (El Capitan 10.11.1 + OSX Server 5.0.15).
On the server :
zhaan:etc root# cat exports
/srv/www -maproot=root:wheel
zhaan:etc root# showmount -e
Exports list on localhost:
/srv/www Everyone
On the iMac
Moya:etc root> cat auto_master
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
/- auto_nfs -nobrowse,nosuid
Moya:etc root> cat auto_nfs
/mnt/www/ -fstype=nfs,noowners,nolockd,noresvport,soft,bg,intr,rw,tcp,nfc nfs:///zhaan/srv/www
Moya:etc root> automount -vc
automount: /net updated
automount: /home updated
automount: /mnt/www updated
automount: no unmounts
Now a df shows this :
map auto_nfs 0 0 0 100% 0 0 100% /mnt/www
But no access is possible :
Moya:etc root> cd /mnt/www
-sh: cd: /mnt/www: No such file or directory
I also can't unmount it - I have to reboot to get rid of it.
system.log shows the same error :
Nov 13 23:16:08 Moya automountd[835]: mount of /mnt/www failed: No such file or directory
Note : mounting the FS manually works (and allows read and write to root)
Moya:etc root# mount -t nfs zhaan:/srv/www /mnt/www
Moya:www root# df -g /mnt/www
Filesystem 1G-blocks Used Available Capacity iused ifree %iused Mounted on
zhaan:/srv/www 1037 286 750 28% 75248595 196840907 28% /mnt/www
Moya:etc root# cd /var/www; touch test; ll
total 0
drwxr-xr-x 3 root wheel 102 Nov 14 00:12 .
drwxr-xr-x 27 root wheel 918 Nov 13 10:50 ..
-rw-r--r-- 1 root wheel 0 Nov 14 00:12 test
I've tried several options on the client (ip vs hostname, soft vs hard, removing almost all of them, with or without the : after the server name, etc) and the server (specifying -network) but nothing works.
I see nothing in the server's system.log.
What am I missing ?
I'm trying to automount a NFS fielsystem on an iMac (El Capitan 10.11.1). The FS is exported from a Mac Mini (El Capitan 10.11.1 + OSX Server 5.0.15).
On the server :
- File sharing is active
zhaan:etc root# cat exports
/srv/www -maproot=root:wheel
zhaan:etc root# showmount -e
Exports list on localhost:
/srv/www Everyone
On the iMac
- The directory /mnt/www exists and is empty (root:wheel)
Moya:etc root> cat auto_master
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
/- auto_nfs -nobrowse,nosuid
Moya:etc root> cat auto_nfs
/mnt/www/ -fstype=nfs,noowners,nolockd,noresvport,soft,bg,intr,rw,tcp,nfc nfs:///zhaan/srv/www
Moya:etc root> automount -vc
automount: /net updated
automount: /home updated
automount: /mnt/www updated
automount: no unmounts
Now a df shows this :
map auto_nfs 0 0 0 100% 0 0 100% /mnt/www
But no access is possible :
Moya:etc root> cd /mnt/www
-sh: cd: /mnt/www: No such file or directory
I also can't unmount it - I have to reboot to get rid of it.
system.log shows the same error :
Nov 13 23:16:08 Moya automountd[835]: mount of /mnt/www failed: No such file or directory
Note : mounting the FS manually works (and allows read and write to root)
Moya:etc root# mount -t nfs zhaan:/srv/www /mnt/www
Moya:www root# df -g /mnt/www
Filesystem 1G-blocks Used Available Capacity iused ifree %iused Mounted on
zhaan:/srv/www 1037 286 750 28% 75248595 196840907 28% /mnt/www
Moya:etc root# cd /var/www; touch test; ll
total 0
drwxr-xr-x 3 root wheel 102 Nov 14 00:12 .
drwxr-xr-x 27 root wheel 918 Nov 13 10:50 ..
-rw-r--r-- 1 root wheel 0 Nov 14 00:12 test
I've tried several options on the client (ip vs hostname, soft vs hard, removing almost all of them, with or without the : after the server name, etc) and the server (specifying -network) but nothing works.
I see nothing in the server's system.log.
What am I missing ?