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
nfs mount error in client end
Re: nfs mount error in client end
Fix your iptables rules/firewall to allow the right ports?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: nfs mount error in client end
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]#
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]#
Re: nfs mount error in client end
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.
I normally mount nfs shares with mount -t nfs or put a line in /etc/fstab.