<div dir="ltr">Hi, <span style="color:rgb(33,33,33);font-family:&quot;Helvetica Neue&quot;,Helvetica,Arial,sans-serif;white-space:nowrap">Oyvind.<br><br>Thanks for that lead. I&#39;ll try it. <br><br>Kind regards,<br><br>Sean</span></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 5, 2017 at 6:08 PM Oyvind Albrigtsen &lt;<a href="mailto:oalbrigt@redhat.com">oalbrigt@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/12/17 16:29 +0000, Sean Beeson wrote:<br>
&gt;Thank you for the replay, Oyvind. I gave it plenty of time to start up.<br>
&gt;using  tomcat_name=&quot;tomcat&quot; it starts what I can only call a lifeless PID,<br>
&gt;but it never seems to actually start up. The catalina.out file is never<br>
&gt;touched, so it never has anything in it to indicate a problem. Pacemaker<br>
&gt;does seem to be managing it though because, although this PID shows, it<br>
&gt;will report it as not running and then move everything to the other node.<br>
&gt;It will do that a couple times, but that eventually stops as well.<br>
Try &quot;pcs resource disable &lt;resource&gt;&quot; and then &quot;pcs resource<br>
debug-start --full &lt;resource&gt;&quot;. The last command will start the<br>
resource and show you which commands are run, so you can troubleshoot<br>
why it&#39;s failing.<br>
&gt;<br>
&gt;Kind regards,<br>
&gt;<br>
&gt;Sean<br>
&gt;<br>
&gt;On Thu, Nov 30, 2017 at 10:40 PM Oyvind Albrigtsen &lt;<a href="mailto:oalbrigt@redhat.com" target="_blank">oalbrigt@redhat.com</a>&gt;<br>
&gt;wrote:<br>
&gt;<br>
&gt;&gt; Tomcat can be very slow at startup depending on the modules you use,<br>
&gt;&gt; so you can either disable modules you arent using to make it start<br>
&gt;&gt; faster or set a higher start timeout via &quot;pcs resource &lt;resource&gt; op<br>
&gt;&gt; start interval=&quot;.<br>
&gt;&gt;<br>
&gt;&gt; On 30/11/17 13:26 +0000, Sean Beeson wrote:<br>
&gt;&gt; &gt;Hi, list.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;This is a pretty basic question. I have gone through what I could find on<br>
&gt;&gt; &gt;setting up Tomcat service as a resource to a cluster, but did not find<br>
&gt;&gt; &gt;exactly the issue I am having. Sorry, if it has been covered before.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;I am attempting this on centos-release-7-4.1708.el7.centos.x86_64.<br>
&gt;&gt; &gt;The pcs I have installed is pcs-0.9.158-6.el7.centos.x86_64<br>
&gt;&gt; &gt;The resource-agents installed is resource-agents-3.9.5-105.el7_4.2.x86_64<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;I have DRBD, MySql, and a virtual IP running spectacularly well and they<br>
&gt;&gt; &gt;failover perfectly and do exactly what I want them. I can add Tomcat as a<br>
&gt;&gt; &gt;resource just fine, but it never starts and I can not fined anything in<br>
&gt;&gt; any<br>
&gt;&gt; &gt;log file that indicates why. Pcs does at some point know to check on it,<br>
&gt;&gt; &gt;but simply says Tomcat is not running. If I run everything manually on in<br>
&gt;&gt; a<br>
&gt;&gt; &gt;cluster I can manually get Tomcat to start with systemctl. Here is how I<br>
&gt;&gt; am<br>
&gt;&gt; &gt;try to configure it.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;[root@centos7-ha-lab-01 ~]# pcs status<br>
&gt;&gt; &gt;Cluster name: ha-cluster<br>
&gt;&gt; &gt;Stack: corosync<br>
&gt;&gt; &gt;Current DC: centos7-ha-lab-02-cr (version 1.1.16-12.el7_4.4-94ff4df) -<br>
&gt;&gt; &gt;partition with quorum<br>
&gt;&gt; &gt;Last updated: Thu Nov 30 21:03:36 2017<br>
&gt;&gt; &gt;Last change: Thu Nov 30 20:53:37 2017 by root via cibadmin on<br>
&gt;&gt; &gt;centos7-ha-lab-01-cr<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;2 nodes configured<br>
&gt;&gt; &gt;6 resources configured<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Online: [ centos7-ha-lab-01-cr centos7-ha-lab-02-cr ]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Full list of resources:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Master/Slave Set: DRBD_data_clone [DRBD_data]<br>
&gt;&gt; &gt;     Masters: [ centos7-ha-lab-01-cr ]<br>
&gt;&gt; &gt;     Slaves: [ centos7-ha-lab-02-cr ]<br>
&gt;&gt; &gt; fsDRBD_data    (ocf::heartbeat:Filesystem):    Started<br>
&gt;&gt; centos7-ha-lab-01-cr<br>
&gt;&gt; &gt; OuterDB_Service    (systemd:mysqld):    Started centos7-ha-lab-01-cr<br>
&gt;&gt; &gt; OuterDB_VIP    (ocf::heartbeat:IPaddr2):    Started centos7-ha-lab-01-cr<br>
&gt;&gt; &gt; tomcat_OuterWeb    (ocf::heartbeat:tomcat):    Stopped<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Failed Actions:<br>
&gt;&gt; &gt;* tomcat_OuterWeb_start_0 on centos7-ha-lab-01-cr &#39;unknown error&#39; (1):<br>
&gt;&gt; &gt;call=67, status=Timed Out, exitreason=&#39;none&#39;,<br>
&gt;&gt; &gt;    last-rc-change=&#39;Thu Nov 30 20:56:22 2017&#39;, queued=0ms, exec=180003ms<br>
&gt;&gt; &gt;* tomcat_OuterWeb_start_0 on centos7-ha-lab-02-cr &#39;unknown error&#39; (1):<br>
&gt;&gt; &gt;call=57, status=Timed Out, exitreason=&#39;none&#39;,<br>
&gt;&gt; &gt;    last-rc-change=&#39;Thu Nov 30 20:53:23 2017&#39;, queued=0ms, exec=180003ms<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Daemon Status:<br>
&gt;&gt; &gt;  corosync: active/enabled<br>
&gt;&gt; &gt;  pacemaker: active/enabled<br>
&gt;&gt; &gt;  pcsd: active/enabled<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;I have tried with and without tomcat_name=tomcat_OuterWeb and tomcat and<br>
&gt;&gt; &gt;root for tomcat_user=. Neither work.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Here is the command I am using to add it.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;pcs resource create tomcat_OuterWeb ocf:heartbeat:tomcat<br>
&gt;&gt; &gt;java_home=&quot;/opt/java/jre1.7.0_80&quot; catalina_home=&quot;/opt/tomcat7&quot;<br>
&gt;&gt; &gt;catalina_opts=&quot;-Dbuild.compiler.emacs=true -Dfile.encoding=UTF-8<br>
&gt;&gt; &gt;-Djava.util.logging.config.file=/opt/tomcat7/conf/log4j.properties<br>
&gt;&gt; &gt;-Dlog4j.configuration=file:/opt/tomcat7/conf/log4j.properties -Xms1024m<br>
&gt;&gt; &gt;-Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m&quot; tomcat_user=&quot;root&quot; op<br>
&gt;&gt; &gt;monitor interval=&quot;15s&quot; op start timeout=&quot;180s&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;I have tried also the most basic.<br>
&gt;&gt; &gt;pcs resource create tomcat_OuterWeb ocf:heartbeat:tomcat<br>
&gt;&gt; &gt;java_home=&quot;/opt/java/jre1.7.0_80&quot; catalina_home=&quot;/opt/tomcat7&quot;<br>
&gt;&gt; &gt;tomcat_name=&quot;tomcat_OuterWeb&quot; tomcat_user=&quot;root&quot; op monitor interval=&quot;15s&quot;<br>
&gt;&gt; &gt;op start timeout=&quot;180s&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;I other examples I have seen they usually use params then the options in<br>
&gt;&gt; &gt;these command to add Tomcat as a resource, but when  I use that it tells<br>
&gt;&gt; me<br>
&gt;&gt; &gt;that is an unrecognized option and it then accepts the options without it<br>
&gt;&gt; &gt;just fine. I was led to think this was a difference in version of the<br>
&gt;&gt; &gt;resource-agents perhaps.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Any idea why I can not get Tomcat to start or some lead to the logging I<br>
&gt;&gt; &gt;could look at to understand why it is failing would be great. Nothing<br>
&gt;&gt; shows<br>
&gt;&gt; &gt;in messages, catalina.out, pcsd.log, nor the resource<br>
&gt;&gt; &gt;log--tomcat_OuterWeb.log. However, it does make the resource log, but it<br>
&gt;&gt; &gt;only has this in it, which seems to be false:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;2017/11/30 20:50:22: start ===========================<br>
&gt;&gt; &gt;2017/11/30 20:53:22: stop  ###########################<br>
&gt;&gt; &gt;2017/11/30 20:56:22: start ===========================<br>
&gt;&gt; &gt;2017/11/30 20:59:22: stop  ###########################<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;The only other thing is: * tomcat_OuterWeb_start_0 on centos7-ha-lab-01-cr<br>
&gt;&gt; &gt;&#39;unknown error&#39; (1): call=67, status=Timed Out, exitreason=&#39;none&#39;,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Again, any ideas would be appreciated. Thank you.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Kind regards,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Sean<br>
&gt;&gt;<br>
&gt;&gt; &gt;_______________________________________________<br>
&gt;&gt; &gt;Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt;&gt; &gt;<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; &gt;Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; &gt;Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt;&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;<br>
<br>
&gt;_______________________________________________<br>
&gt;Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt;<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div>