I have a bunch of processes that are periodically generating a text
file stored on and NFS File server (5 lines long). A different process
is running in an infinite loop to look for these files, open, read and
delete them afterward. That works nearly fine however sometimes one or
two of these files can't be read (fopen==null) even though the file
exists, the permissions are right and I can even open it with an
editor.
When I open it and save it (vi for example) the file suddenly becomes
accessible.
I've tried various things: Slowing down the infinite loop (tries to
access the file every 5 minutes)
"sync" command to update the filesystem
tried a different fileserver (also NFS)
I'm not the admin of the fileservers but our admin can't help me...so
I'm trying to find a solution myself:
All I know about them is they are running on Redhat 5
The fstab enty is:
IP:/program /program nfs defaults 0 0
Plz let me know what I can do or what additional information I need to
provide.