[ClusterLabs] Antw: Re: Antw: Tomcat resource restart

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Thu Mar 26 06:52:59 UTC 2015


Hi!

To me it seems your master/slave resource tries to change roles when setting
node1 online:
Mar 25 15:34:12 lif1 pengine[1366]: notice: LogActions: Restart liferay:0  
(Started lif2)
Mar 25 15:34:12 lif1 pengine[1366]: notice: LogActions: Start   liferay:1  
(lif1)

Therefore:
Mar 25 15:34:12 lif1 crmd[1367]: notice: te_rsc_command: Initiating action 14:
start dlm_start_0 on lif1 (local)
Mar 25 15:34:12 lif1 crmd[1367]: notice: te_rsc_command: Initiating action 36:
stop liferay_stop_0 on lif2


>>> Daniel Rodriguez Escobar <danielr.escobar at ayesa.com> schrieb am 25.03.2015
um
16:04 in Nachricht
<AMSPR03MB42291223AB4C3DF9AE8AB4BE60B0 at AMSPR03MB422.eurprd03.prod.outlook.com>:
> Hi,
> 
> thanks Ulrich for your advise, I haved attached two files with the output of

> both /var/log/messages. 
> 
> Regards,
> 
> -----Mensaje original-----
> De: Ulrich Windl [mailto:Ulrich.Windl at rz.uni-regensburg.de] 
> Enviado el: miércoles, 25 de marzo de 2015 15:30
> Para: users at clusterlabs.org 
> Asunto: [ClusterLabs] Antw: Tomcat resource restart
> 
>>>> Daniel Rodriguez Escobar <danielr.escobar at ayesa.com> schrieb am 
>>>> 25.03.2015 um
> 15:19 in Nachricht
>
<AMSPR03MB422B40BC3FE1EE35FDEDAA3E60B0 at AMSPR03MB422.eurprd03.prod.outlook.com>
> :
>> Hi,
>> 
>> I have made a cluster with gfs2 and Tomcat. All seems to work fine 
>> except when I run "standby" to activate a node that was previously 
>> disabled,  the Tomcat service in the other node restarts instead of 
>> continue running. I have the two nodes as Active/Active, so the 
>> resource has been created as clone ("pcs config" output):
> 
> I guess having the relevant syslogs (cluster logs) of both nodes would help

> the experts quite a lot ;-)
> 
>> 
>> Clone: liferay-clone
>>   Resource: liferay (class=ocf provider=heartbeat type=tomcat)
>>    Attributes: java_home=/opt/java17/ 
>> catalina_home=/opt/liferay62/tomcat
>> catalina_base=/opt/liferay62/tomcat
>>    Meta Attrs: master-max=2 tomcat_user=liferay
>>    Operations: monitor interval=60s (liferay-monitor-interval-60s)
>>                start interval=0s timeout=160s (liferay-start-timeout-160s)
>>                stop interval=0s timeout=30s (liferay-stop-timeout-30s)
>> 
>> Do I need to configure another options in that resource in order to 
>> avoid the Tomcat of the other node restarts when the node disabled is 
>> activated again?
>> 
>> Thank you in advance and regards,
>> 
>> Dani Rodriguez.
> 
> 
> 
> 
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org 
> http://clusterlabs.org/mailman/listinfo/users 
> 
> Project Home: http://www.clusterlabs.org Getting started: 
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 







More information about the Users mailing list