[Pacemaker] configuring pingd and hbaping with CentOS 5's heartbeat rpms.
Dejan Muhamedagic
dejanmm at fastmail.fm
Thu Jun 18 09:54:29 UTC 2009
Hi,
On Thu, Jun 18, 2009 at 12:31:58AM -0600, Lundgren, Andrew wrote:
> 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"/>
Are you sure that the attribute is called "pingd"? You can check
in the CIB status section what is being set.
Thanks,
Dejan
> </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
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list