NFS mount远端export的目录时报错:
RPC: Port mapper failure - RPC: Unable to receive
仔细检查了一下远端服务,portmap和nfs都启动了,showmount –e 192.168.11.101也报同样的错,在服务器端使用rpcinfo检查:
rpcinfo –p 192.168.11.101 结果看似正常
程序 版本 协议 端口
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 876 status
100024 1 tcp 879 status
100011 1 udp 747 rquotad
100011 2 udp 747 rquotad
100011 1 tcp 750 rquotad
100011 2 tcp 750 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 60716 nlockmgr
100021 3 udp 60716 nlockmgr
100021 4 udp 60716 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 41781 nlockmgr
100021 3 tcp 41781 nlockmgr
100021 4 tcp 41781 nlockmgr
100005 1 udp 791 mountd
100005 1 tcp 794 mountd
100005 2 udp 791 mountd
100005 2 tcp 794 mountd
100005 3 udp 791 mountd
100005 3 tcp 794 mountd
想起是不是iptable没关,把portmap的端口给阻挡了,检查防火墙状态:
service iptables status
果然如此,立即禁用,service iptables stop,然后在mount,一切OK!