Re: nfs

On Thu, 31 Jul 2008 15:30:47 -0700 (PDT), heavytull wrote:
I'm trying to use nfs; the sever's ip is;

in the /etc/exports file i put the following line:


Hopefully it is formatted:


so now I though i could mount the share on any computer of the sub-net
as follows:

mount /mnt

but it doesn't work!

You may want to read

Had you provided what OS, version, exact error messages, you may have
received more detailed instructions.

I have to mount it as follows:

mount /mnt

You may want to have a terminal on the server and client machine running
tail -f /var/messages
when trying the mount command.

That way you have a better chance of seeing who cannot do what and be
able to provide possible messages which may help someone
troubleshoot your problem.

Assuming nfs and portmap daemon/services are working/running, possible
failure points would be firewall, tcpwrappers, config file /etc/exports.

my server (pm80) is running Mandriva linux 2008.0 and has

$ cat /etc/exports
/local wm81(rw,no_root_squash,sync)

$ cat /etc/hosts.allow has
portmap: LOCAL, .home.test,,
nfsd: LOCAL, .home.test,,
ALL: LOCAL, .home.test,,

both server/clients have the same /etc/hosts, and

$ grep hosts: /etc/nsswitch.conf
hosts: files dns

$ tail -13 /etc/hosts.deny

spawn ( \
/bin/echo -e "\n\
TCP Wrappers\: Connection Refused\n\
By\: $(uname -n)\n\
Process\: %d (pid %p)\n\
User\: %u\n\
Host\: %c\n\
Date\: $(date)\n\
" | /bin/mail -s \"$(uname -n)\" root ) & : DENY

#*********************** end host.deny ********************************

The above sends root tcpwrapper failures if tcpwappers is enabled.

on the client,
$ grep nfs /etc/fstab
pm80:/local /nfs nfs user,noauto,rsize=8192,wsize=8192,timeo=14,intr,tcp 0 0

Possible commands which may help debugging:
exportfs -v
rpcinfo -p

other nfs tools: nfsddebug, nfsstat, nfsdebug

Possible daemon/services: nfs, nfslock, portmap, nfs-common, nfs-server

Relevant Pages