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 192.168.0.1;

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

/home/share/movies
192.168.0.0/24(ro,sync,insecure,all_squash)

Hopefully it is formatted:

/home/share/movies 192.168.0.0/24(ro,sync,insecure,all_squash)


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

mount 192.168.0.1:/movies /mnt

but it doesn't work!

You may want to read http://www.catb.org/~esr/faqs/smart-questions.html

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

I have to mount it as follows:

mount 192.168.0.1:/home/share/movies /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, 192.168.1.131, 192.168.1.0/24
nfsd: LOCAL, .home.test, 192.168.1.131, 192.168.1.0/24
ALL: LOCAL, .home.test, 192.168.1.131, 192.168.1.0/24

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

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


$ tail -13 /etc/hosts.deny

ALL: ALL:\
spawn ( \
/bin/echo -e "\n\
TCP Wrappers\: Connection Refused\n\
By\: $(uname -n)\n\
Process\: %d (pid %p)\n\
\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
showmount

other nfs tools: nfsddebug, nfsstat, nfsdebug

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