1834882 Members
2136 Online
110071 Solutions
New Discussion

NFS

 
SOLVED
Go to solution
so_2
Regular Advisor

NFS

Hi how do i know that the exported to everyone file on my NFS server is mounted on any of the client?

I know showmount -e but it requires client hostname as an argument to check whether mounted on that server.

I have lot of servers in my network and dont even know their name.
Please help
Thanks in advance
S.O


5 REPLIES 5
Pupil_1
Trusted Contributor
Solution

Re: NFS

Look at the file /etc/rmtab !
man rmtab gives this ...
rmtab(4) rmtab(4)

NAME
rmtab - local file system mount statistics

DESCRIPTION
File /etc/rmtab contains a record of all clients that mounted remote
file systems from this machine.

Another interesting line from the man page ...
WARNINGS
Although the rmtab table is close to the truth, it is not always
totally accurate.
There is always something new to learn everyday !!
Steven E. Protter
Exalted Contributor

Re: NFS

Shalom,

What is mounted:

mount
# from the client

showmount -e localhost
#shows what is mounted on the server

showmount -e works by ip address, not just hostname.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
so_2
Regular Advisor

Re: NFS

Hi Steve,

I dont have ip address either. I dont know how many servers are there also.

Dhaneesh... I tried checking the file and is empty. Let me assume that no clients mounted from this server.

Thanks again and points are assigned.

s.o
Pupil_1
Trusted Contributor

Re: NFS

do an nfsstat -s and check if the server seems to serving a calls. If none, then you can be sure of it.
There is always something new to learn everyday !!
so_2
Regular Advisor

Re: NFS

closed