linux挂载nfs文件总是忙,Mini2440开发板在linux下挂载nfs后传送较大文件时无响应的解决...

Mini2440开发板在linux下挂载nfs后传送较大文件时无响应的解决

(2013-03-14 22:46:34)

标签:

it

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

nfs:server is not responding, still trying

问题原因:

Mandag 27 november 2006 20:12 skrev Verner Kjærsgaard:

> 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/view/Ltsp/NFS#NFS_Server_not_responding

> > for a deeper explanation of the problem and the

cure.

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

解决办法:

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

mount -t nfs -o intr,nolock,rsize=1024,wsize=1024

59.70.245.216:/home/lizhao/rootfs /mnt/nfs

(即添加了intr rsize=1024 wsize=1024 参数,参数的具体意义见下面注释)

2 当目标机处在引导阶段向内核传递命令行参数时,使用以下参数:

console=ttySAC0 root=/dev/nfs

nfsroot=59.70.245.216:/home/lizhao/rootfs,

flags=intr,rsize=1024,wsize=1024

ip=59.70.245.222:59.70.245.216:59.70.245.216:255.255.255.0:leao:eth0:off

参数解释:

intr -- 当服务器宕机或者无法到达时,允许中断NFS请求。 nolock--禁用文件锁。 rsize = 8192 和

wsize=8192 --

通过设定大的同时传输的数据块大小(bytes),以提高NFS读写的速度。改变这些值时要当心,一些旧的linux内核和网卡在大的块大小不能正常工作。

分享:

a4c26d1e5885305701be709a3d33442f.png喜欢

0

a4c26d1e5885305701be709a3d33442f.png赠金笔

加载中,请稍候......

评论加载中,请稍候...

发评论

登录名: 密码: 找回密码 注册记住登录状态

昵   称:

评论并转载此博文

a4c26d1e5885305701be709a3d33442f.png

发评论

以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值