NFS problems...

michaelsanford

Translator, Web Developer
I'm having difficulty isolating the problem with my NFS mounts.

I'm exporting, for example, /tmp from my Slackware server called trogdor.local to my iMac.

root@trogdor:~# cat /etc/exports
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.
/tmp 192.168.0.100(rw,sync)


Ok, just to make sure:
root@trogdor:~# exportfs ; /etc/rc.d/rc.nfsd restart
/tmp 192.168.0.100
Starting NFS services:
/usr/sbin/exportfs -r
/usr/sbin/rpc.rquotad
/usr/sbin/rpc.nfsd 8
/usr/sbin/rpc.mountd
/usr/sbin/rpc.lockd
/usr/sbin/rpc.statd


Another just-to-make-sure :
homestar-runner:~ root# ifconfig en0 | grep inet
inet6 fe80::203:93ff:fe86:f73a prefixlen 64 scopeid 0x4
inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255


Now, the hard part
homestar-runner:~ root# mount 192.168.0.110:/tmp /Volumes/trogdor/tmp
mount_nfs: /Volumes/trogdor/tmp: Operation not permitted

Check that the folders exist and are owned by the right people:
homestar-runner:~ root# ls -la /Volumes/trogdor/
total 0
drwxr-xr-x 5 root admin 170 7 Dec 22:01 .
drwxrwxrwt 7 root admin 238 7 Dec 22:00 ..
drwxr-xr-x 2 root admin 68 7 Dec 22:01 ftp
drwxr-xr-x 2 root admin 68 7 Dec 22:01 tmp
drwxr-xr-x 2 root admin 68 7 Dec 22:01 www

So why isn't this working ? The error messages don't tell me much. (My LAN is protected by my router's firewall so there aren't any between my computers and my router isn't configured to block any LAN-LAN traffic).
 
nfs://192.168.0.110/tmp
nfs://192.168.0.110
nfs://trogdor.local/tmp


All return « Impossible to connect to server because of a bad hostname or password » (quick translation ;))

Is it possible that NFSd is just not running on trogdor ?

PS trogdor.local has an entry in /machines in the NetInfo database...
 
On trogdor, do a ps ax, and look for nfs stuff. I'm trying to find a linux machine to play with NFS, as I have only used Solaris and BSD machines with NFS.
 
Seems like there's lots of nfsd stuff (sample)

PID TTY STAT TIME COMMAND
337 ? S 0:00 [nfsd] (8 of these)
348 ? Ss 0:00 /usr/sbin/rpc.mountd
351 ? Ss 0:00 /usr/sbin/rpc.statd

So it would seem to be running...

PS I also just added homestar-runner.local to /etc/hosts and I noticed that the output from #exportfs replaces the IP address contained in /etc/exports with the hostname. Cool.
 
Back
Top