Operating System - HP-UX
1758277 Members
2353 Online
108868 Solutions
New Discussion юеВ

Re: How to show who has NFS mounted exported file systems

 
Jay Gaffney_4
Advisor

How to show who has NFS mounted exported file systems

showmount gives me a hostname that hasn't existed on my network in about 2 years.
Is there a better way to see who has mounted my exported file systems?
7 REPLIES 7
Massimo Bianchi
Honored Contributor

Re: How to show who has NFS mounted exported file systems

Hi,
may be that IP was re-used by another hosts, and no-one update the DNS or /etc/hosts...

Check also with exportfs to see to which hosts is exported.

Massimo

Pete Randall
Outstanding Contributor

Re: How to show who has NFS mounted exported file systems

Showmount is the only one I'm aware of. Like Massimo suggested, I'd review your DNS server and hosts files to see if you've got an old entry that needs updating.


Pete


Pete
S.K. Chan
Honored Contributor

Re: How to show who has NFS mounted exported file systems

See my reply here ..
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd5647bb04b5cd611abdb0090277a778c,00.html
.. about showmount and statmon. The lsof is the tool you need.
Hope this helps ..
D. Jackson_1
Honored Contributor

Re: How to show who has NFS mounted exported file systems

Does this help:

exportfs -v


Good Luck
Michael Kelly_5
Valued Contributor

Re: How to show who has NFS mounted exported file systems

Have a look in your /etc/rmtab file.
You might find your 'ancient' hostname in there.
If you do find it you can just delete it and showmount will not report it any more.

HTH,
Michael.
The nice thing about computers is that they do exactly what you tell them. The problem with computers is that they do EXACTLY what you tell them.
Brian Hackley
Honored Contributor

Re: How to show who has NFS mounted exported file systems

Hello,

The /etc/rmtab file is populated by the rpc.mountd when an NFS client sucessfully mounts the NFS Server. If the NFS client does a umount, then the /etc/rmtab entry is commented out.
If an NFS client crashes, reboots, or is removed from the network, the old stale /etc/rmtab entry will persist as it did in your case.
The /etc/rmtab file really does not serve much of a purpose other than for the showmount command. Some sysadmins trim the /etc/rmtab file if it gets unwieldy.
Reference:
O'Reilly "Managing NFS and NIS" 2nd Ed pp 336-339.
Hope that helps,

-> Brian Hackley
Ask me about telecommuting!
Karthik S S
Honored Contributor

Re: How to show who has NFS mounted exported file systems

Also have a look at /var/adm/syslog/syslog.log. I guess You need to enable NFS logging for this.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn