nfs times out
I'm trying to get nfs running on two ubuntu intrepid machines
following the instructions here: http://czarism.com/easy-peasy-ubuntu...s-file-sharing is there any reason, with iptables flushed!!! & being able to telnet -ports 111, 2049, to the server from client , that I should get: Code:
mount.nfs: mount to NFS server '10.252.99.223' failed: timed out, retrying I cannot find an answer explaining this. |
In order to get another machine to respond to your NFS mount request, that machine must be running a daemon named nfsd. On many systems, this is not started by default, so unless you have made a change to the default configuration for this daemon, it is probably not running.
To find out, on the target machine, do this: Code:
#netstat -atnp Code:
#ps aux|grep nfsd If these are not running, you have found your problem. Start them up: Code:
#/etc/init.d/nfs start If these services are already running, you should check the file /etc/exports on the target machine to make sure that it is willing to offer the part of the file system you are looking for as an NFS export. If you change the contents of this file, remember to let the system know about it: Code:
#exportfs -a |
thanks, but not it. yet.
Quote:
netstat -atnp|grep 111 reveals: tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 4588/portmap Also, ps aux|grep nfs reveals: Code:
root 17094 0.0 0.0 7496 828 pts/0 S+ 13:45 0:00 grep nfs /etc/exports contents: Code:
/mnt/testing 10.252.174.175(rw,sync,no_root_squash,no_subtree_check) I've also exportfs -a, and restarted both nfs-kernel-server & nfs-common services, to no avail. Further I've added the client machine to the server's /etc/hosts file, just in case. Result: timed out, failed. Now what? (Thanks for your help!) |
The mystery deepens.
I guess the next things I would look at are these: 1. Is mountd running on your client machine? (It may be called rpc.mountd). 2. Are there any complaints in the syslog (probably /var/log/messages)? If mountd is running, and there are no relevant complaints, I guess that the next step might be to try to trace the interaction using tcpdump, so that we can see where the transaction breaks down. In case you are not familiar with this program, it will trap selected IP packets and report them for you. In this case, I would first set it up on the client machine Code:
# tcpdump -nn -xX -s 256 host 10.252.99.223 Good luck. |
Here's the setup that works for me:
I use NFS between my Desktop and Laptop as my server. Both being on the same LAN. On the server there must be an /etc/exports with the following. Replace the fields in {} with your information. In my example I'm giving access to the entire home folder tree. This scheme works with any mix of 8.04 and 8.10. There can be multiple entries giving more clients permission. /home/{Laptop user} {Desktop hostname}.local(rw) This allows the Desktop to access the home folder of the laptop. Prior to Ubuntu 8.04 you need to run "sudo exportfs -rv" for the system to read /etc/exports. New versions do this for you at boot. On the Desktop create a folder to mount to. In my case I placed that folder in my home folder. On the Desktop side I run sudo mount {Laptop hostname}.local:/home/{Laptop user} /home/{Desktop user}/{folder to mount to} To un-mount I run sudo umount {Laptop hostname}.local:/home/{Laptop user} /home/{Desktop user}/{folder to mount to} You can extrapolate what to do from this working example. I chose not to use fstab to mount and wrote a couple of bash scripts that supply the parameters to the mount and umount commands. |
All times are GMT -5. The time now is 11:17 PM. |