<div dir="ltr">Could you help me out in configuring stonith properly. I am new to pacemaker and I have been working for a few days. What all logs do you require?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 27, 2015 at 11:22 AM, Digimer <span dir="ltr">&lt;<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 27/07/15 01:35 AM, Vijay Partha wrote:<br>
&gt; HI .<br>
&gt;<br>
&gt; My configuration file looks like this:<br>
&gt;<br>
&gt; &lt;cib crm_feature_set=&quot;3.0.9&quot; validate-with=&quot;pacemaker-2.0&quot; epoch=&quot;38&quot;<br>
&gt; num_updates=&quot;0&quot; admin_epoch=&quot;0&quot; cib-last-written=&quot;Fri Jul 24 15:57:06<br>
&gt; 2015&quot; have-quorum=&quot;1&quot; dc-uuid=&quot;node2&quot;&gt;<br>
&gt;   &lt;configuration&gt;<br>
&gt;     &lt;crm_config&gt;<br>
&gt;       &lt;cluster_property_set id=&quot;cib-bootstrap-options&quot;&gt;<br>
&gt;         &lt;nvpair id=&quot;cib-bootstrap-options-dc-version&quot; name=&quot;dc-version&quot;<br>
&gt; value=&quot;1.1.11-97629de&quot;/&gt;<br>
&gt;         &lt;nvpair id=&quot;cib-bootstrap-options-cluster-infrastructure&quot;<br>
&gt; name=&quot;cluster-infrastructure&quot; value=&quot;cman&quot;/&gt;<br>
&gt;         &lt;nvpair id=&quot;cib-bootstrap-options-stonith-enabled&quot;<br>
&gt; name=&quot;stonith-enabled&quot; value=&quot;false&quot;/&gt;<br>
&gt;         &lt;nvpair id=&quot;cib-bootstrap-options-no-quorum-policy&quot;<br>
&gt; name=&quot;no-quorum-policy&quot; value=&quot;ignore&quot;/&gt;<br>
&gt;         &lt;nvpair id=&quot;cib-bootstrap-options-cluster-recheck-interval&quot;<br>
&gt; name=&quot;cluster-recheck-interval&quot; value=&quot;2s&quot;/&gt;<br>
&gt;       &lt;/cluster_property_set&gt;<br>
&gt;     &lt;/crm_config&gt;<br>
&gt;     &lt;nodes&gt;<br>
&gt;       &lt;node id=&quot;node1&quot; uname=&quot;node1&quot;/&gt;<br>
&gt;       &lt;node id=&quot;node2&quot; uname=&quot;node2&quot;/&gt;<br>
&gt;     &lt;/nodes&gt;<br>
&gt;     &lt;resources&gt;<br>
&gt;       &lt;primitive class=&quot;ocf&quot; id=&quot;my_first_svc&quot; provider=&quot;heartbeat&quot;<br>
&gt; type=&quot;Dummy&quot;&gt;<br>
&gt;         &lt;instance_attributes id=&quot;my_first_svc-instance_attributes&quot;/&gt;<br>
&gt;         &lt;operations&gt;<br>
&gt;           &lt;op id=&quot;my_first_svc-start-timeout-20&quot; interval=&quot;0s&quot;<br>
&gt; name=&quot;start&quot; timeout=&quot;20&quot;/&gt;<br>
&gt;           &lt;op id=&quot;my_first_svc-stop-timeout-20&quot; interval=&quot;0s&quot;<br>
&gt; name=&quot;stop&quot; timeout=&quot;20&quot;/&gt;<br>
&gt;           &lt;op id=&quot;my_first_svc-monitor-interval-120s&quot; interval=&quot;120s&quot;<br>
&gt; name=&quot;monitor&quot;/&gt;<br>
&gt;         &lt;/operations&gt;<br>
&gt;       &lt;/primitive&gt;<br>
&gt;       &lt;primitive class=&quot;ocf&quot; id=&quot;WebSite&quot; provider=&quot;heartbeat&quot;<br>
&gt; type=&quot;apache&quot;&gt;<br>
&gt;         &lt;instance_attributes id=&quot;WebSite-instance_attributes&quot;&gt;<br>
&gt;           &lt;nvpair id=&quot;WebSite-instance_attributes-configfile&quot;<br>
&gt; name=&quot;configfile&quot; value=&quot;/etc/httpd/conf/httpd.conf&quot;/&gt;<br>
&gt;           &lt;nvpair id=&quot;WebSite-instance_attributes-statusurl&quot;<br>
</div></div>&gt; name=&quot;statusurl&quot; value=&quot;<a href="http://localhost/server-status" rel="noreferrer" target="_blank">http://localhost/server-status</a>&quot;/&gt;<br>
<div><div class="h5">&gt;         &lt;/instance_attributes&gt;<br>
&gt;         &lt;operations&gt;<br>
&gt;           &lt;op id=&quot;WebSite-start-timeout-40s&quot; interval=&quot;0s&quot; name=&quot;start&quot;<br>
&gt; timeout=&quot;40s&quot; on-fail=&quot;restart&quot;/&gt;<br>
&gt;           &lt;op id=&quot;WebSite-stop-timeout-60s&quot; interval=&quot;0s&quot; name=&quot;stop&quot;<br>
&gt; timeout=&quot;60s&quot; on-fail=&quot;restart&quot;/&gt;<br>
&gt;           &lt;op id=&quot;WebSite-monitor-interval-1min&quot; interval=&quot;1min&quot;<br>
&gt; name=&quot;monitor&quot; on-fail=&quot;restart&quot;/&gt;<br>
&gt;         &lt;/operations&gt;<br>
&gt;         &lt;meta_attributes id=&quot;WebSite-meta_attributes&quot;/&gt;<br>
&gt;       &lt;/primitive&gt;<br>
&gt;     &lt;/resources&gt;<br>
&gt;     &lt;constraints&gt;<br>
&gt;       &lt;rsc_location id=&quot;location-WebSite-node2-50&quot; node=&quot;node2&quot;<br>
&gt; rsc=&quot;WebSite&quot; score=&quot;50&quot;/&gt;<br>
&gt;   &lt;/constraints&gt;<br>
&gt;     &lt;rsc_defaults&gt;<br>
&gt;       &lt;meta_attributes id=&quot;rsc_defaults-options&quot;&gt;<br>
&gt;         &lt;nvpair id=&quot;rsc_defaults-options-migration-threshold&quot;<br>
&gt; name=&quot;migration-threshold&quot; value=&quot;1&quot;/&gt;<br>
&gt;       &lt;/meta_attributes&gt;<br>
&gt;     &lt;/rsc_defaults&gt;<br>
&gt;     &lt;op_defaults&gt;<br>
&gt;       &lt;meta_attributes id=&quot;op_defaults-options&quot;&gt;<br>
&gt;         &lt;nvpair id=&quot;op_defaults-options-timeout&quot; name=&quot;timeout&quot;<br>
&gt; value=&quot;240s&quot;/&gt;<br>
&gt;       &lt;/meta_attributes&gt;<br>
&gt;     &lt;/op_defaults&gt;<br>
&gt;   &lt;/configuration&gt;<br>
&gt; &lt;/cib&gt;<br>
&gt;<br>
&gt; Once i stop the httpd service the pacemaker does not restarts it<br>
&gt; automatically.<br>
<br>
</div></div>As mentioned, logs help a lot. The logs from all nodes starting before<br>
you trigger the failure until after the logs stop printing please.<br>
<br>
Also, you must use stonith. Please configure and test it. Often problems<br>
go away when stonith is configured and working properly.<br>
<span class=""><br>
--<br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.ca/w/" rel="noreferrer" target="_blank">https://alteeve.ca/w/</a><br>
</span><span class="">What if the cure for cancer is trapped in the mind of a person without<br>
access to education?<br>
<br>
_______________________________________________<br>
</span>Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<span class=""><a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://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>
</span>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><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>With Regards<br></div>P.Vijay<br></div></div>
</div>