[Pacemaker] Cluster resources failing to move

Tommy Cooper tomcooper83 at yahoo.com
Mon Mar 4 19:19:22 UTC 2013


Hi, 
I am trying to configure a 2 node cluster using pacemaker 1.1.7 and corosync 1.4.1. I. I want pacemaker to provide the virual IP (192.168.1.115), monitor Asterisk (PBX) and failover to the othe server. If I switch off pacemaker and/or corosync the cluster resources switch to the other node. I have also configured res_corosync.so module in Asterisk However if i either switch off asterisk using service *service name* stop, the following error is shown: Failed actions:
    p_asterisk_monitor_10000 (node=node1.localdomain, call=10, rc=7, status=complete): not running

Corosync configuration:

compatibility: whitetank
totem {
        version: 2
        secauth: off
        interface {
                member {
                        memberaddr: 192.168.1.113
                }
                member {
                        memberaddr: 192.168.1.114
                }
                ringnumber: 0
                bindnetaddr: 192.168.1.0
                mcastport: 5405
                ttl: 1
        }
 transport: udpu
}
logging {
 fileline: off
        to_logfile: yes
        to_syslog: yes
        debug: on
        logfile: /var/log/cluster/corosync.log
        debug: off
        timestamp: on
        logger_subsys {
                subsys: AMF
                debug: off
        }
}

 amf {
     mode: disabled
     }
quorum {
    provider: corosync_votequorum
    expected_votes: 3
}

crm configure status:

node node1.localdomain
node node2.localdomain
primitive failover-ip ocf:heartbeat:IPaddr2 \
 params ip="192.168.1.115" cidr_netmask="24" nic="eth6" \
 op start interval="0" timeout="30" \
 op monitor interval="1s" timeout="30" start-delay="0" \
 op stop interval="0" timeout="30s" \
 meta target-role="started"
primitive p_asterisk ocf:heartbeat:asterisk \
 params user="root" group="root" maxfiles="65536" \
 op start interval="0" timeout="30s" \
 op monitor interval="10s" timeout="30s" \
 op stop interval="0" timeout="30s"
group voip failover-ip p_asterisk
colocation asterisk_cluster inf: failover-ip p_asterisk
order start_order inf: failover-ip p_asterisk
property $id="cib-bootstrap-options" \
 dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \
 cluster-infrastructure="openais" \
 expected-quorum-votes="2" \
 stonith-enabled="false" \
 no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
 resource-stickiness="100"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130304/f25bc703/attachment-0003.html>


More information about the Pacemaker mailing list