Hi,
If you can look at the code see what they use for file locking
if they set a lock file, use flock or fnctl. I did a lot of
research on file locking about a year ago. I thought the manuel
pages mentioned that one does not work with NFS. Since I do not
use NFS I was not worried about it. You might try the C mailing
list they were very helpful when I was asking questions.
Linda Hanigan
On Tue, 6 Mar 2001, Ashley M. Kirchner wrote:
>
> I'm considering running a mailing list program over two (possibly
> more) servers by putting its databases on an NFS mounted directory and
> mounting it on the secondary (and n-th) servers. The reason for this is
> so that I don't have to have copies of the same DB's everywhere, just in
> one central location.
>
> However, I was warned that I may run into file locking problems and
> that the NFS implementation needed to be really good at locking between
> nodes.
>
> I know from experience that the program itself will create locks
> every time you tell it to do something, but those locks live for a short
> period of time (a few seconds at most, unless it hits an error, in which
> case the lock will live for whatever part of that hour before a crontask
> nukes it).
>
> Does anyone here have experience in setting programs up to run over
> NFS, specifically dealing with file locking?
>
> AMK4
>
> --
> W |
> | I haven't lost my mind; it's backed up on tape somewhere.
> |____________________________________________________________________
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
> SysAdmin / Websmith . 800.441.3873 x130
> Photo Craft Laboratories, Inc. . eFax 248.671.0909
> http://www.pcraft.com . 3550 Arapahoe Ave #6
> .................. . . . . Boulder, CO 80303, USA
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list