Solved

NFS not working!

Posted on 2003-10-31
7
336 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now