From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Monitor NFS activity

Monitor NFS activity - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Start my 1-month free trial

Monitor NFS activity

- [Instructor] Another useful tool is monitoring. Perhaps our export works, but not well. Monitoring in FS involves gathering and analyzing activity for NFS servers, clients and mounts. The first command we will look at is nfs stat. nfs stat provides NFS and RPC statistics, which can be ran on both, the client and the server. Make sure the export is mounted on 'rhhost2', also make sure you are logged into 'rhhost1' and have a terminal open. In the terminal type in 'nfsstat' and hit enter. If your export is not mounted on rhhost2, then there may not be any data here. You can also run this on rhhost2 for comparisson. For NFS version 3 exports, we may have to check RPC statistics. For that we have our PC info. Type in 'clear', and then type in 'rpcinfo'. RPC info is not needed for NFS 4, so we will not spend any more time with it. The next command is NFS IO stat. The NFS IO stat command, is a client side command that gets its information from '/proc/self/mountstats'. Switch over to your…

Contents