[DRBD-user] drbd and heartbeat 2

Jean Chiappini Jean.Chiappini at virtua.ch
Thu Nov 30 14:24:37 CET 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello,

Who had a good configuration file for heartbeat v2 with drbd ? I juste 
setup two servers with heartbeat v2 to load balance an IP address, but I 
don't find any solution to load balance the IP and the drdb directory. 
This is my cib.xml file :

<?xml version="1.0" ?>
<cib admin_epoch="0" epoch="0" num_updates="0">
        <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 class="ocf" 
id="IPaddr_192_168_200_151" provider="heartbeat" type="IPaddr">
                                <operations>
                                        <op 
id="IPaddr_192_168_200_151_mon" interval="5s" name="monitor" timeout="5s"/>
                                </operations>
                                <instance_attributes 
id="IPaddr_192_168_200_151_inst_attr">
                                        <attributes>
                                                <nvpair 
id="IPaddr_192_168_200_151_attr_0" name="ip" value="192.168.200.151"/>
                                                <nvpair 
id="IPaddr_192_168_200_151_attr_1" name="netmask" value="24"/>
                                                <nvpair 
id="IPaddr_192_168_200_151_attr_2" name="nic" value="eth0"/>
                                        </attributes>
                                </instance_attributes>
                        </primitive>
                </resources>
                <constraints>
                        <rsc_location 
id="rsc_location_IPaddr_192_168_200_151" rsc="IPaddr_192_168_200_151">
                                <rule 
id="prefered_location_IPaddr_192_168_200_151" score="100">
                                        <expression attribute="#uname" 
id="prefered_location_IPaddr_192_168_200_151_expr" operation="eq" 
value="roz1"/>
                                </rule>
                        </rsc_location>
                </constraints>
        </configuration>
        <status/>
</cib>


Thank you in advance.

Regards

Jean



More information about the drbd-user mailing list