LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2006, 01:26 AM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
RPC: failed to contact portmap (errno -5). .... NFS


Hey guys,

I am having an NFS problem that I can't quite figure out.

I used this guide:
http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS

The machine that the NFS server is on has all the appropriate ports forwarded, and is the DMZ host of the network.

The mount should be over a local LAN, the server machine is 192.168.0.1 and the client is 192.168.0.2

here is /etc/exports on 192.168.0.1:
Code:
/160gb/backups 192.168.0.2(async,no_subtree_check,rw)
here is the dmesg errors on 192.168.0.2:
Code:
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
why does it say "server localhost" ? where is it getting localhost from?

Here is my fstab entry for the mount on 192.168.0.2:
Code:
192.168.0.1:/160gb/backups /home/gnychis/.backups  nfs user,rw,exec,noauto 0 0
I'd greatly appreciate any help!

Thanks!
George

Last edited by hedpe; 09-14-2006 at 01:31 AM.
 
Old 09-14-2006, 08:02 PM   #2
BogusTrumper
Member
 
Registered: May 2006
Posts: 77

Rep: Reputation: 15
Do you have /etc/hosts.allow or /etc/hosts.deny files on your server box? If so, what do they say?
 
Old 09-14-2006, 10:04 PM   #3
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Original Poster
Rep: Reputation: 30
nope, neither file exists
 
Old 09-14-2006, 11:15 PM   #4
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Rep: Reputation: 15
On server, try:
rpcinfo -p localhost
to see if portmap is running on port 111, nfs is on 2049
/etc/init.d/iptables status
to see if port 111(TCP and UDP) and 2049 are opened

On client, try
rpcinfo -p localhost
to see if portmap is running on port 111, nfs on 2049
/etc/init.d/iptables status
to see if port 111(tcp and udp) and 2049 are opened

If the above is correct, on client, try
rpcinfo -p 192.168.0.1
you should see all the rpc services running on server
 
Old 12-14-2006, 11:17 AM   #5
eisman
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Sidux , Debian, Haiku, PC-BSD, CentOS --> XenExpress
Posts: 77

Rep: Reputation: 16
Quote:
Originally Posted by lnthai2002
.....
If the above is correct, on client, try
rpcinfo -p 192.168.0.1
you should see all the rpc services running on server
Thanks for this, I forgot to look up if portmap was running, but with your comment of above I checked my open ports with:

Code:
netstat -tupan
And I didn't see port 111 open, so looked if portmap was running, and saddly I found out it wasn't so thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 02:14 AM
Portmap and RPC in RHL8 Gabriel2010 Linux - Newbie 3 08-19-2004 01:06 PM
NFS Portmap: RPC: Program not registered fibbi Linux - Software 2 08-12-2004 12:40 AM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 12:10 AM
mount: RPC: Unable to receive; errno = Connection refused peacho Linux - Networking 1 01-15-2003 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration