LinuxQuestions.org
Visit Jeremy's Blog.
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 08-12-2008, 12:23 PM   #1
yadava
Member
 
Registered: Apr 2008
Posts: 60

Rep: Reputation: 15
Red face problem with nfs server


i configured nfs and dhcp server to install the red hat in another
computer via nfs installation
when i tried to mount the directory from another computer it
says "directory could not be mounted"
one more curious thing is happening is that
after configuring the nfs server on my computer when i restart the
portmap and nfs service on graphical interface it start perfactly
but when i tried to do same thing on virtual console it shows error
"RPC: failed to connect portmap (error -5)".
in my configuration step i did these steps
1- in /etc/exports
/var/ftp/pub 192.168.0.0/ 24(rw,sync)
after that i start the service
and did this exportfs -av
rpcinfo -p was also showing all ports where the daemons were running
------------ ----
one more thing is that
when i shut down my pc
it shows the same error
"RPC: failed to connect portmap (error -5)".

------------ -
what the problem may be
 
Old 08-12-2008, 01:18 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
What do your logs indicate on both the server and the client when attempting to connect? Is portmap running on the client end as well?
 
Old 08-13-2008, 02:29 PM   #3
yadava
Member
 
Registered: Apr 2008
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yadava View Post
i configured nfs and dhcp server to install the red hat in another
computer via nfs installation
when i tried to mount the directory from another computer it
says "directory could not be mounted"
one more curious thing is happening is that
after configuring the nfs server on my computer when i restart the
portmap and nfs service on graphical interface it start perfactly
but when i tried to do same thing on virtual console it shows error
"RPC: failed to connect portmap (error -5)".
in my configuration step i did these steps
1- in /etc/exports
/var/ftp/pub 192.168.0.0/ 24(rw,sync)
after that i start the service
and did this exportfs -av
rpcinfo -p was also showing all ports where the daemons were running
------------ ----
one more thing is that
when i shut down my pc
it shows the same error
"RPC: failed to contact portmap (error -5)".

------------ -
what the problem may be
yes portmap and nfs services are running on both server and client
but when i start the nfs service on server the following output i get
________________________________________________________________
Stopping named [ok]
Starting named [ok]
Shutting down NFS daemon : nfsd last server has exited
nfsd:unexporting all filesystems
RPC: failed to contact portmap (errno -5)
Shutting down NFS quotas [ok]
Shutting down NFS services [ok]
Starting NFS services [ok]
starting NFS quotas [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]
__________________________________________________________________
when i tried to mount the exported share from the client side i got this answer
failed to connect : No route to host unable to retrive
 
Old 08-13-2008, 07:30 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Quote:
No route to host unable to retrive
Sounds like a firewall problem.
 
Old 08-14-2008, 01:41 PM   #5
yadava
Member
 
Registered: Apr 2008
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yadava View Post
yes portmap and nfs services are running on both server and client
but when i start the nfs service on server the following output i get
________________________________________________________________
Stopping named [ok]
Starting named [ok]
Shutting down NFS daemon : nfsd last server has exited
nfsd:unexporting all filesystems
RPC: failed to contact portmap (errno -5)
Shutting down NFS quotas [ok]
Shutting down NFS services [ok]
Starting NFS services [ok]
starting NFS quotas [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]
__________________________________________________________________
when i tried to mount the exported share from the client side i got this answer
failed to connect : No route to host unable to retrive
____________________________________________________________________
what does its mean that "RPC failed to contact portmap (errno -5)
and using /var/lib/nfs/v4recovery and 90 second grace period.
why these all error are looking on virtual consol why not graphical console
 
Old 08-14-2008, 03:05 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by yadava View Post
____________________________________________________________________
what does its mean that "RPC failed to contact portmap (errno -5)
and using /var/lib/nfs/v4recovery and 90 second grace period.
why these all error are looking on virtual consol why not graphical console
I'd agree with the other reply, sounds like a firewall issue blocking access.

What do you have when you do an iptables -L as root? Are these systems on the same network, switch, router, LAN?
 
  


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
NFS installation server problem windycity_linux Linux - General 2 05-24-2006 02:14 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
Problem with nfs server timing out DarkSun4241 Linux - Networking 1 08-10-2005 09:14 AM
nfs problem server: Permission denied anamika123 Linux - Networking 5 04-30-2004 01:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration