[Linux-HA] cib.xml for disable failback
Kenji HIROHAMA
kenji.hirohama at gmail.com
Wed Oct 3 23:12:11 MDT 2007
Yes,
That is what I looked for.
Thanks,
On 10/3/07, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> Hi,
>
> On Tue, Oct 02, 2007 at 04:13:05PM +0900, Kenji HIROHAMA wrote:
> > Sorry, I should have put the correct subject.
> >
> >
> > Hello,
> >
> > I'm configuring the cib.xml for heartbeat2/drbd/mysql.
> > With the following xml file, it wokrs.
> >
> > hostname: h1/h2
> >
> > However, automatic failback happens.
> >
> > I guess it is because of this part;
> > <rule id="prefered_location_group_1" score="100">
> > <expression attribute="#uname"
> > id="prefered_location_group_1_expr" operation="eq" value="h1"/>
> > </rule>
> >
> >
> > It is OK if two nodes are online, pick h1 for that resource.
> > However, I don't want to failback from h2 to h1, after repairing h1.
> >
> > Anyone suggeest which part I should change?
> >
> > -----
> > <cib admin_epoch="0" epoch="0" have_quorum="false" ignore_dtd="false"
> > num_peers="2" cib_feature_revision="1.3" generated="false"
> > num_updates="5" cib-last-written="Fri Sep 28 15:49:11 2007">
> > <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"/>
>
> Try to set this to INFINITY.
>
> Dejan
>
> > <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="15s"/>
> > <nvpair id="cib-bootstrap-options-is-managed-default"
> > name="is-managed-default" value="true"/>
> > </attributes>
> > </cluster_property_set>
> > </crm_config>
> > <nodes>
> > <node id="73553d5d-1a50-4f55-99de-8ba7aec48426" uname="h2"
> > type="normal"/>
> > <node id="ce2c28c3-585e-494b-baa8-d38b7e7ebd9e" uname="h1"
> > type="normal"/>
> > </nodes>
> > <resources>
> > <group id="group_1">
> > <primitive class="ocf" id="IPaddr_172_20_95_50"
> > provider="heartbeat" type="IPaddr">
> > <operations>
> > <op id="IPaddr_172_20_95_50_mon" interval="5s"
> > name="monitor" timeout="5s"/>
> > </operations>
> > <instance_attributes id="IPaddr_172_20_95_50_inst_attr">
> > <attributes>
> > <nvpair id="IPaddr_172_20_95_50_attr_0" name="ip"
> > value="172.20.95.50"/>
> > </attributes>
> > </instance_attributes>
> > </primitive>
> > <primitive class="heartbeat" id="drbddisk_2"
> > provider="heartbeat" type="drbddisk">
> > <operations>
> > <op id="drbddisk_2_mon" interval="120s" name="monitor"
> > timeout="60s"/>
> > </operations>
> > <instance_attributes
> > id="drbddisk_2_inst_attr">
> > <attributes>
> > <nvpair
> > id="drbddisk_2_attr_1" name="1" value="d0"/>
> > </attributes>
> > </instance_attributes>
> > </primitive>
> > <primitive class="ocf" id="Filesystem_3" provider="heartbeat"
> > type="Filesystem">
> > <operations>
> > <op id="Filesystem_3_mon" interval="120s" name="monitor"
> > timeout="60s"/>
> > </operations>
> > <instance_attributes id="Filesystem_3_inst_attr">
> > <attributes>
> > <nvpair id="Filesystem_3_attr_0" name="device"
> > value="/dev/drbd0"/>
> > <nvpair id="Filesystem_3_attr_1" name="directory"
> > value="/mnt/drbd"/>
> > <nvpair id="Filesystem_3_attr_2" name="fstype" value="ext3"/>
> > </attributes>
> > </instance_attributes>
> > </primitive>
> > <primitive class="lsb" id="mysql_4" provider="heartbeat" type="mysql">
> > <operations>
> > <op id="mysql_4_mon" interval="120s" name="monitor" timeout="60s"/>
> > </operations>
> > </primitive>
> > </group>
> > </resources>
> > <constraints>
> > <rsc_location id="rsc_location_group_1" rsc="group_1">
> > <rule id="prefered_location_group_1" score="100">
> > <expression attribute="#uname"
> > id="prefered_location_group_1_expr" operation="eq" value="h1"/>
> > </rule>
> > </rsc_location>
> > </constraints>
> > </configuration>
> > </cib>
> >
> >
> > --
> > kenji.hirohama at nospam.gmail.com
> > Kenji Hirohama
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA at lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
--
kenji.hirohama at nospam.gmail.com
Kenji Hirohama
More information about the Linux-HA
mailing list