Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 11-24-2009, 11:26 AM   #1
Registered: Oct 2005
Posts: 116

Rep: Reputation: 15
Unable to establish NFS share No route to host


I tried and tried but i dont understand where is the problem

I have two systems masternode, node1 they are pinging each other without any problem.

#just for info ----even i installed pdsh

in the masternode i created

vi /etc/exports ---> contents

/cluster *(rw,no_root_squash,sync)

Then i restarted this nfs server by issuing

service nfs restart

Ok upto now this is ok

even iam able to create the same cluser here to here by issuign the following command

mount masternode:/cluster /test

and the output is

FS-Cache: Loaded

and iam seeing the same files which are there /cluster same /test

---------------upto now this is ok with the masternode-------
Now when i tried to run the same from the node1 system

mount masternode:/cluster /node1/test

the error iam getting is

mount: mount to NFS server 'masternode' failed: System Error: No route to host.

---- i issued the same command once again after i disalbed the firewall, selinux by issuing the following commands

service iptables save
service iptables stop

I also disabled the SELINUX=disabled in /etc/selinux/config

and restarted my system to take effect correctly

Now i stopped iptables and selinux

and i tried the same command but still same problem

mount: mount to NFS server 'masternode' failed: System Error: No route to host.

Anyone help what is the problem how can i able to solve this....the network between two is good because iam able to copy files and ping.

Last edited by teluguswan; 11-24-2009 at 11:29 AM. Reason: grammer mistakes
Old 11-24-2009, 11:33 AM   #2
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,823
Blog Entries: 1

Rep: Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218
What's the output of rpcinfo -p server_ip (issued from the client)? It'll give you the idea about the ports the server is using. Make sure that you are using the same ports for rpc services. What distro are you using?
Old 11-24-2009, 01:20 PM   #3
Registered: Mar 2009
Distribution: Ubuntu, CentOS 5.3
Posts: 75

Rep: Reputation: 18
What does 'exportfs' return? If it is blank you need to run 'exportfs -arv'
Old 11-24-2009, 07:39 PM   #4
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
I'm mostly a n00b, but I did some nfs stuff the other day and my nfs server start script was called nfs-kernel-server (and there was nfs-common). This probably won't help, but just make sure you did indeed restart the right thing.

The other thing, make sure your node can connect to the Internet and resolve domain names (you can just type "nslookup" at the command prompt and make sure it returns an answer).
Old 11-25-2009, 02:55 AM   #5
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
portmap and mountd both use TCP Wapppers. If you have a /etc/hosts.allow or /etc/hosts.deny, check the entries in both. If you have a firewall enabled, you need to add rules for portmap (111), 2049 and the various NFS services.
Old 11-28-2009, 10:22 PM   #6
Registered: Oct 2005
Posts: 116

Original Poster
Rep: Reputation: 15
I figure out the solution for this is strange.

Always iam trying at the node1 system.

what i figure out here is Iam not doing the same methods and analysis at masternode.

Because the firewall is at masternode this i came to know when i tried with another totally disabled system.

I configured nfs share on that system and accessed successfully from node1....

so i figured out the solution is the masternode is having firewall (I think this is the solution).

Thanks to all once again


cifs, host, nfs, route

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
Help: NFS error (No route to host) systemhackerz Linux - Networking 33 09-13-2012 12:54 PM
[SOLVED] Can't connect to windows share, mount error 113 = No route to host jmpetre Linux - Newbie 6 06-23-2009 05:43 PM
No Route To Host +NFS shawniecas Linux - Newbie 1 11-28-2007 09:31 AM
NFS: System Error: No route to host (retrying) lnthai2002 Linux - Networking 3 09-08-2006 11:45 AM
nfs setup on slack 9.1 - no route to host daceo Slackware 2 02-19-2004 05:04 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:46 AM.

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