Subject: | fails to write completely if target file on NFS drive, due to locking mechanism |
(I'm reporting something that I noticed and looked into several months
ago, but didn't have time then to report. As such, I now don't have
fresh memory nor exhaustive description, for which I apologize.)
In my experience, FileRotate does not allow to write a log file over an
NFS mount. The reason is that the lock mechanism used by FileRotate,
fails over NFS.
If I remember well, the file is created, but remains empty (size 0)
I was using FileRotate v1.13 at the time, on a Sun Solaris 9 system, and
Perl 5.8.2. I haven't seen any mention in the changelog, so I suppose
it's still the same in the current v1.19.
When I read up on this issue several months back, I came to understand
that file locking over NFS is a very difficult issue, so this may not be
(easily) solvable. But documenting it may help other users.