Problem:
When I was trying to mount a partition shared through NFS on a Linux machine, I was getting the below error:
[root@testserver ~]# mount 10.xx.x.xx:/xyz/abc /test mount: mount to NFS server '10.xx.x.xx' failed: timed out (retrying). mount: mount to NFS server '10.xx.x.xx' failed: timed out (retrying).
Reason:
I was getting this error because, for compatibility purposes, UDP is the default transport protocol for NFS under Red Hat Enterprise Linux and I only had TCP allowed by the firewall.
Solution:
Mounting with the “-o tcp” option solved my problem.
[root@testserver ~]# mount -o tcp 10.xx.x.xx:/xyz/abc /test [root@testserver ~]# df -h 10.xx.x.xx:/xyz/abc 29G 16G 12G 58% /test