How to check connected NFS clients to NFS server ?

https://access.redhat.com/solutions/661613

 

 SOLUTION 已验证 - 已更新 2014年三月12日17:03 - 

English 

环境

  • 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 connected client machines:

  • Run this on NFS Server:

Raw

# 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:

Raw

[root@vm254 ~]# cat /etc/exports 
/test   *(rw)

Mount share at client:

Raw

[savsingh@client ~]$ sudo mount vm254.redhat.com:/test  /mnt

Check connected clients at NFS server:

Raw

[root@vm254 ~]# netstat -an | grep 192.168.0.254:2049

tcp        0      0 192.168.0.254:2049          192.168.0.10:965           ESTABLISHED
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值