<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Thank you for your prompt reply. I actually wanted to create an active/passive cluster, so if either the network or Asterisk fails these services could be migrated to the other server. As I already stated earlier, the current config notifies me if asterisk is down but does not start asterisk on the other server.<VAR id=yui-ie-cursor></VAR></SPAN></div>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="RIGHT: auto" dir=ltr><FONT size=2 face=Arial>----- Forwarded Message -----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Jake Smith &lt;jsmith@argotec.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Tommy Cooper &lt;tomcooper83@yahoo.com&gt;; The Pacemaker cluster resource manager &lt;pacemaker@oss.clusterlabs.org&gt; <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, March 4, 2013 9:29 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Pacemaker] Cluster resources failing to move<BR></FONT></DIV><BR><BR>----- Original Message -----<BR>&gt; From: "Tommy Cooper" &lt;<A href="mailto:tomcooper83@yahoo.com" ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>&gt;<BR>&gt; To: <A style="RIGHT: auto" href="mailto:pacemaker@oss.clusterlabs.org" ymailto="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</A><BR>&gt; Sent: Monday, March 4, 2013 2:19:22 PM<BR>&gt; Subject:
 [Pacemaker] Cluster resources failing to move<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Hi,<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; I am trying to configure a 2 node cluster using pac emaker 1.1.7 and<BR>&gt; corosync 1.4.1. I. I want pacemaker to provide the virual IP<BR>&gt; (192.168.1.115), monitor Asterisk (PBX) and failover to the othe<BR>&gt; server. If I switch off pacemaker and/or corosync the cluster<BR>&gt; resources switch to the other node. I have also configured<BR>&gt; <A href="http://res_corosync.so/" target=_blank>res_corosync.so</A> module in Asterisk However if i either switch off<BR>&gt; asterisk using service *service name* stop, the following error is<BR>&gt; shown: Failed actions:<BR>&gt; p_asterisk_monitor_10000 (node=node1.localdomain, call=10, rc=7,<BR>&gt; status=complete): not running<BR>&gt; <BR><BR>What do you want/expect to happen when you stop asterisk that doesn't?&nbsp; The monitor showing not running (failed) is expected if
 some outside event stopped the resource.<BR><BR>&gt; Corosync configuration:<BR>&gt; <BR>&gt; compatibility: whitetank<BR>&gt; totem {<BR>&gt; version: 2<BR>&gt; secauth: off<BR>&gt; interface {<BR>&gt; member {<BR>&gt; memberaddr: 192.168.1.113<BR>&gt; }<BR>&gt; member {<BR>&gt; memberaddr: 192.168.1.114<BR>&gt; }<BR>&gt; ringnumber: 0<BR>&gt; bindnetaddr: 192.168.1.0<BR>&gt; mcastport: 5405<BR>&gt; ttl: 1<BR>&gt; }<BR>&gt; transport: udpu<BR>&gt; }<BR>&gt; logging {<BR>&gt; fileline: off<BR>&gt; to_logfile: yes<BR>&gt; to_syslog: yes<BR>&gt; debug: on<BR>&gt; logfile: /var/log/cluster/corosync.log<BR>&gt; debug: off<BR>&gt; timestamp: on<BR>&gt; logger_subsys {<BR>&gt; subsys: AMF<BR>&gt; debug: off<BR>&gt; }<BR>&gt; }<BR>&gt; <BR>&gt; amf {<BR>&gt; mode: disabled<BR>&gt; }<BR>&gt; quorum {<BR>&gt; provider: corosync_votequorum<BR>&gt; expected_votes: 3<BR>&gt; }<BR>&gt; <BR>&gt; crm configure status:<BR>&gt; <BR>&gt; node node1.localdomain<BR>&gt;
 node node2.localdomain<BR>&gt; primitive failover-ip ocf:heartbeat:IPaddr2 \<BR>&gt; params ip="192.168.1.115" cidr_netmask="24" nic="eth6" \<BR>&gt; op start interval="0" timeout="30" \<BR>&gt; op monitor interval="1s" timeout="30" start-delay="0" \<BR>&gt; op stop interval="0" timeout="30s" \<BR>&gt; meta target-role="started"<BR>&gt; primitive p_asterisk ocf:heartbeat:asterisk \<BR>&gt; params user="root" group="root" maxfiles="65536" \<BR>&gt; op start interval="0" timeout="30s" \<BR>&gt; op monitor interval="10s" timeout="30s" \<BR>&gt; op stop interval="0" timeout="30s"<BR>&gt; group voip failover-ip p_asterisk<BR><BR>You don't need these colocation and order statements if you have the resources grouped - remove them.&nbsp; The group is a syntax shortcut for writing order and colocation statements so the above is enforcing an order of ip then asterisk and a colocation of asterisk with ip.&nbsp; Also the colocation below is backwards and *might* be
 causing your issues.<BR><BR>HTH<BR>Jake<BR><BR>&gt; colocation asterisk_cluster inf: failover-ip p_asterisk<BR>&gt; order start_order inf: failover-ip p_asterisk<BR>&gt; property $id="cib-bootstrap-options" \<BR>&gt; dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \<BR>&gt; cluster-infrastructure="openais" \<BR>&gt; expected-quorum-votes="2" \<BR>&gt; stonith-enabled="false" \<BR>&gt; no-quorum-policy="ignore"<BR>&gt; rsc_defaults $id="rsc-options" \<BR>&gt; resource-stickiness="100"<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Pacemaker mailing list: <A href="mailto:Pacemaker@oss.clusterlabs.org" ymailto="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A><BR>&gt; http://oss.clusterlabs.org/mailman/listinfo/pacemaker<BR>&gt; <BR>&gt; Project Home: http://www.clusterlabs.org<BR>&gt; Getting started:<BR>&gt;
 http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<BR>&gt; Bugs: http://bugs.clusterlabs.org<BR>&gt; <BR><BR><BR></DIV></DIV></div></body></html>