[Pacemaker] configuring pingd and hbaping with CentOS 5's heartbeat rpms.

Lundgren, Andrew Andrew.Lundgren at Level3.com
Thu Jun 18 02:31:58 EDT 2009


Try
http://clusterlabs.org/wiki/Image:Configuration_Explained_1.0.pdf

I have read though the pingd section and came up with what I thought would work but I could use another set of eyes I think.

This is what I have come up with:

         <instance_attributes id=" Filesystem_mount _inst_attr">
           <attributes>
             <nvpair id=" Filesystem_mount _attr_0" name="device" value="/dev/ExHwRaid10VolGroup/mdt"/>
             <nvpair id=" Filesystem_mount _attr_1" name="directory" value="/mdt"/>
             <nvpair id=" Filesystem_mount _attr_2" name="fstype" value="ext3"/>
           </attributes>
         </instance_attributes>


       <clone id="pingd-clone">
          <primitive id="pingd" provider="heartbeat" class="ocf" type="pingd">
             <instance_attributes id="pingd-attrs">
                <attributes>
                   <nvpair id="pingd-name" name="name" value="pingd-gateway"/>
                   <nvpair id="pingd-dampen" name="dampen" value="5s"/>
                   <nvpair id="pingd-multiplier" name="multiplier" value="1000"/>
                   <nvpair id="pingd-hosts" name="host_list" value="192.168.1.1"/>
                </attributes>
             </instance_attributes>
          </primitive>
       </clone>

       <rsc_location id="Gateway-no-connectivity" rsc="Filesystem_mount">
          <rule id="pingd-exclude-rule" score="-INFINITY" >
             <expression id="pingd-exclude" attribute="pingd" operation="not_defined"/>
          </rule>
       </rsc_location>

I also have another location to set a default location.  Without the pingd directive, the preferred location works correctly.  When the pingd directive is present, it doesn’t seem to matter if the restriction is there not.

       <rsc_location id="rsc_location_ Filesystem_mount " rsc="Filesystem_mount">
         <rule id="prefered_location_Filesystem_mount" score="100">
           <expression attribute="#uname" id="prefered_location_ Filesystem_mount _expr" operation="eq" value="hostA"/>
         </rule>
       </rsc_location>

I am guessing
--
Andrew Lundgren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20090618/c05ab3d0/attachment-0001.html>


More information about the Pacemaker mailing list