Hi all,

The version for heartbeat I installed on two CentOS 5.9 boxes is 3.0.3-2
and it is for Asterisk fail over. As per default/standard configuration if
I stop heartbeat service from either one machine, the virtual IP
automatically assign to another machine and this setup is working good but
it only applies on the system level. Whereas I'm looking forward for
service level i.e. if Asterisk service isn't running on serverA, IP address
automatically assign to serverB.

Please advise to accomplish this case (service level failover) as  there
are no such OCF resources exist for Asterisk.

Listing down the standard configuration for Linux HA below;

 <nodes>
      <node id="887bae58-1eb6-47d1-b539-d12a2ed3d836" uname="asterisk1"
type="normal"/>
      <node id="b966dfa2-5973-4dfc-96ba-b2d38319c174" uname="asterisk2"
type="normal"/>
    </nodes>
    <resources>
      <group id="group_1">
        <primitive class="ocf" id="IPaddr_10_3_152_103"
provider="heartbeat" type="IPaddr">
          <operations>
            <op id="IPaddr_10_3_152_103_mon" interval="5s" name="monitor"
timeout="5s"/>
          </operations>
          <instance_attributes id="IPaddr_10_3_152_103_inst_attr">
            <attributes>
              <nvpair id="IPaddr_10_3_152_103_attr_0" name="ip"
value="10.3.152.103"/>
            </attributes>
          </instance_attributes>
        </primitive>
        <primitive class="lsb" id="asterisk_2" provider="heartbeat"
type="asterisk">
          <operations>
            <op id="asterisk_2_mon" interval="120s" name="monitor"
timeout="60s"/>
          </operations>
        </primitive>
      </group>
    </resources>
    <constraints>
      <rsc_location id="rsc_location_group_1" rsc="group_1">
        <rule id="preferred_location_group_1" score="100">
          <expression attribute="#uname"
id="preferred_location_group_1_expr" operation="eq" value="asterisk1"/>
        </rule>
      </rsc_location>
    </constraints>
  </configuration>


-- 
Regards,

Ahmed Munir Chohan
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to