LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-06-2009, 07:28 PM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Rep: Reputation: 15
RPC: failed to contact portmap (errno -5)


Hello,

I have NFS 4 running on my server and everything works just fine. I can mount shares from my clients and read/write to NFS shares and all that. Though, everytime I start NFS, I get:

RPC: failed to contact portmap (errno -5).

Nothing seems to be failing because NFS starts fine and all the services are up and running.

I have no /etc/hosts.allow or .deny and I have no iptables or any sort of firewall. It is a pretty isolated network.

Does anybody know how I can stop this error message from being displayed?

Thanks
 
Old 02-09-2009, 07:36 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Hi.

I've your only looking for a way to disable the error message, I guess you could pipe the std err output to dev null like this "service nfs start 2>/dev/null". Or you can even add the piping to the script itself.

But why NFS works when portmap doesn't I don't understand. What does "service nfs status" and "service portmap status" show?
 
Old 02-09-2009, 01:40 PM   #3
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kenneho View Post
Hi.

I've your only looking for a way to disable the error message, I guess you could pipe the std err output to dev null like this "service nfs start 2>/dev/null". Or you can even add the piping to the script itself.

But why NFS works when portmap doesn't I don't understand. What does "service nfs status" and "service portmap status" show?
I tried piping, but this error still shows up!
That is a good question. Here's the status from portmap and nfs:

> /etc/init.d/nfs status
rpc.mountd is stopped
nfsd is stopped
> /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS daemon: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
[ OK ]
Starting NFS mountd: [ OK ]
> /etc/init.d/nfs status
rpc.mountd (pid 2276) is running...
nfsd (pid 2272 2271 2270 2269 2268 2267 2266 2265) is running...
> /etc/init.d/portmap status
portmap (pid 1707) is running...
> /etc/init.d/nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: nfsd: last server has exited
nfsd: unexporting all filesystems
RPC: failed to contact portmap (errno -5).
[ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS daemon: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
[ OK ]
Starting NFS mountd: [ OK ]
> /etc/init.d/nfs status
rpc.mountd (pid 2351) is running...
nfsd (pid 2347 2346 2345 2344 2343 2342 2341 2340) is running...
 
Old 02-13-2009, 05:42 AM   #4
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Do you still get the error message even if your running "service nfs start 2>/dev/null"?
 
Old 02-13-2009, 12:25 PM   #5
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kenneho View Post
Do you still get the error message even if your running "service nfs start 2>/dev/null"?

Yes I do! Do you have a solution?

Thanks
 
Old 02-16-2009, 08:34 AM   #6
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
What happens if you do this? "service nfs start &>/dev/null"
 
Old 02-16-2009, 01:47 PM   #7
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kenneho View Post
What happens if you do this? "service nfs start &>/dev/null"
$ service nfs restart &>/dev/null
nfsd: last server has exited
nfsd: unexporting all filesystems
RPC: failed to contact portmap (errno -5).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
 
Old 02-17-2009, 02:51 AM   #8
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Really? This seems very strange. That command pipes both std out and std err to /dev/null, so you shouldn't get any output at all.

Which shell are you using?
 
Old 02-17-2009, 02:55 PM   #9
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kenneho View Post
Really? This seems very strange. That command pipes both std out and std err to /dev/null, so you shouldn't get any output at all.

Which shell are you using?
haha I know!!!! It's strange and disturbing at the same time! I'm using bash...
 
Old 02-18-2009, 03:27 AM   #10
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
If you have some linux support tech line to call I'd surely make that call now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RPC: failed to contact portmap (errno -5). mgrant Linux - General 1 12-10-2008 07:40 AM
problem with nfsd and rpc.portmap jpsatlinuxquestions Slackware 7 08-06-2008 02:17 PM
Having issues with nfs/rpc/portmap... hollywoodb Linux - Networking 2 04-28-2007 09:08 PM
RPC: failed to contact portmap (errno -5). .... NFS hedpe Linux - Networking 4 12-14-2006 12:17 PM
Portmap and RPC in RHL8 Gabriel2010 Linux - Newbie 3 08-19-2004 02:06 PM


All times are GMT -5. The time now is 10:23 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration