NFS server issue

Hi all,

I’ve got openSuSE 10.3 which should serve as NFS server.

nfs-server, nfs-client and nfsidmap installed

in /etc/exports
/share ip-address(ro,root_squash,sync)

firewall ports open

rpcinfo -p

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 48207 status
100024 1 tcp 56620 status
100005 1 udp 953 mountd
100005 2 udp 953 mountd
100005 1 tcp 954 mountd
100005 2 tcp 954 mountd
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs

Therefore I assume the NFS server should be up and running OK.

From client
rpcinfo -p nfs-server-ip
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 48207 status
100024 1 tcp 56620 status
100005 1 udp 710 mountd
100005 2 udp 710 mountd
100005 1 tcp 711 mountd
100005 2 tcp 711 mountd
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs

so the client should be able to reach and mount the NFS share.

However - in the NFS server log I get only

mountd[32759]: NFS mount of /share attempted from nfs-client-ip

but can’t mount it.

What should I be looking for to make it work?

Thanks,
Dan

“ip-address” is the address of the client. This appears to be an NFSv3 export.

firewall ports open
Becareful with NFSv3: the ports change with each nfsserver restart unless you take care to fix the ports.

rpcinfo -p

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 48207 status
100024 1 tcp 56620 status
100005 1 udp 953 mountd
100005 2 udp 953 mountd
100005 1 tcp 954 mountd
100005 2 tcp 954 mountd
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs

Therefore I assume the NFS server should be up and running OK.

From client
rpcinfo -p nfs-server-ip
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 48207 status
100024 1 tcp 56620 status
100005 1 udp 710 mountd
100005 2 udp 710 mountd
100005 1 tcp 711 mountd
100005 2 tcp 711 mountd
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs

so the client should be able to reach and mount the NFS share.

However - in the NFS server log I get only

mountd[32759]: NFS mount of /share attempted from nfs-client-ip

but can’t mount it.

Did you modify /exports after the nfsserver started? You might need a “service nfsserver reload”

I did try DNS names as well, but it didn’t make any difference and I want to make sure that it isn’t DNS related problem.

For now the firewall is off, again just to make sure that it can’t be problem because of firewall.

No modification of /etc/exports after nfsserver start

Thanks,
Dan

this is one of the lines from my own server:
/home *(rw,root_squash,sync,no_subtree_check)

Best is you install the Yast modules for configuring NFS (yast-nfs-server and configure NFS from the GUI. It will tell you if something’s wrong. The lines in /etc/exports should all have the option no_subtree_check. On the other machine you configure the client side. Enter the NFS-server IP, select the folder, select/create where to mount it, OK and you’re done. If that works you can change the * to the desired ip.