Whit Blauvelt | 16 May 22:00 2012

incron with a shared NFS-mounted filesystem

Hi,

I see that incron works fine with an NFS-mounted file system when a file is
added or edited from the same host that incron is running on. But when the
file is added or edited to an NFS-mounted directory that incron is watching
from a different host also using the NFS mount, then incron doesn't pick it
up. (At least not right away. Not sure if it does or not after some delay.)

Is there a way to get this to work? It would be convenient when a file is
added or edited in a shared NFS space to have multiple hosts act on that
through incron, rather than have that restricted to just the host the file
action was performed through.

I suppose I could have a script on each host that, if triggered through
incron, sends a command through ssh to each of the other hosts and touches
the file from each - which should trigger the local incrons on those hosts
to act. Is there a simpler way?

Thanks,
Whit


Gmane