[Linux-HA] Auto Failback problem

Adrian Chapela achapela.rexistros at gmail.com
Fri Nov 23 04:38:50 MST 2007


Szasz Tamas escribió:
> Hi list,
>
> I updated the drbd to the new version(8.0.7), and I want to disable 
> the auto failback option, because, when the primary machine halt, then 
> start, the drbd cannot be started, because the data on the old-primary 
> node is not up to date. The problem is, that I disabled the auto 
> failback in ha.cf file, but nothing happen.
> 1.I must disable this option in cib.xml file too?
> 2.Or what can I do, to disable this option permanently?
> 3.Are there any method to automatise the steps(resyncronysing the 
> data, then "autofailback" to the first node), when the first node in a 
> cluster stops, then starts?
>
> Here is my cib.xml file:
>
> <cib admin_epoch="0" generated="true" have_quorum="true" 
> ignore_dtd="false" num_peers="2" cib_feature_revision="1.3" epoch="22" 
> num_updates="1" cib-last-written="Mon Nov 19 15:05:24 2007" 
> ccm_transition="2" dc_uuid="6a0de656-9c3a-4bd7-a530-0f4ec24ca668">
>   <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="15s"/>
>           <nvpair id="cib-bootstrap-options-is-managed-default" 
> name="is-managed-default" value="true"/>
>           <nvpair id="cib-bootstrap-options-dc-version" 
> name="dc-version" value="2.1.3-node: 
> ddbcbf6038a49566b2b6140ca9c8f6345ccee94b"/>
>         </attributes>
>       </cluster_property_set>
>     </crm_config>
>     <nodes>
>       <node id="6a0de656-9c3a-4bd7-a530-0f4ec24ca668" 
> uname="ybkx007453" type="normal"/>
>       <node id="1f98fc30-4309-412a-a822-47fd02ba097c" 
> uname="ybkx007451" type="normal"/>
>     </nodes>
>     <resources>
>       <group id="group_1">
>         <primitive class="ocf" provider="heartbeat" type="IPaddr" 
> id="ip_management">
>           <operations>
>             <op id="ip_management_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>           </operations>
>           <instance_attributes id="ip_management_inst_attr">
>             <attributes>
>               <nvpair name="ip" id="ip_management_attr_0" 
> value="192.168.254.14"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="ocf" id="ip_voice" provider="heartbeat" 
> type="IPaddr">
>           <operations>
>             <op id="ip_voice_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>           </operations>
>           <instance_attributes id="ip_voice_inst_attr">
>             <attributes>
>               <nvpair id="ip_voice_attr_0" name="ip" 
> value="10.254.10.14"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="ocf" id="ip_interconn" provider="heartbeat" 
> type="IPaddr">
>           <operations>
>             <op id="ip_interconn_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>           </operations>
>           <instance_attributes id="ip_interconn_inst_attr">
>             <attributes>
>               <nvpair id="ip_interconn_attr_0" name="ip" 
> value="10.53.63.14"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>        <primitive class="heartbeat" id="drbddisk_4" 
> provider="heartbeat" type="drbddisk">
>           <operations>
>             <op id="drbddisk_4_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>           <instance_attributes id="drbddisk_4_inst_attr">
>             <attributes>
>               <nvpair id="drbddisk_4_attr_1" name="1" value="data"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="ocf" id="Filesystem_5" provider="heartbeat" 
> type="Filesystem">
>           <operations>
>             <op id="Filesystem_5_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>           <instance_attributes id="Filesystem_5_inst_attr">
>             <attributes>
>               <nvpair id="Filesystem_5_attr_0" name="device" 
> value="/dev/drbd0"/>
>               <nvpair id="Filesystem_5_attr_1" name="directory" 
> value="/mnt/data"/>
>               <nvpair id="Filesystem_5_attr_2" name="fstype" 
> value="ext2"/>
>               <nvpair id="Filesystem_5_attr_3" name="options" 
> value="defaults"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="heartbeat" id="mysqld_6" 
> provider="heartbeat" type="mysqld">
>           <operations>
>             <op id="mysqld_6_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>         </primitive>
>         <primitive class="heartbeat" id="ser_7" provider="heartbeat" 
> type="ser">
>           <operations>
>             <op id="ser_7_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>         </primitive>
>         <primitive class="heartbeat" id="httpd_8" provider="heartbeat" 
> type="httpd">
>           <operations>
>             <op id="httpd_8_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="YBKX007453"/>
>         </rule>
>       </rsc_location>
>     </constraints>
>   </configuration>
> </cib>
>
> _______________________________________________
> 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
>
I have this options in resource config block:

With this options you can pass on errors of startup drbd:

        disk {
                on-io-error     pass_on;
        }

        net {

                after-sb-0pri discard-older-primary;
                after-sb-1pri call-pri-lost-after-sb;
                after-sb-2pri call-pri-lost-after-sb;

        }

What do you think about it ??


More information about the Linux-HA mailing list