activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <>
Subject Re: ActiveMQ Master Slave setup with Veritas CFS
Date Wed, 07 Jul 2010 17:39:03 GMT

IMHO, things should remain as is. If the broker is not being granted access
to the lock, it will never be able to go to the next step of trying to
acquire the lock. 

ActiveMQ reference guide at

emilyj wrote:
> There is an issue with setting up ActiveMQ as master and slave with
> Veritas 5.0MP3.
> I have 2 instances of ActiveMq sharing one disk.  The master obtains a
> lock to the shared directory and the slave throws an exception because it
> cannot obtain a lock.  In Veritas 5.0MP1, this was not the case.
> As it turns out, Veritas has changed their code (from their engineering
> team):
> 5.0MP1 on the node that is trying to aquire a write lock on a file that is
> already held:
> 6583:   fcntl(3, F_SETLK64, 0xFFBFF838)                 Err#11 EAGAIN
> 6583:           typ=F_WRLCK  whence=SEEK_SET start=0     len=1024  sys=3 
> pid=-4196140
> And on 5.0MP3:
> 2272:   fcntl(3, F_SETLK64, 0x08047924)                 Err#13 EACCES
> 2272:           typ=F_WRLCK  whence=SEEK_SET start=4398046511104
> len=-75781618446368768 sys=4276761489 pid=41
> EAGAIN makes ActiveMQ retry the lock where as ECCES throws an exception:
> INFO  BrokerService                  - Using Persistence Adapter:
> AMQPersistenceAdapter(/TM/activemq-data)
> ERROR BrokerService                  - Failed to start ActiveMQ JMS
> Message Broker. Reason: Permission denied
> Permission denied
> 	at Method)
> 	at Source)
> 	at java.nio.channels.FileChannel.tryLock(Unknown Source)
> 	at
> 	at
> 	at
> 	at
> I have since downgraded back to 5.0MP1.  I was just putting this out there
> so others are aware and to see if the ActiveMQ team should consider
> handling both return codes EACCES and EAGAIN when trying to lock an
> object.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message