SUMMARY: file handles

From: Jeff Kennedy <jlkennedy_at_amcc.com>
Date: Thu Aug 22 2002 - 14:16:03 EDT
Very late summary but I was hoping to get a solution before I posted. 
No such luck.

I had several replies to this, all assuming I knew the filesystem in
question.  fuser was one suggestion as was lsof.  Neither of these will
do what I was looking for.  Just to clarify the situation:

In /var/adm/messages there is an entry with the file handle but no file
system.  The process that generated the file handle is long since gone,
but whatever filesystem this handle references is still holding the
mount.  Normally with fuser or lsof you give the filesystem in order to
determine what handles are holding the mount point.  I am going in the
opposite direction; I need to know the filesystem.  So 'fuser -cu
/<filesystem>' is not something I can manage.

In any case, 2 respondants sent a script called fhfind (search google). 
I think the concept is correct but it did not work for me because it
assumes the mount point is still in the mnttab, which I don't think mine
was, or the device id was incorrect.  So the mystery lives on.

Thanks to:

Mark Deiss		Cian O'Sullivan
Christopher Barnard	Thomas Wardman
Khoi Dinh

~JK

Jeff Kennedy wrote:
> 
> In SunOS there was a command called showfh (according to my NFS book)
> which would show you the filesystem a file handle was attempting to
> access.  Is there something like this in Solaris (7+)?
> 
> I ask because I have stale file handle entries in messages but no hint
> as to what's stale.  'df' worked fine, nothing odd about 'mount', and
> nothing I can find manually.

-- 
=====================
Jeff Kennedy
Unix Administrator
AMCC
jlkennedy@amcc.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Aug 22 14:19:56 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:52 EST