开发板挂载nfs系统错误“rpcbind: server localhost not responding, timed out”

来源:互联网 发布:汽车cae软件 编辑:程序博客网 时间:2024/05/21 11:12

问题:
AT91SAM9261开发板挂载UBUNTU12.04主机上的nfs文件系统,提示:

# mount -t nfs 192.168.1.125:/home/myhost/nfs /mnt                                  rpcbind: server localhost not responding, timed out                             RPC: failed to contact local rpcbind server (errno 5).                          rpcbind: server localhost not responding, timed out                             RPC: failed to contact local rpcbind server (errno 5).                          lockd_up: makesock failed, error=-5                                             rpcbind: server localhost not responding, timed out                             RPC: failed to contact local rpcbind server (errno 5).                          mount: mounting 192.168.1.125:/home/myhost/nfs on /mnt failed: Input/output error  
  • 网络没问题,可以ping
  • 开发板和主机的nfs都已经打开
  • cat /proc/filesystems可以看到nfsd

一切都是那么的完美,意外就在不经意的拐角处。

参考David_xtd的专栏,解决方法挂载时增加-o nolock,即
mount -t nfs -o nolock myhost-ip:/to/nfs /mnt
原因不是很懂,先记下来,

nfs_mount默认选项包括文件锁,依赖于portmap提供的动态端口分配功能

完了

0 0
原创粉丝点击