NFS导致的开机启动速度慢
2007-03-04 11:04
351 查看
发现有几台redhat机器启动的时候,在启动NFS的时候停留很长时间。 于是google一把,发现解决方法如下:
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.
-- Humboldt Solutions Ltd.
NFS启动慢的问题
用linux开发的朋友对这个问题一定很有体会,有时候开机时在start NFS这一步会停很长的时间,这个问题困扰了我很长的时间,今天终于忍不住上google搜索了一把,答案是因为每次客户端mount过NFS而又没有正常umount后,在/var/lib/nfs/rmtab里会留下记录,每次NFS启动的时候都会去check以前的IP,如果不通,要等到timeout才行。我cat rmtab看了一下,hoho,从上海,konka,TCL,Changhong用过的IP都在里面记着,难怪慢的象蜗牛一样!删了后试了一下,马上就起来了!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.
-- Humboldt Solutions Ltd.
相关文章推荐
- 因为smb和nfs挂掉导致客户端开机启动不了
- 解决 linux 由于修改 /etc/inittab 文件,导致 设置开机启动级别为 6 (重启)
- 浅谈Android开机启动速度优化(含应用程序启动速度优化)
- 浅谈Android开机启动速度优化(含应用程序启动速度优化)
- 浅谈Android开机启动速度优化(含应用程序启动速度优化)
- 浅谈Android开机启动速度优化
- linux 关闭开机启动服务 加快启动速度
- 提高开机启动速度 win7开机启动项优化设置技巧
- 启动VMWare Server的GUEST OS时,开机速度过快无法按F2进入BIOS的问题和解决
- npkcrypt 服务启动失败导致 Oracle11g TNSListener服务开机自动启动不了
- .NET Framework NGEN 导致开机网络连接启动变慢
- 提高开机速度,减少开机启动进程
- 开机速度快也是罪 Windows8新增启动选项菜单
- 关于烧写开机logo之后导致无法启动系统的问题
- Android4.0开机启动速度优化过程经验总结
- Android4.0开机启动速度优化过程经验总结
- windows系统启动缓慢怎么办?如何提升开机速度设置图解
- winform软件开机启动早于sqlserver服务,导致连接数据库失败
- Win8系统怎么快速开机启动加快系统的启动速度