[TriLUG] NFS client connections and stats

Mike Viscount via TriLUG trilug at trilug.org
Wed Feb 28 16:35:17 EST 2018


Ahh ... nfswatch ... yes, used once in a past life ... thanks for posting
it ... need to add to the tickler file! :-)

On Wed, Feb 28, 2018 at 1:45 PM, Ron Kelley <rkelleyrtp at gmail.com> wrote:

> Thanks for the reply.  After more searching, I found a tool called
> "nfswatch" which does exactly what I need.  It provides a list of clients
> connected to an NFS server with the associated details per client.  The
> other tools listed below are meant to run on NFS clients (kinda odd since
> you really need this type of data on the server side).
>
> By default, nfswatch spits out a ton of garbage data which makes the
> terminal go crazy.  Per this url (https://wiki.fysik.dtu.dk/it/NFSwatch),
> the best way to run it is to redirect stdout to /dev/null.
>
> nfswatch -allif -clients -usage 2>/dev/null
>
>
> Hope this helps someone.
>
>
>
> -Ron
>
>
>
>
>
>
> On 02/28/2018 12:15 PM, Mike Viscount wrote:
>
>>
>> Without checking the google ... I believe that nfsiostat is a client side
>> tool and hence the message you're getting.
>>
>> Try iostat on the server ... may be an NFS option ... -n maybe ... man
>> iostat will tell you.
>>
>> To see who is mounting the filesystems (NFS clients) ... the showmount
>> command on the nfs server should give you that info.  Again, man is your
>> friend :-)
>>
>> Next likely question ... on the NFS server how can I monitor the load
>> being put on it by the nfs clients ... good question ... Dear Mr. Google,
>> How can I .... :-)
>>
>> nfsstat should tell you NFS server stats but not sure if that can be used
>> to give client request stats for load determination.
>>
>> Once you know the clients you can do some nfsiostat commands on those to
>> see who is pounding hardest, issue commands remotely via ssh, but ideally
>> checking the request load on the server would be better/best.
>>
>> To busy w/ work right now to dig in and don't know off the top of my head
>> but hope the above is helpful.
>>
>> Mike
>>
>>
>> On Wed, Feb 28, 2018 at 10:03 AM, Ron Kelley via TriLUG <
>> trilug at trilug.org <mailto:trilug at trilug.org>> wrote:
>>
>>     Greetings all,
>>
>>     I have a CentOS 6 server running NFSv3 with a number of exported
>> directories.  Recently, one of the NFS clients started hammering the
>> server, but I can't track down the client.  I have done a ton of googling,
>> and the best tools I can find are "nfsiostat" and "nfsstat".  The best tool
>> seems to be "nfsiostat", but I get the message "No NFS mount points were
>> found".  The other tool just spits out some stats but nothing that links a
>> client to an NFS mounted directory.
>>
>>     Hoping someone might have a solution to show which NFS client is
>> consuming I/O.
>>
>>     Thanks.
>>
>>     -Ron
>>     --     This message was sent to: MikeV <mviscount at gmail.com <mailto:
>> mviscount at gmail.com>>
>>     To unsubscribe, send a blank message to trilug-leave at trilug.org
>> <mailto:trilug-leave at trilug.org> from that address.
>>     TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
>> <https://www.trilug.org/mailman/listinfo/trilug>
>>     Unsubscribe or edit options on the web  :
>> https://www.trilug.org/mailman/options/trilug/mviscount%40gmail.com <
>> https://www.trilug.org/mailman/options/trilug/mviscount%40gmail.com>
>>     Welcome to TriLUG: http://trilug.org/welcome
>>
>>
>>


More information about the TriLUG mailing list