Solved

NFS not working!

Posted on 2003-10-31
7
339 Views
Last Modified: 2013-12-15
Hi,
I am trying to set up an nfs server but the client cannot seem to access the server. nfs server runs RH7.3 (2.4.20-20.7) and client runs RH9 (2.4.20-20.9).

On server, I did the following
1. in /etc/exports, added: <server_dir> <client> (rw)
2. exportfs -a
3. checked iptables, hosts.allow/deny. for requisite permissions.

But on client when I do rpcinfo -p <server>, it doesnt show anything. Neither does showmount

also tried restarting necc daemons, checking log files.. nothing out of ordinary.

I can ping and ssh to the server, but nfs is no go :( please help!! rpcinfo -p on server attached below

Thanks,
Matt

----
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  32768  status
    100024    1   tcp  32768  status
    100004    2   udp    645  ypserv
    100004    1   udp    645  ypserv
    100004    2   tcp    648  ypserv
    100004    1   tcp    648  ypserv
    100007    2   udp    665  ypbind
    100007    1   udp    665  ypbind
    100007    2   tcp    668  ypbind
    100007    1   tcp    668  ypbind
    100011    1   udp    942  rquotad
    100011    2   udp    942  rquotad
    100011    1   tcp    945  rquotad
    100011    2   tcp    945  rquotad
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   udp  32776  nlockmgr
    100021    3   udp  32776  nlockmgr
    100021    4   udp  32776  nlockmgr
    100005    1   udp  32777  mountd
    100005    1   tcp  32776  mountd
    100005    2   udp  32777  mountd
    100005    2   tcp  32776  mountd
    100005    3   udp  32777  mountd
    100005    3   tcp  32776  mountd
    391002    2   tcp  33196  sgi_fam



0
Comment
Question by:Matt39
  • 2
  • 2
7 Comments
 
LVL 9

Expert Comment

by:majorwoo
ID: 9659909
your exports file may be the culprit, assuming you just want one client to be able to get it:

/home/josh 192.168.0.10/255.255.255.255(rw)

or for the whole subnet:

/home/josh 192.168.0.0/255.255.255.0(rw)

remember spaces meen different thing different place.  THere is one space in the line after /home/josh and before 192.168....
0
 
LVL 7

Expert Comment

by:glassd
ID: 9660190
Have you started the NFS server process. Check with:
   service nfs status
on the server. You might have to start this service.
0
 

Author Comment

by:Matt39
ID: 9660955
Thanks all who answered. I fixed the problem. The iptables ruleset was not configured properly. Everything is working fine now.

Thanks
Matt
0
 
LVL 7

Expert Comment

by:glassd
ID: 9661462
Fine by me.
0
 

Accepted Solution

by:
Matt39 earned 0 total points
ID: 9665871
Btw, I think I should add a little more about how the problem was fixed. The problem occured due to incorrect documentation in the man page of iptables. For inserting a rule, the man page says..

-I, --insert
Insert one or more rules in the selected chain as the given rule number. So, if the rule number is 1, the rule or rules are inserted at the head of the chain. This is also the default if no rule number is specified.

This is incorrect. The default is that the rule is appended to the bottom, not added to the head of the list. Have notified the netfilter maintainers about this.

Thanks,
Matt
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question