?
Solved

NFS not working!

Posted on 2003-10-31
7
Medium Priority
?
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 12 hours left to enroll

764 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