No subject
Tue Oct 23 06:10:09 UTC 2012
an class=3D"permalink"><a alt=3D"Permalink" title=3D"Copy Permalink" href=
=3D"http://doc.opensuse.org/products/draft/SLE-HA/SLE-ha-guide_sd_draft/cha=
.ha.manual_config.html#sec.ha.manual_config.cleanup">=B6</a></span></h3>
<p>
A resource will be automatically restarted if it fails, but each failur=
e
raises the resource'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"><<a href=3D"mailto:tomcooper83 at yahoo.com" target=3D"_blank">tom=
cooper83 at yahoo.com</a>></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><=
/var><br>
</span></div>
<div><br></div>
<div style=3D"FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:12=
pt">
<div style=3D"FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:12=
pt">
<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 <<a href=3D"mailto:jsmith at argotec.com" target=3D"_blank">jsmith at argot=
ec.com</a>><br>
<b><span style=3D"FONT-WEIGHT:bold">To:</span></b> Tommy Cooper <<a href=
=3D"mailto:tomcooper83 at yahoo.com" target=3D"_blank">tomcooper83 at yahoo.com</=
a>>; The Pacemaker cluster resource manager <<a href=3D"mailto:pacema=
ker at oss.clusterlabs.org" target=3D"_blank">pacemaker at oss.clusterlabs.org</a=
>> <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><=
/div>
</font></div><div class=3D"im"><br><br>----- Original Message -----<br>>=
From: "Tommy Cooper" <<a href=3D"mailto:tomcooper83 at yahoo.com=
" target=3D"_blank">tomcooper83 at yahoo.com</a>><br>> To: <a href=3D"ma=
ilto:pacemaker at oss.clusterlabs.org" target=3D"_blank">pacemaker at oss.cluster=
labs.org</a><br>
</div><div class=3D"im">> Sent: Monday, March 4, 2013 3:51:03 PM<br></di=
v><div class=3D"im">>
Subject: [Pacemaker] Fw:=A0 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 netwo=
rk 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 cla=
ss=3D"im">
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 class=3D"h=
5">
> ----- Forwarded Message -----<br>> From: Jake Smith <<a href=3D"=
mailto:jsmith at argotec.com" target=3D"_blank">jsmith at argotec.com</a>><br>=
> To: Tommy Cooper <<a href=3D"mailto:tomcooper83 at yahoo.com" target=
=3D"_blank">tomcooper83 at yahoo.com</a>>; The
Pacemaker cluster<br>> resource manager <<a href=3D"mailto:pacemaker=
@oss.clusterlabs.org" target=3D"_blank">pacemaker at oss.clusterlabs.org</a>&g=
t;<br>> Sent: Monday, March 4, 2013 9:29 PM<br>> Subject: Re: [Pacema=
ker] Cluster resources failing to move<br>
> <br>> <br>> ----- Original Message -----<br>> > From: &quo=
t;Tommy Cooper" < <a href=3D"mailto:tomcooper83 at yahoo.com" target=
=3D"_blank">tomcooper83 at yahoo.com</a> ><br>> > To: <a href=3D"mail=
to:pacemaker at oss.clusterlabs.org" target=3D"_blank">pacemaker at oss.clusterla=
bs.org</a><br>
> > Sent: Monday, March 4, 2013 2:19:22 PM<br>> > Subject: [Pac=
emaker] Cluster resources failing to move<br>> > <br>> > <br>&g=
t; > <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>> &g=
t; server. If I switch off pacemaker and/or corosync the cluster<br>> &g=
t; resources switch to the other node. I have also configured<br>
> > <a href=3D"http://res_corosync.so/" target=3D"_blank">res_corosyn=
c.so</a> module in Asterisk However if i either switch off<br>> > ast=
erisk using service *service name* stop, the following error is<br>> >=
; shown: Failed actions:<br>
> > p_asterisk_monitor_10000 (node=3Dnode1.localdomain, call=3D10, rc=
=3D7,<br>> > status=3Dcomplete): not running<br>> > <br>> <b=
r>> 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>> > Corosyn=
c configuration:<br>> > <br>> > compatibility:
whitetank<br>> > totem {<br>> > version: 2<br>> > secaut=
h: off<br>> > interface {<br>> > member {<br>> > memberad=
dr: 192.168.1.113<br>> > }<br>> > member {<br>> > membera=
ddr: 192.168.1.114<br>
> > }<br>> > ringnumber: 0<br>> > bindnetaddr: 192.168.1.=
0<br>> > mcastport: 5405<br>> > ttl: 1<br>> > }<br>> &=
gt; transport: udpu<br>> > }<br>> > logging {<br>> > file=
line: off<br>
> > to_logfile: yes<br>> > to_syslog: yes<br>> > debug: o=
n<br>> > logfile: /var/log/cluster/corosync.log<br>> > debug: o=
ff<br>> > timestamp: on<br>> > logger_subsys {<br>> > sub=
sys: AMF<br>
> > debug: off<br>> > }<br>> > }<br>> > <br>> &g=
t; amf {<br>> > mode: disabled<br>> > }<br>> > quorum {<b=
r>> > provider: corosync_votequorum<br>> > expected_votes: 3<br=
>
> > }<br>>
> <br>> > crm configure status:<br>> > <br>> > node n=
ode1.localdomain<br>> > node node2.localdomain<br>> > primitive=
failover-ip ocf:heartbeat:IPaddr2 \<br>> > params ip=3D"192.168=
.1.115" cidr_netmask=3D"24" nic=3D"eth6" \<br>
> > op start interval=3D"0" timeout=3D"30" \<br>&=
gt; > op monitor interval=3D"1s" timeout=3D"30" star=
t-delay=3D"0" \<br>> > op stop interval=3D"0" tim=
eout=3D"30s" \<br>
> > meta target-role=3D"started"<br>> > primitive p_a=
sterisk ocf:heartbeat:asterisk \<br>> > params user=3D"root"=
; group=3D"root" maxfiles=3D"65536" \<br>> > op s=
tart interval=3D"0" timeout=3D"30s" \<br>
> > op monitor interval=3D"10s" timeout=3D"30s" \=
<br>> > op stop interval=3D"0" timeout=3D"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_cl=
uster inf: failover-ip p_asterisk<br>> > order start_order inf: failo=
ver-ip p_asterisk<br>> > property $id=3D"cib-bootstrap-options&q=
uot; \<br>
> > dc-version=3D"1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966=
b85d14" \<br>> > cluster-infrastructure=3D"openais" \<=
br>> > expected-quorum-votes=3D"2" \<br>> > stonith-e=
nabled=3D"false" \<br>
> > no-quorum-policy=3D"ignore"<br>> > rsc_defaults $=
id=3D"rsc-options" \<br>> > resource-stickiness=3D"100=
"<br>> > <br>> > <br>> > <br>> > <br>> >=
<br>
> > _______________________________________________<br>> > Pace=
maker mailing list: <a href=3D"mailto:Pacemaker at oss.clusterlabs.org" target=
=3D"_blank">Pacemaker at oss.clusterlabs.org</a><br>> > <a href=3D"http:=
//oss.clusterlabs.org/mailman/listinfo/pacemaker" target=3D"_blank">http://=
oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
> > <br></div></div>> > Project Home: <a href=3D"http://www.clu=
sterlabs.org/" target=3D"_blank">http://www.clusterlabs.org/</a><br>> &g=
t; Getting started:<br>> > <a href=3D"http://www.clusterlabs.org/doc/=
Cluster_from_Scratch.pdf" target=3D"_blank">http://www.clusterlabs.org/doc/=
Cluster_from_Scratch.pdf</a><br>
> > Bugs: <a href=3D"http://bugs.clusterlabs.org/" target=3D"_blank">=
http://bugs.clusterlabs.org/</a><div class=3D"im"><br>> > <br>> <b=
r>> <br>> <br>> _______________________________________________<br=
>> Pacemaker mailing list: <a href=3D"mailto:Pacemaker at oss.clusterlabs.o=
rg" target=3D"_blank">Pacemaker at oss.clusterlabs.org</a><br>
> <a href=3D"http://oss.clusterlabs.org/mailman/listinfo/pacemaker" targ=
et=3D"_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>=
> <br></div>> Project Home: <a href=3D"http://www.clusterlabs.org/" t=
arget=3D"_blank">http://www.clusterlabs.org/</a><br>
> Getting started:<br>> <a href=3D"http://www.clusterlabs.org/doc/Clu=
ster_from_Scratch.pdf" target=3D"_blank">http://www.clusterlabs.org/doc/Clu=
ster_from_Scratch.pdf</a><br>> Bugs: <a href=3D"http://bugs.clusterlabs.=
org/" target=3D"_blank">http://bugs.clusterlabs.org/</a><br>
> <br><br><br></div></div></div></div><br>______________________________=
_________________<br>
Pacemaker mailing list: <a href=3D"mailto:Pacemaker at oss.clusterlabs.org">Pa=
cemaker at oss.clusterlabs.org</a><br>
<a href=3D"http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target=3D=
"_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href=3D"http://www.clusterlabs.org" target=3D"_blank">http=
://www.clusterlabs.org</a><br>
Getting started: <a href=3D"http://www.clusterlabs.org/doc/Cluster_from_Scr=
atch.pdf" target=3D"_blank">http://www.clusterlabs.org/doc/Cluster_from_Scr=
atch.pdf</a><br>
Bugs: <a href=3D"http://bugs.clusterlabs.org" target=3D"_blank">http://bugs=
.clusterlabs.org</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
--e89a8fb20174ba7bac04d7208f3b--
More information about the Pacemaker
mailing list