On 2010-07-12 19:32, Matteo wrote: > 2010/7/12 Florian Haas <florian.h...@linbit.com > <mailto:florian.h...@linbit.com>> > > On 2010-07-12 17:17, Matteo wrote: > > Hi, I'm running a DRBD 2 node dual-primary cluster for some tests. > > Everything works fine, but my cluster doesn't do file locking. > > What evidence do you have that it doesn't? > > > If I open a file from server1, for example by "vi myfile.txt", and then, > from server2 I try to write on the same file, for example by "echo hi > > myfile.txt"...it let me do it, but it shouldn't, right?
Read up on file locking. locks.txt and mandatory-locking.txt in the Documentation/filesystems directory of any vanilla kernel tarball might be a good start. man 2 flock and man 2 fcntl might help too. Florian
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker