DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Mount to NFS server failed timed out (retrying)

April 11, 2017 DbAppWeb Admin

Problem:

When I was trying to mount a folder shared from NFS Server to the NFS Client machine then I was getting the below error:

[root@NFSClient /]# mount 10.20.2.22:/test /test
mount: mount to NFS server '10.20.2.22' failed: timed out (retrying).
mount: mount to NFS server '10.20.2.22' failed: timed out (retrying).

Configuration on NFS Server:

  • Folder /test exported on the client machine with appropriate options.
    [root@NFSServer ~]# vi /etc/exports
    
    /test	NFSClient(rw,sync,no_root_squash) 
    
  • showmount also shows that /test exported to the NFSClient but when I was trying to mount this was being failed with request time out error.
    [root@NFSServer ~]# exportfs -a
    
    [root@NFSServer ~]# showmount -e
    Export list for NFSServer:
    /test NFSClient

Reason:

I found that firewall (iptables) was enabled on the NFSServer machine and that was blocking the request so either turn off the firewall or allow the required ports for NFS to the firewall.

Solution:

  • Turn off the firewall/iptables or allow the required ports.
  • Allow the request for the NFS ports 2049 and 111. Make the entries in /etc/sysconfig/iptables and restart the iptables service.
    [root@TestServer ~]# vi /etc/sysconfig/iptables
    .
    .
    .
    -A INPUT -p udp -m state --state NEW -m udp --dport 2049 -j ACCEPT
    -A INPUT -p udp -m state --state NEW -m udp --dport 111 -j ACCEPT
    .
    .
    .
    

    After updating the /etc/sysconfig/iptables file restart the iptables service to enable the policies on the internal firewall.

    [root@TestServer ~]# service iptables restart
    iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
    iptables: Flushing firewall rules:                         [  OK  ]
    iptables: Unloading modules:                               [  OK  ]
    iptables: Applying firewall rules:                         [  OK  ]
  • Try to mount and you will be able to successfully mount.

Last Updated: August 18, 2020

Related Post

  • Umount NFS Volume showing Stale file handle error in RHEL Systems
  • Cannot mount NFS share in RHEL 7: wrong fs type, bad option, bad superblock
  • mount: mount to NFS server xx.x.xx failed: timed out (giving up)
  • NFS mount points unreachable and df hangs
  • mount: mount to NFS server xx.xx.x.xx failed: timed out (retrying)
  • mount: mount to NFS server xx.x.xx failed: timed out (retrying)
Prev Article
Next Article
Tags:Linux NFS Sys Admin

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com