Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all. I trying to configure a cluster with 3 nodes. But the documentation in the HA project site ( HomePage: Linux HA ) is very confused to me. I ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    2

    Heartbeat with 3 nodes configuration

    Hi all.

    I trying to configure a cluster with 3 nodes. But the documentation in the HA project site (HomePage: Linux HA) is very confused to me.

    I need help to perform this configuration.

    How i made to proceed to get one Cluster with 3 nodes in the same resource.

    Following are my settings:

    Code:
    root@db1:/# cat /etc/ha.d/ha.cf
    logfacility local0
    logfile /var/log/ha-log
    debugfile /var/log/ha-debug
    use_logd on
    udpport 694
    keepalive 1 # 1 second
    deadtime 10
    initdead 80
    bcast eth0
    #serial /dev/ttyS0 #if you use serial
    #baud 19200 #if you use serial
    node db1
    node db2
    node db3
    crm yes
    auto_failback yes
    Code:
    root@db1:/# cat /etc/ha.d/authkeys
    auth 1
    1 sha1 db
    Code:
    root@db1:/# cat /var/lib/heartbeat/crm/cib.xml
    <cib>
        <configuration>
            <crm_config>
                <nvpair id="transition_idle_timeout" name="transition_idle_timeout" value="120s"/>
                <nvpair id="symmetric_cluster" name="symmetric_cluster" value="true"/>
                <nvpair id="no_quorum_policy" name="no_quorum_policy" value="stop"/>
            </crm_config>
            <nodes>
                <node id="f67904e0-4dfc-4db1-83a2-e930fc1d20f4" uname="db1" type="member"/>
                <node id="e9bdfde9-01b0-421f-acd8-8a65a53e775f" uname="db2" type="member"/>
                <node id="5d9a8c11-8684-43ea-9180-5e221530c193" uname="db3" type="member"/>
            </nodes>
            <resources>
                <group id="db_group">
                    <primitive id="db_ip" class="ocf" type="IPaddr" provider="heartbeat">
                        <instance_attributes>
                            <attributes>
                                <nvpair name="ip" value="192.168.10.45"/>
                            </attributes>
                        </instance_attributes>
                    </primitive>
                </group>
            </resources>
            <constraints>
                <rsc_location id="location_apache_group" rsc="apache_group">
                    <rule id="prefered_location_apache" score="100">
                        <expression attribute="#uname" operation="eq" value="db1"/>
                    </rule>
                    <rule id="prefered_location_apache" score="50">
                        <expression attribute="#uname" operation="eq" value="db2"/>
                    </rule>
                </rsc_location>
            </constraints>
        </configuration>
        <status/>
    </cib>
    These configurations is same in the 3 nodes.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Posts
    2
    The Webmin only suport Heartbeat without CRM, like Heartbeat V1.

    Heartbeat V1 suport only 2 nodes. I need 3 nodes.

    Tnx.

  4. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    I am using webmin with heartbeat v2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •