Hi all,
    I am trying to use pingd. 
    I have the following in ha.cf
    respawn root /usr/lib/heartbeat/pingd -m 100 -d 5s 
 
    And I have attched my cib.xml. I am not sure where I am wrong as I
am new to xml. 
    I have this cib.xml in both the active & passive member of the
cluster.
  My only resource is IPaddr and when pingd is running and when the link
goes down on the active cluster member, it is not failing over to the
passive though the link down event is detected by pingd. 
    Plz anyone let me know what could be the issue.
Regds,
Kitty.
 



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Attachment: Ivy.gif
Description: Ivy.gif

<cib>
  <configuration>
<crm_config>
			<cluster_property_set id="cib-bootstrap-options">
				<attributes>
					<nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster" value="true"/>
					<nvpair id="cib-bootstrap-options-no_quorum-policy" name="no_quorum-policy" value="stop"/>
					<nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="0"/>
					<nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="0"/>
					<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
					<nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action" value="reboot"/>
					<nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources" value="true"/>
					<nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions" value="true"/>
					<nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop" value="false"/>
					<nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names" value="true"/>
					<nvpair id="cib-bootstrap-options-transition-idle-timeout" name="transition-idle-timeout" value="5min"/>
					<nvpair id="cib-bootstrap-options-default-action-timeout" name="default-action-timeout" value="5s"/>
					<nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default" value="true"/>
				</attributes>
			</cluster_property_set>
		</crm_config>

    <nodes/>
    <resources>
      <primitive id="IPaddr_192_168_31_109" class="ocf" type="IPaddr" provider="heartbeat">
        <instance_attributes id="IPaddr_192_168_31_109_inst_attr">
          <attributes>
            <nvpair id="IPaddr_192_168_31_109_attr_0" name="ip" value="192.168.31.109"/>
          </attributes>
        </instance_attributes>
      </primitive>
    </resources>
    <constraints>
	    <rsc_location id="rsc_location_IPaddr_192_168_31_109:connected" rsc="IPaddr_192_168_31_109">
		    <rule id="prefered_location_IPaddr_192_168_31_109:connected:rule" score_attribute="default_ping_set" boolean_op="and">
			    <expression attribute="default_ping_set" id="prefered_location_IPaddr_192_168_31_109_expr:connected:expr:defined" operation="defined"/>
			    <expression attribute="default_ping_set" id="prefered_location_IPaddr_192_168_31_109_expr:connected:expr:positive" operation="gt" value="100"/>
        </rule>
      </rsc_location>
	    <rsc_location id="rsc_location_IPaddr_192_168_31_109:preferred" rsc="IPaddr_192_168_31_109">
        <rule id="prefered_location_IPaddr_192_168_31_109:prefer:ipv6-devpt02" score="100">
		<expression attribute="#uname" id="prefered_location_IPaddr_192_168_31_109_expr:prefer:ipv6-devpt02:expr" operation="eq" value="ipv6-devpt02"/>
        </rule>
        <rule id="prefered_location_IPaddr_192_168_31_109:prefer:m4" score="200">
		<expression attribute="#uname" id="prefered_location_IPaddr_192_168_31_109_expr:prefer:m4" operation="eq" value="m4"/>
        </rule>
      </rsc_location>
    </constraints>
  </configuration>
  <status/>
</cib>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to