[olug] Getting list of servers that have mounted an NFS drive

Christopher Cashell topher-olug at zyp.org
Mon Jan 13 09:16:56 UTC 2014


On Jan 12, 2014 11:17 PM, "Dave Thacker" <dthacker <dthacker at bluestrain.net>
@ <dthacker at bluestrain.net>bluestrain.net <dthacker at bluestrain.net>> wrote:
> Let's say I have server "coffee" that is serving a local filesystem
> "/darkroast" to several other linux machines.  We've decided to migrate
> /darkroast from a local drive to an NFS share on a NetApp.  What command
can I
> run on "coffee" that will show me a list of other servers that have
mounted
> "/darkroast".  I need this list to make sure I won't get the dreaded
> "filesystem is busy" error when I unmount it and get ready to migrate the
data
> to the new storage on the NetApp.

Have you tried 'showmount'? That has generally always worked for me.

> What else can I tell you?
> -The NFS mounts are not set up as automount
> -I've tried this at least twice in a dev environment and never got a
complete
> list.

Personal opinion: use automount. It makes things a lot easier and cleaner.
Especially if you have an LDAP server, and store your automount maps there.
I find myself having a lot fewer NFS problems when I use automount.

> Dave Thacker

-- 
Christopher


More information about the OLUG mailing list