谁动了我的NFS服务器?
如何查找有多少Client连到NFS服务器上?
登录到nfs服务器上, 执行下列命令
netstat -an | grep nfs_server_ip:port
例如, NFS服务器IP是192.168.1.200, 端口是2049
linuxgeek@host01:~# grep 2049 /etc/services nfs 2049/tcp # Network File System nfs 2049/udp # Network File System linuxgeek@host01:~# netstat -an | grep 192.168.1.200:2049 tcp 00192.168.1.200:2049192.168.1.201:757 ESTABLISHED tcp 00192.168.1.200:2049192.168.1.203:892 ESTABLISHED
或者使用showmount命令, showmount -e ip/hostname, 也可以使用showmount -a显示挂载情况.
更多命令参数man showmount
linuxgeek@host01:~# showmount -e 192.168.1.200Export list for192.168.1.200:/share1/video 192.168.1.0/24/share1/docs 192.168.1.0/24/share2/user_home 192.168.1.0/24 linuxgeek@host01:~# showmount -a 192.168.1.200All mount points on 192.168.1.200:192.168.1.201:/share1/video 192.168.1.201:/share1/docs 192.168.1.203:/share1/video