挂载NFS错误排解

作者: lesca 分类: ARM,Tutorials,Ubuntu 发布时间: 2011-02-28 18:32

NFS错误排解:按步骤来!

  1. 启动 portmap 或者 rpcbind
  2. service rpcbind start (or service portmap start)
  3. 启动由客户端和服务器端共享的服务
  4. service nfs-common start
  5. 启动服务器端服务
  6. server nfs-server start


NFS错误排解:说说具体的!
错误类型1:

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 10.0.3.244:/long_nfs on /tmp/ failed: Input/output error

请加上挂载选项-o nolock

mount -o nolock -t nfs 10.42.43.1:/home/lesca/ARM/ /lesca/nfs

错误类型2:

cs89x0: Tx buffer not free!
NETDEV WATCHDOG: eth0: transmit timed out
eth0: transmit timed out, IRQ conflict ??
eth0: transmit underrun

这个问题是因为主机和目标板没有用网线连接

错误类型3:

nfs: server <server_name> not responding, still trying
nfs: server <server_name> not responding, still trying
nfs: server <server_name> not responding, still trying
nfs: server <server_name> not responding, still trying
nfs: server <server_name> not responding, still trying

这主要是由于服务器端繁忙、网络拥塞或者网卡丢包引起的。

References:
[1] Linux NFS faq – Linux NFS faq
[2] 浪人漂泊天涯 – NFS服务挂接根文件系统
[3] guillomovitch – What about doing things in order

版权声明

本文出自 Lesca 技术宅,转载时请注明出处及相应链接。

本文永久链接: https://www.lesca.cn/archives/nfs-mounting-troubleshot.html

如果觉得我的文章对您有用,请随意赞赏。您的支持将鼓励我继续创作!

1 Comment
  • twlkyao

    2012-03-20 at 20:23

    谢谢了,按照您的方法,正确地将宿主机的nfs目录挂载到了嵌入式开发板上