That&#39;s gotten me a little closer. I&#39;m a bit of a newb when it comes to Pacemaker, on that note, I put the first group of your post (and changed the options to match the network I&#39;m working on, I put this first configuration on the line with the existing group that I have setup.<div>
<br></div><div>That group has stuff like apache, smb, dhcp and some custom software that this existing group is managing. Should I create a new group? Or just keep it in the existing group?</div><div> </div><div>The second configuration entry for constraints is already populated with the contraints for the existing group. Should this configuration be pasted within the existing constraint (&lt;constraint&gt; &lt;/constraint&gt;)?</div>
<div><br></div><div>Also, if all my assumptions are correct, then I ran a verify test and got this output:</div><div><br></div><div><div>/tmp/saved-cib.xml:159: element clone: Relax-NG validity error : Element group has extra content: clone</div>
<div>/tmp/saved-cib.xml:41: element group: Relax-NG validity error : Element resources has extra content: group</div><div>/tmp/saved-cib.xml:2: element configuration: Relax-NG validity error : Invalid sequence in interleave</div>
<div>/tmp/saved-cib.xml:2: element configuration: Relax-NG validity error : Element configuration failed to validate content</div><div>/tmp/saved-cib.xml:1: element cib: Relax-NG validity error : Element cib failed to validate content</div>
<div>crm_verify[4016]: 2012/10/17_12:16:10 ERROR: main: CIB did not pass DTD/schema validation</div><div>Errors found during check: config not valid</div><div><br></div><div><br></div><div>Thank you for everything!</div><div>
<br></div><div>Alan</div><br><div class="gmail_quote">On Wed, Oct 17, 2012 at 8:36 AM, Jake Smith <span dir="ltr">&lt;<a href="mailto:jsmith@argotec.com" target="_blank">jsmith@argotec.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
----- Original Message -----<br>
<br>
&gt; From: &quot;Richard \&quot;Alan\&quot; McAlexander&quot; &lt;<a href="mailto:alanmac1982@gmail.com">alanmac1982@gmail.com</a>&gt;<br>
&gt; To: &quot;The Pacemaker cluster resource manager&quot;<br>
&gt; &lt;<a href="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</a>&gt;<br>
&gt; Sent: Tuesday, October 16, 2012 7:23:37 PM<br>
&gt; Subject: Re: [Pacemaker] Unable to add ping resource to pacemaker<br>
&gt; 1.0.12<br>
<div><div class="h5"><br>
&gt; Hi Jake,<br>
&gt; Below is my config. Thank you!<br>
<br>
&gt; &lt;meta_attributes id=&quot;group_its-meta_attributes&quot;/&gt;<br>
&gt; &lt;primitive id=&quot;res_ping_1&quot; class=&quot;ocf&quot; provider=&quot;pacemaker&quot;<br>
&gt; type=&quot;ping&quot;&gt;<br>
&gt; &lt;instance_attributes id=&quot;res_ping_1-instance_attributes&quot;&gt;<br>
&gt; &lt;nvpair id=&quot;nvpair-res_ping_1-multiplier&quot; name=&quot;multiplier&quot;<br>
&gt; value=&quot;1000&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;nvpair-res_ping_1-host_list&quot; name=&quot;host_list&quot;<br>
&gt; value=&quot;10.254.138.1&quot;/&gt;<br>
&gt; &lt;/instance_attributes&gt;<br>
&gt; &lt;operations id=&quot;res_ping_1-operations&quot;&gt;<br>
&gt; &lt;op interval=&quot;0&quot; id=&quot;op-res_ping_1-start&quot; name=&quot;start&quot; timeout=&quot;60&quot;/&gt;<br>
&gt; &lt;op interval=&quot;0&quot; id=&quot;op-res_ping_1-stop&quot; name=&quot;stop&quot; timeout=&quot;20&quot;/&gt;<br>
&gt; &lt;op id=&quot;op-res_ping_1-monitor&quot; name=&quot;monitor&quot; interval=&quot;10&quot;<br>
&gt; timeout=&quot;60&quot; start-delay=&quot;0&quot;/&gt;<br>
&gt; &lt;op interval=&quot;0&quot; id=&quot;op-res_ping_1-reload&quot; name=&quot;reload&quot;<br>
&gt; timeout=&quot;80&quot;/&gt;<br>
&gt; &lt;/operations&gt;<br>
&gt; &lt;meta_attributes id=&quot;res_ping_1-meta_attributes&quot;&gt;<br>
&gt; &lt;nvpair id=&quot;res_ping_1-meta_attributes-target-role&quot;<br>
&gt; name=&quot;target-role&quot; value=&quot;started&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;res_ping_1-meta_attributes-migration-threshold&quot;<br>
&gt; name=&quot;migration-threshold&quot; value=&quot;3&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;res_ping_1-meta_attributes-allow-migrate&quot;<br>
&gt; name=&quot;allow-migrate&quot; value=&quot;true&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;res_ping_1-meta_attributes-resource-stickiness&quot;<br>
&gt; name=&quot;resource-stickiness&quot; value=&quot;-INFINITY&quot;/&gt;<br>
&gt; &lt;/meta_attributes&gt;<br>
&gt; &lt;/primitive&gt;<br>
<br>
&gt; &lt;rsc_location id=&quot;loc_res_ping_1_seaaimsprd1&quot; rsc=&quot;res_ping_1&quot;<br>
&gt; node=&quot;seaaimsprd1&quot; score=&quot;500&quot;/&gt;<br>
&gt; &lt;rsc_location id=&quot;loc_res_ping_1_seaaimsprd2&quot; rsc=&quot;res_ping_1&quot;<br>
&gt; node=&quot;seaaimsprd2&quot; score=&quot;500&quot;/&gt;<br>
<br>
</div></div>So I have two things for you.<br>
<br>
You need to clone the ping resource so that it runs on all nodes.  You&#39;re location statements would just cancel each other out and the cluster would decide where to put the single res_ping_1 resource.<br>
For example I do this:<br>
<br>
    &lt;resources&gt;<br>
      &lt;clone id=&quot;cl_ping&quot;&gt;<br>
        &lt;meta_attributes id=&quot;cl_ping_gateways-meta_attributes&quot;&gt;<br>
          &lt;nvpair id=&quot;cl_ping_gateways-meta_attributes-clone-node-max&quot; name=&quot;clone-node-max&quot; value=&quot;1&quot;/&gt;<br>
          &lt;nvpair id=&quot;cl_ping_gateways-meta_attributes-interleave&quot; name=&quot;interleave&quot; value=&quot;true&quot;/&gt;<br>
          &lt;nvpair id=&quot;cl_ping_gateways-meta_attributes-target-role&quot; name=&quot;target-role&quot; value=&quot;Started&quot;/&gt;<br>
        &lt;/meta_attributes&gt;<br>
        &lt;primitive class=&quot;ocf&quot; id=&quot;p_ping_gateways&quot; provider=&quot;pacemaker&quot; type=&quot;ping&quot;&gt;<br>
          &lt;instance_attributes id=&quot;p_ping_gateways-instance_attributes&quot;&gt;<br>
            &lt;nvpair id=&quot;p_ping_gateways-instance_attributes-host_list&quot; name=&quot;host_list&quot; value=&quot;xxxxxxx&quot;/&gt;<br>
            &lt;nvpair id=&quot;p_ping_gateways-instance_attributes-multiplier&quot; name=&quot;multiplier&quot; value=&quot;100&quot;/&gt;<br>
            &lt;nvpair id=&quot;p_ping_gateways-instance_attributes-dampen&quot; name=&quot;dampen&quot; value=&quot;33s&quot;/&gt;<br>
          &lt;/instance_attributes&gt;<br>
          &lt;operations&gt;<br>
            &lt;op id=&quot;p_ping_gateways-start-0&quot; interval=&quot;0&quot; name=&quot;start&quot; timeout=&quot;60s&quot;/&gt;<br>
            &lt;op id=&quot;p_ping_gateways-stop-0&quot; interval=&quot;0&quot; name=&quot;stop&quot; timeout=&quot;20s&quot;/&gt;<br>
            &lt;op id=&quot;p_ping_gateways-monitor-10s&quot; interval=&quot;10s&quot; name=&quot;monitor&quot; timeout=&quot;60s&quot;/&gt;<br>
          &lt;/operations&gt;<br>
        &lt;/primitive&gt;<br>
      &lt;/clone&gt;<br>
    &lt;/resources&gt;<br>
<br>
Then you will have a clone instance of ping on each node.<br>
<br>
Then you need to create location constraints for other resources in relation to the pingd value.<br>
For example:<br>
<br>
    &lt;constraints&gt;<br>
      &lt;rsc_location id=&quot;l_ntp_ip_with_ping&quot; rsc=&quot;p_ip_ntp&quot;&gt;<br>
        &lt;rule boolean-op=&quot;or&quot; id=&quot;l_ntp_ip_with_ping-rule&quot; score=&quot;-INFINITY&quot;&gt;<br>
          &lt;expression attribute=&quot;pingd&quot; id=&quot;l_ntp_ip_with_ping-expression&quot; operation=&quot;not_defined&quot;/&gt;<br>
          &lt;expression attribute=&quot;pingd&quot; id=&quot;l_ntp_ip_with_ping-expression-0&quot; operation=&quot;lte&quot; value=&quot;0&quot;/&gt;<br>
        &lt;/rule&gt;<br>
      &lt;/rsc_location&gt;<br>
    &lt;/constraints&gt;<br>
<br>
This contraint requires that resource &quot;p_ip_ntp&quot; must never run on a node where the value of pingd is undefined or less than 0.<br>
<br>
Here&#39;s the crm code for the above:<br>
primitive p_ping_gateways ocf:pacemaker:ping \<br>
        params host_list=&quot;xxxxx&quot; multiplier=&quot;100&quot; dampen=&quot;33s&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;60s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;20s&quot; \<br>
        op monitor interval=&quot;10s&quot; timeout=&quot;60s&quot;<br>
<br>
clone cl_ping p_ping_gateways \<br>
        meta clone-node-max=&quot;1&quot; interleave=&quot;true&quot; target-role=&quot;Started&quot;<br>
<br>
location l_ntp_ip_with_ping p_ip_ntp \<br>
        rule $id=&quot;l_ntp_ip_with_ping-rule&quot; -inf: not_defined pingd or pingd lte 0<br>
<br>
<br>
HTH<br>
<span class="HOEnZb"><font color="#888888"><br>
Jake<br>
</font></span><div class="im HOEnZb"><br>
<br>
<br>
&gt; On Mon, Oct 15, 2012 at 9:46 PM, Jake Smith &lt; <a href="mailto:jsmith@argotec.com">jsmith@argotec.com</a> &gt;<br>
&gt; wrote:<br>
<br>
&gt; &gt; Sorry for the top post.<br>
&gt;<br>
<br>
&gt; &gt; Hard to say much without pacemaker config but did you configure<br>
&gt; &gt; location constraints for your resources based upon pingd value?<br>
&gt;<br>
<br>
&gt; &gt; Post your pacemaker config or pastebin link to it and we&#39;ll be able<br>
&gt; &gt; to help more.<br>
&gt;<br>
<br>
&gt; &gt; Hth<br>
&gt;<br>
<br>
&gt; &gt; Jake<br>
&gt;<br>
</div><div class="HOEnZb"><div class="h5">&gt; &gt; From: Richard Alan McAlexander<br>
&gt;<br>
&gt; &gt; Sent: Mon, 15/10/2012 06:39 PM<br>
&gt;<br>
&gt; &gt; To: <a href="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</a><br>
&gt;<br>
&gt; &gt; Subject: [Pacemaker] Unable to add ping resource to pacemaker<br>
&gt; &gt; 1.0.12<br>
&gt;<br>
<br>
&gt; &gt; _______________________________________________<br>
&gt;<br>
&gt; &gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;<br>
&gt; &gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
<br>
&gt; &gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;<br>
&gt; &gt; Getting started:<br>
&gt; &gt; <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;<br>
&gt; &gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started:<br>
&gt; <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>