No subject

Tue Oct 23 02:10:09 EDT 2012

an class=3D"permalink"><a alt=3D"Permalink" title=3D"Copy Permalink" href=
    A resource will be automatically restarted if it fails, but each failur=
    raises the resource&#39;s failcount. If a
    <code class=3D"literal">migration-threshold</code> has been set for tha=
t resource,
    the node will no longer be allowed to run the resource as soon as the
    number of failures has reached the migration threshold.
   </p><br><br><div class=3D"gmail_quote">2013/3/4 Tommy Cooper <span dir=
=3D"ltr">&lt;<a href=3D"mailto:tomcooper83 at" target=3D"_blank">tom=
cooper83 at</a>&gt;</span><br><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style=3D"font-size:12pt;font-family:times new roman,new york,time=
s,serif"><div><span>I have removed the order and colocation statements but =
I am still getting the same results.=A0Asterisk keeps restarting on the sam=
e 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 se=
rver and to make sure that the virtual IP is started before asterisk.<var><=
<div style=3D"FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:12=
<div style=3D"FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:12=
<div dir=3D"ltr"><font face=3D"Arial"><div class=3D"im">----- Forwarded Mes=
sage -----<br><b><span style=3D"FONT-WEIGHT:bold">From:</span></b> Jake Smi=
th &lt;<a href=3D"mailto:jsmith at" target=3D"_blank">jsmith at argot=</a>&gt;<br>
<b><span style=3D"FONT-WEIGHT:bold">To:</span></b> Tommy Cooper &lt;<a href=
=3D"mailto:tomcooper83 at" target=3D"_blank">tomcooper83 at</=
a>&gt;; The Pacemaker cluster resource manager &lt;<a href=3D"mailto:pacema=
ker at" target=3D"_blank">pacemaker at</a=
>&gt; <br>
</div><div class=3D"im"><b><span style=3D"FONT-WEIGHT:bold">Sent:</span></b=
> Monday, March 4, 2013 10:00 PM<br><b><span style=3D"FONT-WEIGHT:bold">Sub=
ject:</span></b> Re: [Pacemaker] Fw: Cluster resources failing to move<br><=
</font></div><div class=3D"im"><br><br>----- Original Message -----<br>&gt;=
 From: &quot;Tommy Cooper&quot; &lt;<a href=3D"mailto:tomcooper83 at
" target=3D"_blank">tomcooper83 at</a>&gt;<br>&gt; To: <a href=3D"ma=
ilto:pacemaker at" target=3D"_blank">pacemaker at oss.cluster=</a><br>
</div><div class=3D"im">&gt; Sent: Monday, March 4, 2013 3:51:03 PM<br></di=
v><div class=3D"im">&gt;
 Subject: [Pacemaker] Fw:=A0 Cluster resources failing to move<br>&gt; <br>=
&gt; <br>&gt; <br>&gt; <br>&gt; Thank you for your prompt reply. I actually=
 wanted to create an<br>&gt; active/passive cluster, so if either the netwo=
rk or Asterisk fails<br>
&gt; these services could be migrated to the other server. As I already<br>=
&gt; stated earlier, the current config notifies me if asterisk is down<br>=
&gt; but does not start asterisk on the other server.<br><br></div><div cla=
Did asterisk restart on the same server? &lt;- this is what I would expect =
pacemaker to do.<br><br>Removing the colocation (and order) statements didn=
&#39;t have any effect?<br><br>&gt; <br>&gt; <br></div><div><div class=3D"h=
&gt; ----- Forwarded Message -----<br>&gt; From: Jake Smith &lt;<a href=3D"=
mailto:jsmith at" target=3D"_blank">jsmith at</a>&gt;<br>=
&gt; To: Tommy Cooper &lt;<a href=3D"mailto:tomcooper83 at" target=
=3D"_blank">tomcooper83 at</a>&gt;; The
 Pacemaker cluster<br>&gt; resource manager &lt;<a href=3D"mailto:pacemaker=" target=3D"_blank">pacemaker at</a>&g=
t;<br>&gt; Sent: Monday, March 4, 2013 9:29 PM<br>&gt; Subject: Re: [Pacema=
ker] Cluster resources failing to move<br>
&gt; <br>&gt; <br>&gt; ----- Original Message -----<br>&gt; &gt; From: &quo=
t;Tommy Cooper&quot; &lt; <a href=3D"mailto:tomcooper83 at" target=
=3D"_blank">tomcooper83 at</a> &gt;<br>&gt; &gt; To: <a href=3D"mail=
to:pacemaker at" target=3D"_blank">pacemaker at oss.clusterla=</a><br>
&gt; &gt; Sent: Monday, March 4, 2013 2:19:22 PM<br>&gt; &gt; Subject: [Pac=
emaker] Cluster resources failing to move<br>&gt; &gt; <br>&gt; &gt; <br>&g=
t; &gt; <br>&gt; &gt; <br>&gt; &gt; Hi,<br>&gt; &gt; <br>&gt; &gt; <br>
&gt; &gt; I am trying to configure a 2 node cluster using pac emaker 1.1.7<=
br>&gt; &gt; and<br>&gt; &gt;
 corosync 1.4.1. I. I want pacemaker to provide the virual IP<br>&gt; &gt; =
(, monitor Asterisk (PBX) and failover to the othe<br>&gt; &g=
t; server. If I switch off pacemaker and/or corosync the cluster<br>&gt; &g=
t; resources switch to the other node. I have also configured<br>
&gt; &gt; <a href=3D"" target=3D"_blank">res_corosyn=</a> module in Asterisk However if i either switch off<br>&gt; &gt; ast=
erisk using service *service name* stop, the following error is<br>&gt; &gt=
; shown: Failed actions:<br>
&gt; &gt; p_asterisk_monitor_10000 (node=3Dnode1.localdomain, call=3D10, rc=
=3D7,<br>&gt; &gt; status=3Dcomplete): not running<br>&gt; &gt; <br>&gt; <b=
r>&gt; What do you want/expect to happen when you stop asterisk that<br>&gt=
; doesn&#39;t? The monitor showing not running (failed) is expected if<br>
&gt; some outside event stopped the resource.<br>&gt; <br>&gt; &gt; Corosyn=
c configuration:<br>&gt; &gt; <br>&gt; &gt; compatibility:
 whitetank<br>&gt; &gt; totem {<br>&gt; &gt; version: 2<br>&gt; &gt; secaut=
h: off<br>&gt; &gt; interface {<br>&gt; &gt; member {<br>&gt; &gt; memberad=
dr:<br>&gt; &gt; }<br>&gt; &gt; member {<br>&gt; &gt; membera=
&gt; &gt; }<br>&gt; &gt; ringnumber: 0<br>&gt; &gt; bindnetaddr: 192.168.1.=
0<br>&gt; &gt; mcastport: 5405<br>&gt; &gt; ttl: 1<br>&gt; &gt; }<br>&gt; &=
gt; transport: udpu<br>&gt; &gt; }<br>&gt; &gt; logging {<br>&gt; &gt; file=
line: off<br>
&gt; &gt; to_logfile: yes<br>&gt; &gt; to_syslog: yes<br>&gt; &gt; debug: o=
n<br>&gt; &gt; logfile: /var/log/cluster/corosync.log<br>&gt; &gt; debug: o=
ff<br>&gt; &gt; timestamp: on<br>&gt; &gt; logger_subsys {<br>&gt; &gt; sub=
sys: AMF<br>
&gt; &gt; debug: off<br>&gt; &gt; }<br>&gt; &gt; }<br>&gt; &gt; <br>&gt; &g=
t; amf {<br>&gt; &gt; mode: disabled<br>&gt; &gt; }<br>&gt; &gt; quorum {<b=
r>&gt; &gt; provider: corosync_votequorum<br>&gt; &gt; expected_votes: 3<br=
&gt; &gt; }<br>&gt;
 &gt; <br>&gt; &gt; crm configure status:<br>&gt; &gt; <br>&gt; &gt; node n=
ode1.localdomain<br>&gt; &gt; node node2.localdomain<br>&gt; &gt; primitive=
 failover-ip ocf:heartbeat:IPaddr2 \<br>&gt; &gt; params ip=3D&quot;192.168=
.1.115&quot; cidr_netmask=3D&quot;24&quot; nic=3D&quot;eth6&quot; \<br>
&gt; &gt; op start interval=3D&quot;0&quot; timeout=3D&quot;30&quot; \<br>&=
gt; &gt; op monitor interval=3D&quot;1s&quot; timeout=3D&quot;30&quot; star=
t-delay=3D&quot;0&quot; \<br>&gt; &gt; op stop interval=3D&quot;0&quot; tim=
eout=3D&quot;30s&quot; \<br>
&gt; &gt; meta target-role=3D&quot;started&quot;<br>&gt; &gt; primitive p_a=
sterisk ocf:heartbeat:asterisk \<br>&gt; &gt; params user=3D&quot;root&quot=
; group=3D&quot;root&quot; maxfiles=3D&quot;65536&quot; \<br>&gt; &gt; op s=
tart interval=3D&quot;0&quot; timeout=3D&quot;30s&quot; \<br>
&gt; &gt; op monitor interval=3D&quot;10s&quot; timeout=3D&quot;30s&quot; \=
<br>&gt; &gt; op stop interval=3D&quot;0&quot; timeout=3D&quot;30s&quot;<br=
>&gt; &gt; group voip failover-ip p_asterisk<br>&gt; <br>&gt; You don&#39;t=
 need these colocation and order statements if you have the<br>
&gt; resources grouped - remove them. The group is a syntax shortcut for<br=
>&gt; writing
 order and colocation statements so the above is enforcing an<br>&gt; order=
 of ip then asterisk and a colocation of asterisk with ip. Also<br>&gt; the=
 colocation below is backwards and *might* be causing your<br>&gt; issues.<=
&gt; <br>&gt; HTH<br>&gt; Jake<br>&gt; <br>&gt; &gt; colocation asterisk_cl=
uster inf: failover-ip p_asterisk<br>&gt; &gt; order start_order inf: failo=
ver-ip p_asterisk<br>&gt; &gt; property $id=3D&quot;cib-bootstrap-options&q=
uot; \<br>
&gt; &gt; dc-version=3D&quot;1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966=
b85d14&quot; \<br>&gt; &gt; cluster-infrastructure=3D&quot;openais&quot; \<=
br>&gt; &gt; expected-quorum-votes=3D&quot;2&quot; \<br>&gt; &gt; stonith-e=
nabled=3D&quot;false&quot; \<br>
&gt; &gt; no-quorum-policy=3D&quot;ignore&quot;<br>&gt; &gt; rsc_defaults $=
id=3D&quot;rsc-options&quot; \<br>&gt; &gt; resource-stickiness=3D&quot;100=
&quot;<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;=
&gt; &gt; _______________________________________________<br>&gt; &gt; Pace=
maker mailing list: <a href=3D"mailto:Pacemaker at" target=
=3D"_blank">Pacemaker at</a><br>&gt; &gt; <a href=3D"http:=
//" target=3D"_blank">http://=</a><br>
&gt; &gt; <br></div></div>&gt; &gt; Project Home: <a href=3D"http://www.clu=" target=3D"_blank"></a><br>&gt; &g=
t; Getting started:<br>&gt; &gt; <a href=3D"
Cluster_from_Scratch.pdf" target=3D"_blank">
&gt; &gt; Bugs: <a href=3D"" target=3D"_blank">=</a><div class=3D"im"><br>&gt; &gt; <br>&gt; <b=
r>&gt; <br>&gt; <br>&gt; _______________________________________________<br=
>&gt; Pacemaker mailing list: <a href=3D"mailto:Pacemaker at oss.clusterlabs.o=
rg" target=3D"_blank">Pacemaker at</a><br>
&gt; <a href=3D"" targ=
&gt; <br></div>&gt; Project Home: <a href=3D"" t=
&gt; Getting started:<br>&gt; <a href=3D"
ster_from_Scratch.pdf" target=3D"_blank">
ster_from_Scratch.pdf</a><br>&gt; Bugs: <a href=3D"http://bugs.clusterlabs.=
org/" target=3D"_blank"></a><br>
&gt; <br><br><br></div></div></div></div><br>______________________________=
Pacemaker mailing list: <a href=3D"mailto:Pacemaker at">Pa=
cemaker at</a><br>
<a href=3D"" target=3D=
Project Home: <a href=3D"" target=3D"_blank">http=
Getting started: <a href=3D"
atch.pdf" target=3D"_blank">
Bugs: <a href=3D"" target=3D"_blank">http://bugs=</a><br>
<br></blockquote></div><br><br clear=3D"all"><br>-- <br>esta es mi vida e m=
e la vivo hasta que dios quiera


More information about the Pacemaker mailing list