一、错误描述
在centos的linux客户端通过mount挂载nfs共享路径(详细配置教程参见其他文章页),报出"rpcinfo: can't contact portmapper: RPC: Remote system error - No route to host"、“clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)”、“mount.nfs: Connection timed out”、“mount.nfs: access denied by server while mounting”等异常错误,详情操作日志如下
[root@raid2t 202]# rpcinfo -p 192.168.1.202@b@rpcinfo: can't contact portmapper: RPC: Remote system error - No route to host@b@[root@raid2t 202]# showmount -e 192.168.1.202@b@clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)@b@[root@raid2t 202]# mount -t nfs 192.168.1.202:/home/share/ /home/202/@b@mount.nfs: Connection timed out@b@[root@raid2t 202]# mount 192.168.1.202:/home/share/ /home/202/@b@^[[A^[[Amount.nfs: access denied by server while mounting 192.168.1.202:/home/share/@b@[root@raid2t 202]# mount -t nfs 192.168.1.202:/home/share/ /home/202/^C@b@[root@raid2t 202]# mount 192.168.1.202:/home/share/ /home/202/@b@mount.nfs: access denied by server while mounting 192.168.1.202:/home/share/@b@[root@raid2t 202]# mount -t nfs 192.168.1.202:/home/share/ /home/202/@b@mount.nfs: access denied by server while mounting 192.168.1.202:/home/share/
二、解决方法
1. 问题分析 - 产生这个问题的配置原因主要来源:服务端防火墙、服务端共享路径权限设置、/etc/exports配置、mount指令
2. 参见其他文章正确的配置步骤可以规避上面1中所说的问题(后者参见解决Connection timed out超时问题文章页面)