您的位置:首页 > 其它

nfs:server is not responding,still trying 原因与解决方案

2015-03-05 19:18 316 查看
今天在拷贝opencv库文件到开发板中时出现了nfs:server is not responding,still trying,开始还以为是nfs出现问题了,我重启开发板后,再mount一次,在将库文件拷贝出来时有出现这个问题,经过网上查资料后发现了解决方案。

在mini2440开发板上挂载主机上的nfs文件系统后传送较大文件时会出现下面的提示:

nfs:server is not responding, still trying

问题原因:

Mandag 27 november 2006 20:12 skrev Verner Kjrsgaard:

Mandag 27 november 2006 19:33 skrev John P. New:

Verner,

This is a problem with NFS and 2.6 kernels, fast server NICs and

comparatively slower client NICs. This will show up when the server has

a 1000Mb card and the client a 100Mb, or when the server has a 100Mb

card and the client a 10Mb.

Essentially, you have to pass some options to the kernel on terminal

boot, and this varies depending on whether you are using etherboot or

PXE.

See

http://wiki.ltsp.org/twiki/bin/v … rver_not_responding

for a deeper explanation of the problem and the cure.

大意是说具有较高的传送速率的NFS主机网卡和较低速率的目标机网卡之间不匹配,要解决此问题需要在挂载文件系统时添加额外的参数。

解决方法:

当目标机启动后已经进入linux系统的情况下,使用以下mount命令:

mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 10.21.11.12:/nfsroot/rootfs/ /mnt/share/

参数解释:

intr – 当服务器宕机或者无法到达时,允许中断NFS请求。 nolock–禁用文件锁。 rsize = 8192 和 wsize=8192 – 通过设定大的同时传输的数据块大小(bytes),以提高NFS读写的速度。改变这些值时要当心,一些旧的linux内核和网卡在大的块大小不能正常工作。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nfs