<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NFS localhost - OK :  NFS hostname - Fails in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230416#M82601</link>
    <description>Sometimes the problem is related to having the hostname added to localhost in the /etc/hosts file. Ensure that the /etc/hosts file has correct the entries.&lt;BR /&gt;&lt;BR /&gt;Wrong:&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 dhcp-64-102-35-224.xxxxx.com localhost.localdomain localhost&lt;BR /&gt;&lt;BR /&gt;Correct&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 localhost.localdomain localhost&lt;BR /&gt;x.x.x.x dhcp-64-102-35-224.xxxxx.com&lt;BR /&gt;&lt;BR /&gt;Also, check that "hostname" match the host name in /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;Â¿What is the SELinux status?</description>
    <pubDate>Tue, 16 Mar 2010 14:31:57 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2010-03-16T14:31:57Z</dc:date>
    <item>
      <title>NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230413#M82598</link>
      <description>What up?&lt;BR /&gt;&lt;BR /&gt;I'm playing around with red hat 5.3 and getting familiar with NFS.  I've successfully exported /home using localhost:&lt;BR /&gt;&lt;BR /&gt;# cat /etc/exports&lt;BR /&gt;/home           localhost(ro,sync)&lt;BR /&gt;&lt;BR /&gt;# cat /etc/fstab&lt;BR /&gt;localhost:/home        /mnt/home       nfs     defaults        0 0&lt;BR /&gt;&lt;BR /&gt;...But with hostname of PC, failure:&lt;BR /&gt;&lt;BR /&gt;# cat /etc/exports&lt;BR /&gt;/home           dhcp-64-102-35-224(ro,sync)&lt;BR /&gt;&lt;BR /&gt;# cat /etc/fstab&lt;BR /&gt;dhcp-64-102-35-224:/home        /mnt/home       nfs     defaults        0 0&lt;BR /&gt;&lt;BR /&gt;showmount -e&lt;BR /&gt;mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive&lt;BR /&gt;&lt;BR /&gt;exportfs -av&lt;BR /&gt;exporting dhcp-64-102-35-224.xxxxx.com:/home&lt;BR /&gt;&lt;BR /&gt;mount: mount to NFS server 'dhcp-64-102-35-224' failed: System Error: Connection refused.&lt;BR /&gt;&lt;BR /&gt;Procedure I've followed after changes include stopping iptables, and restarting first portmap and then nfs services.&lt;BR /&gt;&lt;BR /&gt;So I've seen this error on the internet but there is nothing definite except, it's a firewall issue.  Well, iptables is off and all the ports are up.&lt;BR /&gt;&lt;BR /&gt;[root@dhcp-64-102-35-224 log]# rpcinfo -p&lt;BR /&gt;   program vers proto   port&lt;BR /&gt;    100000    2   tcp    111  portmapper&lt;BR /&gt;    100000    2   udp    111  portmapper&lt;BR /&gt;    100024    1   udp    780  status&lt;BR /&gt;    100024    1   tcp    783  status&lt;BR /&gt;    100007    2   udp    669  ypbind&lt;BR /&gt;    100007    1   udp    669  ypbind&lt;BR /&gt;    100007    2   tcp    672  ypbind&lt;BR /&gt;    100007    1   tcp    672  ypbind&lt;BR /&gt;    100021    1   udp  65189  nlockmgr&lt;BR /&gt;    100021    3   udp  65189  nlockmgr&lt;BR /&gt;    100021    4   udp  65189  nlockmgr&lt;BR /&gt;    100021    1   tcp  19353  nlockmgr&lt;BR /&gt;    100021    3   tcp  19353  nlockmgr&lt;BR /&gt;    100021    4   tcp  19353  nlockmgr&lt;BR /&gt;    100011    1   udp    748  rquotad&lt;BR /&gt;    100011    2   udp    748  rquotad&lt;BR /&gt;    100011    1   tcp    763  rquotad&lt;BR /&gt;    100011    2   tcp    763  rquotad&lt;BR /&gt;    100003    2   udp   2049  nfs&lt;BR /&gt;    100003    3   udp   2049  nfs&lt;BR /&gt;    100003    4   udp   2049  nfs&lt;BR /&gt;    100003    2   tcp   2049  nfs&lt;BR /&gt;    100003    3   tcp   2049  nfs&lt;BR /&gt;    100003    4   tcp   2049  nfs&lt;BR /&gt;    100005    1   udp    759  mountd&lt;BR /&gt;    100005    1   tcp    771  mountd&lt;BR /&gt;    100005    2   udp    759  mountd&lt;BR /&gt;    100005    2   tcp    771  mountd&lt;BR /&gt;    100005    3   udp    759  mountd&lt;BR /&gt;    100005    3   tcp    771  mountd&lt;BR /&gt;&lt;BR /&gt;a) How to make hostname work when you are exporting and mounting from same box?  ( Works with localhost ).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230413#M82598</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-16T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230414#M82599</link>
      <description>&lt;!--!*#--&gt;And we _know_ that dhcp-64-102-35-224 is the&lt;BR /&gt;right name for this system?&lt;BR /&gt;&lt;BR /&gt;I've seen NFS implementations which required&lt;BR /&gt;a fully qualified name, but if that were the&lt;BR /&gt;problem here, then I'd expect different error&lt;BR /&gt;messages.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] Connection refused.&lt;BR /&gt;&lt;BR /&gt;Normally means that no one is listening at&lt;BR /&gt;the desired port.&lt;BR /&gt;&lt;BR /&gt;      netstat -an&lt;BR /&gt;&lt;BR /&gt;&amp;gt; showmount -e&lt;BR /&gt;&amp;gt; mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive&lt;BR /&gt;&lt;BR /&gt;Sure looks like a port mapper communication&lt;BR /&gt;problem.</description>
      <pubDate>Tue, 16 Mar 2010 14:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230414#M82599</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-03-16T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230415#M82600</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;So you've used your hostname to export and mount from the same box successfully?&lt;BR /&gt;&lt;BR /&gt;And I've seen the portmap solutions on the internet.  So far that's a dry well.</description>
      <pubDate>Tue, 16 Mar 2010 14:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230415#M82600</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-16T14:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230416#M82601</link>
      <description>Sometimes the problem is related to having the hostname added to localhost in the /etc/hosts file. Ensure that the /etc/hosts file has correct the entries.&lt;BR /&gt;&lt;BR /&gt;Wrong:&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 dhcp-64-102-35-224.xxxxx.com localhost.localdomain localhost&lt;BR /&gt;&lt;BR /&gt;Correct&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 localhost.localdomain localhost&lt;BR /&gt;x.x.x.x dhcp-64-102-35-224.xxxxx.com&lt;BR /&gt;&lt;BR /&gt;Also, check that "hostname" match the host name in /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;Â¿What is the SELinux status?</description>
      <pubDate>Tue, 16 Mar 2010 14:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230416#M82601</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-03-16T14:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230417#M82602</link>
      <description>disabled&lt;BR /&gt;&lt;BR /&gt;# getenforce&lt;BR /&gt;Disabled&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Mar 2010 15:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230417#M82602</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-16T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230418#M82603</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;A host implementation such as Ivan' recommends should work.&lt;BR /&gt;&lt;BR /&gt;You might also find setting the variable DHCP_HOSTNAME to the name set by the domain for this IP address resolves some of the issues.&lt;BR /&gt;&lt;BR /&gt;Is it possible to see /etc/hosts and run some tests with dig or nslookup to insure lookup is working as expected?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 16 Mar 2010 17:36:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230418#M82603</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-03-16T17:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230419#M82604</link>
      <description>&lt;!--!*#--&gt;&amp;gt; So you've used your hostname to export and&lt;BR /&gt;&amp;gt; mount from the same box successfully?&lt;BR /&gt;&lt;BR /&gt;No, never.  I use NFS to let two _different_&lt;BR /&gt;systems share files.  I've never felt the&lt;BR /&gt;need to configure NFS to give one system&lt;BR /&gt;access to files which it already had access&lt;BR /&gt;to directly.  Call me unimaginative.</description>
      <pubDate>Tue, 16 Mar 2010 20:41:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230419#M82604</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-03-16T20:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: NFS localhost - OK :  NFS hostname - Fails</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230420#M82605</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;This is a sand box environment only, something for me to do while my new environment is built.  &lt;BR /&gt;&lt;BR /&gt;The purpose of NFS's to myself was just to become more familiar / or refresh myself with the Red Hat environment.  &lt;BR /&gt;&lt;BR /&gt;The test being, if I can NFS to myself then I can NFS to another box.  In this case, I can NFS to localhost but not to myself and have to believe that its DHCP related.&lt;BR /&gt;&lt;BR /&gt;I play with it again someday and report anything interesting.&lt;BR /&gt;&lt;BR /&gt;Once again, thank you all for being there, in real time, when someone has a question.</description>
      <pubDate>Tue, 23 Mar 2010 12:09:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-localhost-ok-nfs-hostname-fails/m-p/5230420#M82605</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-03-23T12:09:24Z</dc:date>
    </item>
  </channel>
</rss>

