nfs mount error in client end

General support questions
Post Reply
knzzz
Posts: 120
Joined: 2017/02/25 12:41:42

nfs mount error in client end

Post by knzzz » 2018/06/19 02:11:35

Hi Team,

When i try to mount the nfs file in client end am getting the below error

Client end :

[root@iaf ~]# showmount -e SERVER IP
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
[root@iaf ~]# systemctl list-units | grep nfs
proc-fs-nfsd.mount loaded active mounted NFSD configuration filesystem
var-lib-nfs-rpc_pipefs.mount loaded active mounted RPC Pipe File System
nfs-idmapd.service loaded active running NFSv4 ID-name mapping service
nfs-mountd.service loaded active running NFS Mount Daemon
nfs-server.service loaded active exited NFS server and services
[root@iaf ~]# uname -r
3.10.0-862.3.2.el7.x86_64

---------------------------------------------

Server end
:

[root@ansi nfstesting]# exportfs
/root/Desktop/nfstesting
<world>
[root@ansi nfstesting]# systemctl list-units | grep nfs
proc-fs-nfsd.mount loaded active mounted NFSD configuration filesystem
var-lib-nfs-rpc_pipefs.mount loaded active mounted RPC Pipe File System
nfs-idmapd.service loaded active running NFSv4 ID-name mapping service
nfs-mountd.service loaded active running NFS Mount Daemon
nfs-server.service loaded active exited NFS server and services
nfs-client.target loaded active active NFS client services
[root@ansi nfstesting]# uname -r
3.10.0-862.3.2.el7.x86_64


how to fix the problem in the client end. even i have restarted the nfs services on both server and client end

User avatar
TrevorH
Forum Moderator
Posts: 23496
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: nfs mount error in client end

Post by TrevorH » 2018/06/19 06:18:27

Fix your iptables rules/firewall to allow the right ports?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

knzzz
Posts: 120
Joined: 2017/02/25 12:41:42

Re: nfs mount error in client end

Post by knzzz » 2018/06/20 00:25:30

now from client end i can see the file got mounted but still its not reflecting in the autofs

Client end config

[root@iaf ~]# showmount -e serverip
Export list for serverip:
/root/Desktop/nfstesting *


[root@iaf ~]# grep -v '#' /etc/auto.master
/misc /etc/auto.misc

/var /etc/test.share --timeout=120
/net -hosts
+dir:/etc/auto.master.d
+auto.master

[root@iaf ~]# grep -v '#' /etc/test.share

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

/auto -fstype=nfs serverip:/root/Desktop/nfstesting


[root@iaf ~]# cd /var/auto/
[root@iaf auto]# ls
[root@iaf auto]#

tunk
Posts: 381
Joined: 2017/02/22 15:08:17

Re: nfs mount error in client end

Post by tunk » 2018/06/20 11:59:16

Unless both are on a secure subnet, you may want to restrict the export to only the client.
I normally mount nfs shares with mount -t nfs or put a line in /etc/fstab.

Post Reply