Amos Shapira wrote: > On 25/06/07, *Nadav Har'El* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > On Sun, Jun 24, 2007, Maxim Veksler wrote about "Re: Transferring > named pipes data over exported NFS ?": > > You are right, this is a workaround for the real problem which > is : I > > can't find an option to get information about the connected > clients to > > my exported NFS path. I assume that this is because NFS does not > > maintain an active session table (It uses RPC calls, AFAIK). > > The "showmount" command can show you which remote hosts are currently > mounting, via NFS, which of your exported directories. > > I don't know, however, whether this qualifies as a "active" > session table. > It doesn't tell you how recently a file was fetched through each > connection, > and some of the connections might even be broken but the system > doesn't know > about that yet. > > > From rpc.mountd(8), it talks about /var/lib/nfs/rmtab which I suppose > has some relation to showmount, they put it nicely - "it's mostly > ornamental" since clients may crash without updating this output or > even keep using an open file handle after unmounting the filesystem, > that's why I didn't mention this option in my reply. > > (I love the word "ornamental", reminds me of what catholic priests and > Christmas trees have in common). > > --Amos > rpc.mountd update /var/lib/nfs/rmtab - he's the only one ( but showmounts) that uses this file. In 2.6 the whole structure is in the kernel. One option of checking if nfsd is really working is parsing nfssstat -s ( or the equivalent /proc entries) in order to see there is some activity over there.
Tomer ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]