fam
[Top] [All Lists]

Re: FAM not notifying of non-local changes on NFS files

To: fam@xxxxxxxxxxx
Subject: Re: FAM not notifying of non-local changes on NFS files
From: Michael Wardle <michael.wardle@xxxxxxxxxx>
Date: 15 Apr 2003 11:37:32 +1000
In-reply-to: <3E9B5CEB.2040202@xxxxxxxx>
Organization: Adacel Technologies
References: <3E96F39E.1090105@xxxxxxxx> <1050276396.2229.6.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <3E9B4EB8.1050107@xxxxxxxx> <1050366882.15710.8.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <3E9B5CEB.2040202@xxxxxxxx>
Sender: fam-bounce@xxxxxxxxxxx
On Tue, 2003-04-15 at 11:14, Ken Tanzer wrote:
> But additionally, I'm either missing something (probably obvious :)),
> or not conveying something clearly.  Per the FAM man page, 
> 
> "If asked to monitor files on an NFS mounted filesystem, fam tries to
> use fam on the NFS server to monitor  files.  If fam cannot contact a
> remote fam, it polls the files instead."
> 
> It seems like the polling is not working.  Given that I did have the
> bind=127.0.0.1 on the NFS server ("Machine B"), FAM on machine A
> definitely would have been unable to contact it, and therefore should
> have resorted to polling.  But it doesn't.

No, I just read your message too quickly to reflect on the NFS + Polling
+ DNotify thing.  In this case, however, it would surely still be better
to get the local famd talking to the remote famd, rather than using
polling over NFS if we can.

> > > I've been wondering if this is the same problem described in FAM bug 
> > > #166 ("Pollster broken by DNotify patch", 
> > > http://oss.sgi.com/bugzilla/show_bug.cgi?id=166).
> > >     
> > 
> > This should only apply if your kernel does not provide the DNotify API. 
> > Red Hat has only used the DNotify patch on versions of their
> > distributions using Linux kernel 2.4 and higher, so provided you are
> > also using a 2.4 or higher kernel, I'm not sure that this bug affects
> > you.
> >   
> RedHat 8.0 does have a 2.4 kernel.  It also comes with  fam 2.6.8, but
> it definitely seems to have the DNotify patch.

Yes, this is certainly the case.  I am fairly familiar with Red Hat's
setup.

> > Some other things I'd suggest trying are:
> > - running famd with the debug flag (-d) on the server and the client
> > - ensuring the sgi_fam service is registered on the server using portmap
> > - ensuring fam is not blocked by firewalling or tcp wrappers
> > - ensuring the contents of /etc/mtab and /etc/exports are sane
> > - monitoring network traffic using tcpdump
> > 
> > I haven't used the NFS functionality in FAM for a while now (partly
> > because all my Linux servers are running Red Hat which disables FAM
> > networking out of the box).  I'll have a look at it myself when time
> > permits, but this isn't likely to be soon.
> > 
> > Thanks and good luck
> >   
> Thanks for these suggestions.  I will try to go through them soon,
> probably tomorrow.  Do you think any of them would be relevant to
> getting polling working, or are they all network-focused?

Almost exclusively on getting the local famd talking to the remote famd,
rather than using polling.

-- 
Michael Wardle <michael.wardle@xxxxxxxxxx>
Adacel Technologies


<Prev in Thread] Current Thread [Next in Thread>