NFS not working!

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



Matt39Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

majorwooCommented:
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
glassdCommented:
Have you started the NFS server process. Check with:
   service nfs status
on the server. You might have to start this service.
0
Matt39Author Commented:
Thanks all who answered. I fixed the problem. The iptables ruleset was not configured properly. Everything is working fine now.

Thanks
Matt
0
glassdCommented:
Fine by me.
0
Matt39Author Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.