[comp.unix.wizards] detecting a file system mounted via NFS

suren@aeshq.UUCP (Surendren Namasivayam) (05/31/91)

If I have a file system mounted on my host from a remote host through NFS, is
there a way that that file system can be detected as being mounted on it?

I want to be able to do this in order to allow checking of these file systems
before shutting down so that they can be properly umounted from the remote
host rather than having to time out each time they are checked.

I guess a script which performs a 'df' on all systems would be possible, if
not extremely sluggish, and I didn't see anything from netstat.

Any suggestions?

Reply via E-mail or follow-up.

_______________________________________________________________________________
Surendran Namasivayam     suren@aeshq.uucp  or          |  
Environment Canada        uunet!mnetor!geac!aeshq!suren |   _   . . __  _  __  
Atmospheric Environment Services                        |  /_)_(_/_/ (_</_/ /_
_______________________________________________________________________________

lthompso@hpcc01.HP.COM (Larry L. Thompson) (06/06/91)

>
>If I have a file system mounted on my host from a remote host through NFS, is
>there a way that that file system can be detected as being mounted on it?
>
>I want to be able to do this in order to allow checking of these file systems
>before shutting down so that they can be properly umounted from the remote
>host rather than having to time out each time they are checked.
>
>I guess a script which performs a 'df' on all systems would be possible, if
>not extremely sluggish, and I didn't see anything from netstat.
>
>Any suggestions?

/usr/etc/shoumount will give you this information. Be very careful, if any
client shutdown ungracefully this file will not tell truth. Read the man page
very carefully.

Larry

------------------------------------------------------------------------------
Larry L. Thompson                       Hewlett-Packard Co.  
Unix:   lthompso@hpcmfs.corp.hp.com     3500 Deer Creek Rd 26U-13
HPDesk: larry_l_thompson@hp0000         Palo Alto, CA.  94304
Tel: (415) 857-4437