LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   is there a way to monitor NFS mounts? (https://www.linuxquestions.org/questions/linux-server-73/is-there-a-way-to-monitor-nfs-mounts-823052/)

recomboDNA 07-30-2010 10:17 AM

is there a way to monitor NFS mounts?
 
Let's say I have a machine exporting 3 paths via NFS.

Code:

/exports/foo
/exports/bar
/exports/bla

I would like to know if there is a way to determine how many clients have each export mounted at any given time. I don't necessarily need to identify which client has mounted what, just the number.

Code:

/exports/foo is mounted by 3 clients
/exports/bar is mounted by 1 client
/exports/bla is mounted by 0 clients

Is this even possible?

sem007 07-30-2010 10:51 AM

Code:

/var/lib/nfs/rmtab
This file contains a list of file systems actually mounted by clients at the moment.

HTH

recomboDNA 07-30-2010 10:55 AM

Also found that

Code:

# showmount -a
does the same thing.


All times are GMT -5. The time now is 06:47 PM.