1、可以列出本地locahost的挂载,但是无法列出本地网卡IP的挂载。
[root@TM-0119 init.d]# showmount -e localhost
Export list for localhost:
/opt/Resource 192.168.16.30,192.168.16.100
[root@TM-0120 opt]# showmount -e 192.168.16.30
mount clntudp_create: RPC: Program not registered
日志如下:
Dec 8 22:14:44 TM-0119 kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Dec 8 22:15:15 TM-0119 portmap[4121]: connect from 192.168.16.100 to getport(nfs): request from unauthorized host
Dec 8 22:15:15 TM-0119 portmap[4122]: connect from 192.168.16.100 to getport(nfs): request from unauthorized host
Dec 8 22:15:15 TM-0119 portmap[4123]: connect from 192.168.16.100 to getport(nfs): request from unauthorized host
Dec 8 22:15:15 TM-0119 portmap[4124]: connect from 192.168.16.100 to getport(nfs): request from unauthorized host
解决方法
Vi /etc/hosts.allow
加上192.168.16.
即可
2、客户端无法挂载nfs
日志:
Dec 8 23:30:18 TM-0142 kernel: portmap: server localhost not responding, timed out
Dec 8 23:30:18 TM-0142 kernel: RPC: failed to contact portmap (errno -5).
解决方法:
# chkconfig portmap on
# service portmap start