[Pacemaker] Pacemaker and ocfs2 file locking

Florian Haas florian.haas at linbit.com
Tue Jul 13 03:27:35 EDT 2010

On 2010-07-12 19:32, Matteo wrote:
> 2010/7/12 Florian Haas <florian.haas at linbit.com
> <mailto:florian.haas at 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100713/3c2060d1/attachment-0003.sig>

More information about the Pacemaker mailing list