https://access.redhat.com/solutions/661613
SOLUTION 已验证 - 已更新 2014年三月12日17:03 -
环境
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- NFS
问题
- How to safely stop NFS server ?
- How to check the clients connected before stoping NFS server ?
决议
-
To check the
connectedclient machines: -
Run this on
NFS Server:
# netstat -an | grep 192.168.0.254:2049
Above command will show you the active connected hosts clients with NFS Server and will not show the clients who are idle.
NOTE: 192.168.0.254 is NFS Server and 2049 is NFS Server port no.
- This will help to check the connected clients (I/O) and umount them to safely stop the NFS server service.
诊断步骤
On NFS Server:
Check the share:
[root@vm254 ~]# cat /etc/exports
/test *(rw)
Mount share at client:
[savsingh@client ~]$ sudo mount vm254.redhat.com:/test /mnt
Check connected clients at NFS server:
[root@vm254 ~]# netstat -an | grep 192.168.0.254:2049
tcp 0 0 192.168.0.254:2049 192.168.0.10:965 ESTABLISHED

57

被折叠的 条评论
为什么被折叠?



