[ale] What users are mounting a share?
Dow Hurst
dhurst at kennesaw.edu
Tue Oct 15 14:34:33 EDT 2002
If your hardmounted and you do the switchover quickly, your clients will
only hang for a very short time or not at all. Â You could go to the trouble
of sniffing UDP packets overnight to see who is actually using the exported
file systems. Â If you reboot your current server then the client list should
be rebuilt with only current connections assuming you could get rid of any
system file on your server that contains a list of clients similar to /etc/rmtab
under IRIX. Â I don't know much about the Linux NFS installation. Â I do know
that under IRIX, clients can handle a "sync;init 6" on the server with no
system problems, only possible local running job problems. Â I have never
rebooted a NFS server when a client was running a job that wrote to the server
via NFS. Â That would depend on the software running the job as to how long
an interruption you could get away with. Â Too bad this stuff isn't tested
and tried so you'd know beforehand. Â There is rarely time to test at that
level.
Dow
Robert L. Harris wrote:
Yeah, that's what I'm seeing and thought the problem was. I was hoping
there was a way to actually find out who currently has the shares
mounted though.
Thus spake Dow Hurst (dhurst at kennesaw.edu):
Date: Tue, 15 Oct 2002 14:09:43 -0400
From: Dow Hurst <dhurst at kennesaw.edu>
To: ale at ale.org
To: "Robert L. Harris" <Robert.L.Harris at rdlg.net>, ale at ale.org
Subject: Re: [ale] What users are mounting a share?
Robert,
Note the BUGS section from the IRIX man page of showmount. You might
not have had those machines that are dead properly umount. But, the
showmount does show you the "official" list of clients with current
mounts of your exported drives.
Dow
NAME
showmount - show all remote NFS mounts
SYNOPSIS
/etc/showmount [-a] [-d] [-e] [-x] [host]
DESCRIPTION
showmount lists all the clients that have remotely mounted a filesystem
from host (or the local host if host is not given). This
information is
maintained by the mountd(1M) server on host, and is saved across
crashes
in the file /etc/rmtab.
OPTIONS
-a Print all remote mounts in the format hostname:directory where
hostname is the name of the client, and directory is the root
of the
filesystem that has been mounted.
-d List directories that have been remotely mounted by clients.
-e Print the list of exported filesystems. For each filesystem, list
the clients given mount access.
-x Print the list of exported filesystems and all of their export
options, in the format described by exports(4). This option
overrides the -e option.
SEE ALSO
exportfs(1M), mountd(1M), exports(4).
BUGS
If a client crashes, its entry is not removed from /etc/rmtab until it
reboots and executes umount -a.
Robert L. Harris wrote:
I'm trying to find what users are mounting an nfs share. "showmount"
lists a history of everyone on the server who "has" mounted the share,
not who currently has it mounted. I'm sure this is the case because the
sucker is listing 5 machines that are in a pile on the floor next to me,
dead.
I seem to remember "nfsstat" or something similar showing the
functionality but nfsstat isn't giving a list of specific hosts. I need
to shut them down before a server change is made and would like it to be
"clean"...
Thoughts before I loose my mind?
:wq!
---------------------------------------------------------------------------
Robert L. Harris
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should
be sent to listmaster at ale dot org.
--
__________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd., Bldg. 12
Chemistry Department SC428 Email:dhurst at kennesaw.edu
Kennesaw State University Dow.Hurst at mindspring.com
Kennesaw, GA 30144
*********************************
*Computational Chemistry is fun!*
*********************************
:wq!
---------------------------------------------------------------------------
Robert L. Harris
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
--
__________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd., Bldg. 12
Chemistry Department SC428 Email:dhurst at kennesaw.edu
Kennesaw State University Dow.Hurst at mindspring.com
Kennesaw, GA 30144
*********************************
*Computational Chemistry is fun!*
*********************************
More information about the Ale
mailing list