2 Answers
2

Don't forget that NFS is not a POSIX compliant filesystem. It is very close to POSIX compliance, which is what people usually trip up on. One of the areas which expose it's non conformance is around deleting and renaming files and especially directories.

My advice is to avoid, unless the application is specifically coded to work with NFS, having two remote processes access the same file on an NFS volume.

Why should a file get deleted on NFS. The log appenders simply rename the existing one and create new log file. I tried this manually. I started a program which was writing in a log file. I simply renamed the log file while the program was running. It did not crash, but continued to write in the renamed log file. My question is, why should the file get deleted if the Log appenders are not deleting the file.
–
NaynJan 25 '10 at 8:17

Are there any other programs which are rotating or changing the log files? Are there any applications running on the NFS server accessing the log files directly rather than over NFS? What type of NFS server are you using? I'm assuming the clients are Linux? I've found it really hard to replicate the stale NFS file handle problem in test conditions...
–
JamesJan 25 '10 at 9:23