为什么我的ubuntu开机启动的时候,在启动nfs服务的时候速度很慢?

cx820402 2009-10-21 09:05:34
RT。
...全文
336 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
wzb56 2011-12-01
  • 打赏
  • 举报
回复

网络搜索到一个帖子,老外写的,照做,有效.
Slow Reboots of NFS Server
After several years of use, the server for my development machines developed a problem. If I rebooted the machine without an internet connection, it would pause for several minutes while starting the NFS service.
The Linux NFS server keeps track of status in
several files
. Whenever a client mounts a filesystem, the server records this in /var/lib/nfs/rmtab. If the server reboots, exportfs passes this list to the kernel to ensure that the reboot is invisible to the clients. So far, this is harmless.
If the server is used with clients that do not send clean unmount requests, such as diskless machines in a development lab, then rmtab fills up with entries for machines that aren’t around anymore. This is mostly harmless.
The final part of the problem is that on reboot exportfs performs a reverse DNS lookup for each entry in rmtab. If the DNS server is unavailable, the request waits for a timeout. This can take a very long time.
And the moral of the story? If NFS clients come and go on your network, check rmtab for clutter.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/4Array867/showart_45Array325.html
zhang_jinnan 2009-10-23
  • 打赏
  • 举报
回复
手动停止nfs服务,例如:sudo service nfs stop
chkconfig nfs off
dumeifang 2009-10-21
  • 打赏
  • 举报
回复
可能是那部分出现了什么错误
flinymengw4u 2009-10-21
  • 打赏
  • 举报
回复
如果嫌慢,可以把nfs服务停掉,需要的话,再手动开启
setup中能设置
atiansk2006 2009-10-21
  • 打赏
  • 举报
回复
something wrong?
cx820402 2009-10-21
  • 打赏
  • 举报
回复
我把NFS common卸载了,就可以了。
steptodream 2009-10-21
  • 打赏
  • 举报
回复
笼统的这么一说 怎么能知道啥问题哦

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧