SLES 11 - ocfs2 - Locking does not appear to work
Posted
by Autobyte
on Server Fault
See other posts from Server Fault
or by Autobyte
Published on 2010-05-19T10:50:25Z
Indexed on
2010/05/19
11:01 UTC
Read the original article
Hit count: 548
Hi
I have two SLES 11 servers that are SAN attached to a Clarion CX-340. The SAN partition has been formatted with ocfs2 and I have both machines setup in a cluster and the cluster is running (all appears to be normal). I have a small java application as a locking test and when I run the application on both machines at the same time, I should get the lock on one server and the other should refuse the lock since the first already holds a lock on that file but in this case both servers get a lock on the same file.
Basically my cluster.conf looks like this:
node:
ip_port = 7777
ip_address = 192.168.10.121
number = 1
name = osrsles10node1
cluster = osrsles10
node:
ip_port = 7777
ip_address = 192.168.10.122
number = 2
name = osrsles10node2
cluster = osrsles10
cluster:
node_count = 2
name = osrsles10
Please ask for any other info - I really need these locks to be exclusive to each server.
Thanks.
© Server Fault or respective owner