<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 all<VAR id=yui-ie-cursor></VAR> for helping me, the problem appears to be solved <BR style="RIGHT: auto" class=yui-cursor></SPAN></div>
<div style="RIGHT: auto"><BR style="RIGHT: auto"></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 dir=ltr><FONT size=2 face=Arial>----- Forwarded Message -----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> emmanuel segura <emi2fast@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Tommy Cooper <tomcooper83@yahoo.com>; The Pacemaker cluster resource manager <pacemaker@oss.clusterlabs.org> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, March 5, 2013 12:21 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Pacemaker] Fw: Fw: Cluster resources failing to move<BR></FONT></DIV><BR>
<META content=off http-equiv=x-dns-prefetch-control>
<DIV style="RIGHT: auto" id=yiv1233195814>try with this<BR><BR><SPAN style="RIGHT: auto">
<DIV style="RIGHT: auto" class=yiv1233195814im>primitive p_asterisk ocf:heartbeat:asterisk \<BR><SPAN class=yiv1233195814Apple-style-span>meta migration-threshold="1" \</SPAN><BR> params user="root" group="root" maxfiles="65536" \<BR> op start interval="0" timeout="30s" \<BR> op monitor interval="10s" timeout="30s" \<BR></DIV> op stop interval="0" timeout="30s"</SPAN><BR><BR>
<DIV style="RIGHT: auto" class=yiv1233195814gmail_quote>2013/3/5 Tommy Cooper <SPAN dir=ltr><<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>></SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex; RIGHT: auto" class=yiv1233195814gmail_quote>
<DIV style="RIGHT: auto">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV><SPAN>This config did not work<BR><SPAN> </SPAN></SPAN></DIV>
<DIV style="RIGHT: auto" class=yiv1233195814im>
<DIV style="RIGHT: auto">primitive p_asterisk ocf:heartbeat:asterisk \<BR> params user="root" group="root" maxfiles="65536" \<BR> meta <SPAN>migration-threshold="1" \</SPAN><BR> op start interval="0" timeout="30s" \<BR> op monitor interval="10s" timeout="30s" \</DIV>
<DIV> </DIV></DIV>
<DIV>crm(live)configure# verify<BR>   error: text2role:  Unknown role: Start<BR>   error: get_target_role:  voip: Unknown value for target-role: Start<BR>   error: text2role:  Unknown role: Start<BR>   error: get_target_role:  voip: Unknown value for target-role: Start<BR>   error: text2role:  Unknown role: Start<BR>   error: get_target_role:  p_asterisk: Unknown value for target-role: Start<BR>Errors found during check: config not valid<BR></DIV>
<DIV><BR></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 style="RIGHT: auto" face=Arial>
<DIV style="RIGHT: auto" class=yiv1233195814im>----- Forwarded Message -----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> emmanuel segura <<A href="mailto:emi2fast@gmail.com" rel=nofollow target=_blank ymailto="mailto:emi2fast@gmail.com">emi2fast@gmail.com</A>><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Tommy Cooper <<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>>; The Pacemaker cluster resource manager <<A style="RIGHT: auto" href="mailto:pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</A>> <BR></DIV>
<DIV>
<DIV class=yiv1233195814h5><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, March 4, 2013 11:50 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Pacemaker] Fw: Cluster resources failing to move<BR></DIV></DIV></FONT></DIV>
<DIV style="RIGHT: auto">
<DIV style="RIGHT: auto" class=yiv1233195814h5><BR>
<DIV style="RIGHT: auto">it's should be<BR><BR><SPAN style="RIGHT: auto">
<DIV style="RIGHT: auto">primitive p_asterisk ocf:heartbeat:asterisk \<BR> params user="root" group="root" maxfiles="65536" \<BR> meta <SPAN>migration-threshold="1" \</SPAN><BR> op start interval="0" timeout="30s" \<BR> op monitor interval="10s" timeout="30s" \<BR></DIV> </SPAN><BR><BR>
<DIV>2013/3/4 Tommy Cooper <SPAN dir=ltr><<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>></SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV><SPAN>Is this the correct way to do it?</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>
<DIV>primitive p_asterisk ocf:heartbeat:asterisk \<BR> params user="root" group="root" maxfiles="65536" \<BR> op start interval="0" timeout="30s" \<BR> op monitor interval="10s" timeout="30s" \<BR></DIV> op stop interval="0" timeout="30s" migration-threshold="1"</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN>I tried stopping the asterisk service using service asterisk stop. I repeated that for at least 4 times but the service keeps restarting on the same node<VAR></VAR></SPAN></DIV>
<DIV><BR></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 dir=ltr><FONT face=Arial>
<DIV>----- Forwarded Message -----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> emmanuel segura <<A href="mailto:emi2fast@gmail.com" rel=nofollow target=_blank ymailto="mailto:emi2fast@gmail.com">emi2fast@gmail.com</A>><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Tommy Cooper <<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>>; The Pacemaker cluster resource manager <<A href="mailto:pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</A>> <BR></DIV>
<DIV>
<DIV><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, March 4, 2013 11:05 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Pacemaker] Cluster resources failing to move<BR></DIV></DIV></FONT></DIV><BR>
<DIV>
<DIV>
<DIV>From Suse Docs<BR><BR>
<H3>7.4.2. Cleaning Up Resources<SPAN><A title="Copy Permalink" href="http://doc.opensuse.org/products/draft/SLE-HA/SLE-ha-guide_sd_draft/cha.ha.manual_config.html#sec.ha.manual_config.cleanup" rel=nofollow target=_blank>¶</A></SPAN></H3>
<DIV>A resource will be automatically restarted if it fails, but each failure raises the resource's failcount. If a <CODE>migration-threshold</CODE> has been set for that resource, the node will no longer be allowed to run the resource as soon as the number of failures has reached the migration threshold. </DIV><BR><BR>
<DIV>2013/3/4 Tommy Cooper <SPAN dir=ltr><<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>></SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV><SPAN>I have removed the order and colocation statements but I am still getting the same results. Asterisk keeps restarting on the same server, how can I switch to the other server when asterisk fails? I used those statements to make sure that both services are running on the same server and to make sure that the virtual IP is started before asterisk.<VAR></VAR><BR></SPAN></DIV>
<DIV><BR></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 dir=ltr><FONT face=Arial>
<DIV>----- Forwarded Message -----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Jake Smith <<A href="mailto:jsmith@argotec.com" rel=nofollow target=_blank ymailto="mailto:jsmith@argotec.com">jsmith@argotec.com</A>><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Tommy Cooper <<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>>; The Pacemaker cluster resource manager <<A href="mailto:pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</A>> <BR></DIV>
<DIV><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, March 4, 2013 10:00 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Pacemaker] Fw: Cluster resources failing to move<BR></DIV></FONT></DIV>
<DIV><BR><BR>----- Original Message -----<BR>> From: "Tommy Cooper" <<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>><BR>> To: <A href="mailto:pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</A><BR></DIV>
<DIV>> Sent: Monday, March 4, 2013 3:51:03 PM<BR></DIV>
<DIV>> Subject: [Pacemaker] Fw:  Cluster resources failing to move<BR>> <BR>> <BR>> <BR>> <BR>> Thank you for your prompt reply. I actually wanted to create an<BR>> active/passive cluster, so if either the network or Asterisk fails<BR>> these services could be migrated to the other server. As I already<BR>> stated earlier, the current config notifies me if asterisk is down<BR>> but does not start asterisk on the other server.<BR><BR></DIV>
<DIV>Did asterisk restart on the same server? <- this is what I would expect pacemaker to do.<BR><BR>Removing the colocation (and order) statements didn't have any effect?<BR><BR>> <BR>> <BR></DIV>
<DIV>
<DIV>> ----- Forwarded Message -----<BR>> From: Jake Smith <<A href="mailto:jsmith@argotec.com" rel=nofollow target=_blank ymailto="mailto:jsmith@argotec.com">jsmith@argotec.com</A>><BR>> To: Tommy Cooper <<A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A>>; The Pacemaker cluster<BR>> resource manager <<A href="mailto:pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</A>><BR>> Sent: Monday, March 4, 2013 9:29 PM<BR>> Subject: Re: [Pacemaker] Cluster resources failing to move<BR>> <BR>> <BR>> ----- Original Message -----<BR>> > From: "Tommy Cooper" < <A href="mailto:tomcooper83@yahoo.com" rel=nofollow target=_blank ymailto="mailto:tomcooper83@yahoo.com">tomcooper83@yahoo.com</A> ><BR>> > To: <A
 href="mailto:pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</A><BR>> > Sent: Monday, March 4, 2013 2:19:22 PM<BR>> > Subject: [Pacemaker] Cluster resources failing to move<BR>> > <BR>> > <BR>> > <BR>> > <BR>> > Hi,<BR>> > <BR>> > <BR>> > I am trying to configure a 2 node cluster using pac emaker 1.1.7<BR>> > and<BR>> > corosync 1.4.1. I. I want pacemaker to provide the virual IP<BR>> > (192.168.1.115), monitor Asterisk (PBX) and failover to the othe<BR>> > server. If I switch off pacemaker and/or corosync the cluster<BR>> > resources switch to the other node. I have also configured<BR>> > <A href="http://res_corosync.so/" rel=nofollow target=_blank>res_corosync.so</A> module in Asterisk However if i either switch off<BR>> > asterisk using service *service name* stop,
 the following error is<BR>> > shown: Failed actions:<BR>> > p_asterisk_monitor_10000 (node=node1.localdomain, call=10, rc=7,<BR>> > status=complete): not running<BR>> > <BR>> <BR>> What do you want/expect to happen when you stop asterisk that<BR>> doesn't? The monitor showing not running (failed) is expected if<BR>> some outside event stopped the resource.<BR>> <BR>> > Corosync configuration:<BR>> > <BR>> > compatibility: whitetank<BR>> > totem {<BR>> > version: 2<BR>> > secauth: off<BR>> > interface {<BR>> > member {<BR>> > memberaddr: 192.168.1.113<BR>> > }<BR>> > member {<BR>> > memberaddr: 192.168.1.114<BR>> > }<BR>> > ringnumber: 0<BR>> > bindnetaddr: 192.168.1.0<BR>> > mcastport: 5405<BR>> > ttl: 1<BR>> > }<BR>> > transport: udpu<BR>> > }<BR>> > logging {<BR>> > fileline:
 off<BR>> > to_logfile: yes<BR>> > to_syslog: yes<BR>> > debug: on<BR>> > logfile: /var/log/cluster/corosync.log<BR>> > debug: off<BR>> > timestamp: on<BR>> > logger_subsys {<BR>> > subsys: AMF<BR>> > debug: off<BR>> > }<BR>> > }<BR>> > <BR>> > amf {<BR>> > mode: disabled<BR>> > }<BR>> > quorum {<BR>> > provider: corosync_votequorum<BR>> > expected_votes: 3<BR>> > }<BR>> > <BR>> > crm configure status:<BR>> > <BR>> > node node1.localdomain<BR>> > node node2.localdomain<BR>> > primitive failover-ip ocf:heartbeat:IPaddr2 \<BR>> > params ip="192.168.1.115" cidr_netmask="24" nic="eth6" \<BR>> > op start interval="0" timeout="30" \<BR>> > op monitor interval="1s" timeout="30" start-delay="0" \<BR>> > op stop interval="0" timeout="30s" \<BR>> > meta target-role="started"<BR>> >
 primitive p_asterisk ocf:heartbeat:asterisk \<BR>> > params user="root" group="root" maxfiles="65536" \<BR>> > op start interval="0" timeout="30s" \<BR>> > op monitor interval="10s" timeout="30s" \<BR>> > op stop interval="0" timeout="30s"<BR>> > group voip failover-ip p_asterisk<BR>> <BR>> You don't need these colocation and order statements if you have the<BR>> resources grouped - remove them. The group is a syntax shortcut for<BR>> writing order and colocation statements so the above is enforcing an<BR>> order of ip then asterisk and a colocation of asterisk with ip. Also<BR>> the colocation below is backwards and *might* be causing your<BR>> issues.<BR>> <BR>> HTH<BR>> Jake<BR>> <BR>> > colocation asterisk_cluster inf: failover-ip p_asterisk<BR>> > order start_order inf: failover-ip p_asterisk<BR>> > property $id="cib-bootstrap-options" \<BR>> >
 dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \<BR>> > cluster-infrastructure="openais" \<BR>> > expected-quorum-votes="2" \<BR>> > stonith-enabled="false" \<BR>> > no-quorum-policy="ignore"<BR>> > rsc_defaults $id="rsc-options" \<BR>> > resource-stickiness="100"<BR>> > <BR>> > <BR>> > <BR>> > <BR>> > <BR>> > _______________________________________________<BR>> > Pacemaker mailing list: <A href="mailto:Pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A><BR>> > <A href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" rel=nofollow target=_blank>http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A><BR>> > <BR></DIV></DIV>> > Project Home: <A href="http://www.clusterlabs.org/" rel=nofollow target=_blank>http://www.clusterlabs.org/</A><BR>> >
 Getting started:<BR>> > <A href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel=nofollow target=_blank>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A><BR>> > Bugs: <A href="http://bugs.clusterlabs.org/" rel=nofollow target=_blank>http://bugs.clusterlabs.org/</A> 
<DIV><BR>> > <BR>> <BR>> <BR>> <BR>> _______________________________________________<BR>> Pacemaker mailing list: <A href="mailto:Pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A><BR>> <A href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" rel=nofollow target=_blank>http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A><BR>> <BR></DIV>> Project Home: <A href="http://www.clusterlabs.org/" rel=nofollow target=_blank>http://www.clusterlabs.org/</A><BR>> Getting started:<BR>> <A href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel=nofollow target=_blank>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A><BR>> Bugs: <A href="http://bugs.clusterlabs.org/" rel=nofollow target=_blank>http://bugs.clusterlabs.org/</A><BR>>
 <BR><BR><BR></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>Pacemaker mailing list: <A href="mailto:Pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A><BR><A href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" rel=nofollow target=_blank>http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A><BR><BR>Project Home: <A href="http://www.clusterlabs.org/" rel=nofollow target=_blank>http://www.clusterlabs.org/</A><BR>Getting started: <A href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel=nofollow target=_blank>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A><BR>Bugs: <A href="http://bugs.clusterlabs.org/" rel=nofollow target=_blank>http://bugs.clusterlabs.org/</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR></DIV></DIV>
<DIV>-- <BR>esta es mi vida e me la vivo hasta que dios quiera </DIV></DIV><BR><BR></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>Pacemaker mailing list: <A href="mailto:Pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A><BR><A href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" rel=nofollow target=_blank>http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A><BR><BR>Project Home: <A href="http://www.clusterlabs.org/" rel=nofollow target=_blank>http://www.clusterlabs.org/</A><BR>Getting started: <A href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel=nofollow target=_blank>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A><BR>Bugs: <A href="http://bugs.clusterlabs.org/" rel=nofollow target=_blank>http://bugs.clusterlabs.org/</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>esta es mi vida e me
 la vivo hasta que dios quiera </DIV><BR><BR></DIV></DIV></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>Pacemaker mailing list: <A href="mailto:Pacemaker@oss.clusterlabs.org" rel=nofollow target=_blank ymailto="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A><BR><A href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" rel=nofollow target=_blank>http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A><BR><BR>Project Home: <A href="http://www.clusterlabs.org/" rel=nofollow target=_blank>http://www.clusterlabs.org/</A><BR>Getting started: <A href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel=nofollow target=_blank>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A><BR>Bugs: <A href="http://bugs.clusterlabs.org/" rel=nofollow target=_blank>http://bugs.clusterlabs.org/</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>esta es mi vida e me la vivo hasta que dios
 quiera </DIV>
<META content=on http-equiv=x-dns-prefetch-control><BR><BR></DIV></DIV></div></body></html>