activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher G. Stach II" <>
Subject Re: Shared File System Master Slave with OCFS
Date Fri, 18 May 2007 15:51:39 GMT
James Strachan wrote:
> On 5/18/07, James Strachan <> wrote:
>> On 5/17/07, felipera <> wrote:
>> > Hi everyone,
>> >
>> > I am trying to setup two MQ Servers (4.1.1), sharing the same data
>> directory
>> > (I tried Derby and Kaha), on top of OCFS, but the locking doesn't
>> seem to be
>> > working. It works fine when both MQs are running on the same server
>> (still
>> > using OCFS). I see the second MQ waiting for the lock to be released
>> > ("Journal is locked... waiting 10 seconds for the journal to be
>> unlocked.").
>> > That's why I am not sure if it's a OCFS issue. But when I run each
>> MQ in
>> > separate boxes (still sharing the same data directory using OCFS) it
>> doesn't
>> > work, they both start successfully.
>> This is the OCFS you're talking about right?
> Actually OCFS2 seems more like a real distributed file system for
> general purpose use; the OCFS looks more specifically for using to
> host oracle data tables. Am wondering how good the file locking is on
> OCFS? Certainly its clear the mutex file locking from Java isn't
> supported on OCFS.

OCFS2 properly supports POSIX locking semantics with fcntl.  lockf and
flock aren't supported yet.  If that's what the JVM uses under the
covers, you're out of luck.  If this is about OCFS and not OCFS2, I'm
really sorry. :)

Christopher G. Stach II

View raw message