blu.org  wiki

nfs fun

View: New views
3 Messages — Rating Filter:   Alert me  

nfs fun

by Matthew Gillen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does anyone know how to map an NFS file-handle to a filename on the NFS server?

I've got a rogue process that is trying to lock a file, getting denied by the
server, and then trying again in a very tight loop, leading to a high volume
of useless NFS traffic.  I'm trying to figure out what file it is, so that I
might figure out which application is doing it (so that I can murder it).

Wireshark tells me what's in the NFS packets, which contain the file handle in
question.  But I don't know how to map that to a file...

Server: CentOS 5.2
Client: Fedora 11

Tnanks,
Matt
_______________________________________________
Discuss mailing list
Discuss@...
http://lists.blu.org/mailman/listinfo/discuss

Re: nfs fun

by Tom Metro-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matthew Gillen wrote:
> Does anyone know how to map an NFS file-handle to a filename on the NFS server?

This was discussed on the BBLISA list back in May. See:

http://www.bblisa.org/pipermail/bblisa/2009-May/002209.html
   The summary of responses was, in effect:  there is no way to do it on
   a general Linux system.

   Several people pointed out places where documentation (e.g. lsof)
   implies this should be doable, but experimentally it works for NFS
   clients but not servers.

See other messages in the thread, such as:
http://www.bblisa.org/pipermail/bblisa/2009-May/002200.html

in case you have better luck with the suggested solutions than the OP had.

  -Tom

--
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
_______________________________________________
Discuss mailing list
Discuss@...
http://lists.blu.org/mailman/listinfo/discuss

Re: nfs fun

by Matthew Gillen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/30/2009 06:57 PM, Tom Metro wrote:

> Matthew Gillen wrote:
>> Does anyone know how to map an NFS file-handle to a filename on the
>> NFS server?
>
> This was discussed on the BBLISA list back in May. See:
>
> http://www.bblisa.org/pipermail/bblisa/2009-May/002209.html
>   The summary of responses was, in effect:  there is no way to do it on
>   a general Linux system.
>
>   Several people pointed out places where documentation (e.g. lsof)
>   implies this should be doable, but experimentally it works for NFS
>   clients but not servers.
>
> See other messages in the thread, such as:
> http://www.bblisa.org/pipermail/bblisa/2009-May/002200.html
>
> in case you have better luck with the suggested solutions than the OP had.

Yikes!  That sounds like more than I have a time-budget to look into.
My original problem was solved for the time being by bouncing the lockd on
the server.  That makes me think it might be more of a server-side problem...

Thanks,
Matt
_______________________________________________
Discuss mailing list
Discuss@...
http://lists.blu.org/mailman/listinfo/discuss