Networking :: NFS problems



Trying to use NFS to connect 2 DSL machines. v4.4RC1 on the server & 3.1 on the client. nfs-kernel-server.dsl loaded on server.

On the server
/etc/export contains: /home/dsl *(rw)
/etc/hosts contains ip & hostname of client
/etc/hosts.allow & deny are empty

started:
portmap
nfs-common
nfs-kernel-server
modprobe nfs

On the client
/etc/hosts contains ip & hostname of server

sudo modprobe nfs
sudo mount <servername>:/home/dsl tnfs (tnfs is directory in /home/dsl)
return error: Permission denied


sudo showmount -e <servername> gives:
/ramdisk/home/dsl *


I have also tried <servername>:/ramdisk/home/dsl & replacing <servername> with the ip address. Also tried mounting exported directory on server (i.e. mount localhost:/home/dsl <mount_dir>) & still get the permission denied message.

/proc/fs/nfs/exports contains:
# Version 1.1
# Path Client(Flags) # IPs

i.e. no exports listed?

nfsd is running on the server & rpcinfo reports portmapper, status, nfs, nlockmgr & mountd all present

Has anyone got nfs working between 2 dsl machines?

On the client, do you have portmap and nfs-common started?  On the client I sometimes have to set a static ip address for nfs to work without the permission denied thing.  And that is regardless what distribution is running on the server or client.
Also, on the server, /etc/hosts.allow may need to read like this, assuming your network is 192.168.0.0:

lockd: 192.168.0.0/255.255.255.0
statd: 192.168.0.0/255.255.255.0
portmap: 192.168.0.0/255.255.255.0
nfsd: 192.168.0.0/255.255.255.0
mountd: 192.168.0.0/255.255.255.0

Run "rpcinfo -p [ host ]" on the client, both to the server hostname/ip and loopback.

Edit:
Also found a nice NFS troubleshooting guide
http://publib.boulder.ibm.com/infocen....obs.htm

I have tried Jason's suggestion for hosts.allow & that doesn't change anything.

I did try loading portmap & nfs-common on the client - also modprobe nfs on the server. Again this didn't change anything. rpcinfo for the client (from either machine) gives an error (not at my 2 dsl machines at the moment, but it was something about rpc not being registered IIRC).

Haven't tried the static IP. Nonetheless - why can't I even mount exported directories on the same machine as they are exported from?

Quote (andrewb @ June 12 2008,19:15)
I have tried Jason's suggestion for hosts.allow & that doesn't change anything.

I did try loading portmap & nfs-common on the client - also modprobe nfs on the server. Again this didn't change anything. rpcinfo for the client (from either machine) gives an error (not at my 2 dsl machines at the moment, but it was something about rpc not being registered IIRC).

Haven't tried the static IP. Nonetheless - why can't I even mount exported directories on the same machine as they are exported from?

Try running
"ps auxww | grep -i 'rpc'"

Does it return any processes for rpc.d or rpc.stat or rpc anything?

Edit: Try making sure both portmap and rpc.statd are running on the client. Then connect.

Also, did you run "/usr/sbin/exportfs -a"? It might show an error with the exports file syntax preventing things from working correctly.

Oh, and try running nfsd in the foreground, to see if you can catch any errors that might otherwise be sent to /dev/null.

Next Page...
original here.