症状:

当NFS SERVER服务停止或者是NFS SERVER宕机,NFS Client 中一些涉及到挂载目录的命令可能会被挂起,如df、ls等。

解决办法:

可以使用mount -l列出挂载的目录,卸载掉已经停止NFS服务的目录

[root@test01 ~]# mount -l
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw) [/boot]
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.146.250:/home/share on /mnt type nfs (rw,addr=192.168.146.250)

[root@test01 ~]# umount -l /mnt/ #卸载
[root@test01 ~]# mount -l      
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw) [/boot]
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

本日志由 flyinweb 于 2011-12-08 10:00:55 发表到 Linux 中,目前已经被浏览 338 次,评论 0 次;

作者添加了以下标签: NFSNFS Client hangs

NFS依赖portmap分配它监听的端口。这些端口是动态分配的,所以每次NFS重启后,端口都会改变。这使得在只允许访问系统指定端口的防火墙后运行一个NFS服务器变得困难。

本日志由 flyinweb 于 2010-09-07 15:16:47 发表到 Linux 中,目前已经被浏览 4898 次,评论 0 次;

作者添加了以下标签: NFS

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

卸载nfs文件系统

本日志由 flyinweb 于 2010-04-21 16:38:31 发表到 Linux 中,目前已经被浏览 4438 次,评论 0 次;

作者添加了以下标签: NFSumount

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

来源:http://nfs.sourceforge.net/nfs-howto/ar01s05.html

1. Optimizing NFS Performance

Careful analysis of your environment, both from the client and from the server point of view, is the first step necessary for optimal NFS performance. The first sections will address issues that are generally important to the client. Later (Section 5.3 and beyond), server side issues will be discussed. In both cases, these issues will not be limited exclusively to one side or the other, but it is useful to separate the two in order to get a clearer picture of cause and effect.

Aside from the general network configuration - appropriate network capacity, faster NICs, full duplex settings in order to reduce collisions, agreement in network speed among the switches and hubs, etc. - one of the most important client optimization settings are the NFS data transfer buffer sizes, specified by the mount command options rsize and wsize.

本日志由 flyinweb 于 2010-03-26 11:09:58 发表到 技术文摘 中,目前已经被浏览 3897 次,评论 0 次;

作者添加了以下标签: NFS

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

NFS 收集各类 NFS 操作执行情况的统计信息,会同出错信息和性能指标。您可以使用以下命令来识别网络问题和观察在您的系统上进行的各类 NFS 操作。

本日志由 flyinweb 于 2010-03-26 11:02:13 发表到 技术文摘 中,目前已经被浏览 4009 次,评论 0 次;

作者添加了以下标签: NFS

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

在 NFS 网络中,服务器是调优的主要目标,当然也有一些是可以在客户机上调优的。

本日志由 flyinweb 于 2010-03-26 10:59:00 发表到 技术文摘 中,目前已经被浏览 4251 次,评论 0 次;

作者添加了以下标签: NFS

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

1. NFS概述
 NFS即网络文件系统,是主机间通过网络进行文件共享的网络协议,最早由Sun公司提出的,多用于Unix操作系统(Windows中也有相应版本的实现) 。
 NFS通常情况下在局域网中使用,用于多台主机共享同一主机上的文件将源。由于NFS具有共享文件访问快、稳定性高等优越性能,在工程系统中得到了广泛应用。

本日志由 flyinweb 于 2009-07-31 11:05:52 发表到 Linux 中,目前已经被浏览 4538 次,评论 0 次;

作者添加了以下标签: NFSNetwork File System网络文件系统

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文