No subject


Tue Oct 23 02:10:09 EDT 2012


7.4.2. Cleaning Up Resources =C2=B6=20

A resource will be automatically restarted if it fails, but each failure ra=
ises the resource's failcount. If a migration-threshold has been set for th=
at resource, the node will no longer be allowed to run the resource as soon=
 as the number of failures has reached the migration threshold.=20


2013/3/4 Tommy Cooper < tomcooper83 at yahoo.com >=20

<blockquote>



I have removed the order and colocation statements but I am still getting t=
he same results. Asterisk keeps restarting on the same server, how can I sw=
itch to the other server when asterisk fails? I used those statements to ma=
ke sure that both services are running on the same server and to make sure =
that the virtual IP is started before asterisk.=20






----- Forwarded Message -----=20
From: Jake Smith < jsmith at argotec.com >=20
To: Tommy Cooper < tomcooper83 at yahoo.com >; The Pacemaker cluster resource =
manager < pacemaker at oss.clusterlabs.org >=20

Sent: Monday, March 4, 2013 10:00 PM=20
Subject: Re: [Pacemaker] Fw: Cluster resources failing to move=20



----- Original Message -----=20
> From: "Tommy Cooper" < tomcooper83 at yahoo.com >=20
> To: pacemaker at oss.clusterlabs.org=20

> Sent: Monday, March 4, 2013 3:51:03 PM=20

> Subject: [Pacemaker] Fw: Cluster resources failing to move=20
>=20
>=20
>=20
>=20
> Thank you for your prompt reply. I actually wanted to create an=20
> active/passive cluster, so if either the network or Asterisk fails=20
> these services could be migrated to the other server. As I already=20
> stated earlier, the current config notifies me if asterisk is down=20
> but does not start asterisk on the other server.=20


Did asterisk restart on the same server? <- this is what I would expect pac=
emaker to do.=20

Removing the colocation (and order) statements didn't have any effect?=20

>=20
>=20


> ----- Forwarded Message -----=20
> From: Jake Smith < jsmith at argotec.com >=20
> To: Tommy Cooper < tomcooper83 at yahoo.com >; The Pacemaker cluster=20
> resource manager < pacemaker at oss.clusterlabs.org >=20
> Sent: Monday, March 4, 2013 9:29 PM=20
> Subject: Re: [Pacemaker] Cluster resources failing to move=20
>=20
>=20
> ----- Original Message -----=20
> > From: "Tommy Cooper" < tomcooper83 at yahoo.com >=20
> > To: pacemaker at oss.clusterlabs.org=20
> > Sent: Monday, March 4, 2013 2:19:22 PM=20
> > Subject: [Pacemaker] Cluster resources failing to move=20
> >=20
> >=20
> >=20
> >=20
> > Hi,=20
> >=20
> >=20
> > I am trying to configure a 2 node cluster using pac emaker 1.1.7=20
> > and=20
> > corosync 1.4.1. I. I want pacemaker to provide the virual IP=20
> > (192.168.1.115), monitor Asterisk (PBX) and failover to the othe=20
> > server. If I switch off pacemaker and/or corosync the cluster=20
> > resources switch to the other node. I have also configured=20
> > res_corosync.so module in Asterisk However if i either switch off=20
> > asterisk using service *service name* stop, the following error is=20
> > shown: Failed actions:=20
> > p_asterisk_monitor_10000 (node=3Dnode1.localdomain, call=3D10, rc=3D7,=
=20
> > status=3Dcomplete): not running=20
> >=20
>=20
> What do you want/expect to happen when you stop asterisk that=20
> doesn't? The monitor showing not running (failed) is expected if=20
> some outside event stopped the resource.=20
>=20
> > Corosync configuration:=20
> >=20
> > compatibility: whitetank=20
> > totem {=20
> > version: 2=20
> > secauth: off=20
> > interface {=20
> > member {=20
> > memberaddr: 192.168.1.113=20
> > }=20
> > member {=20
> > memberaddr: 192.168.1.114=20
> > }=20
> > ringnumber: 0=20
> > bindnetaddr: 192.168.1.0=20
> > mcastport: 5405=20
> > ttl: 1=20
> > }=20
> > transport: udpu=20
> > }=20
> > logging {=20
> > fileline: off=20
> > to_logfile: yes=20
> > to_syslog: yes=20
> > debug: on=20
> > logfile: /var/log/cluster/corosync.log=20
> > debug: off=20
> > timestamp: on=20
> > logger_subsys {=20
> > subsys: AMF=20
> > debug: off=20
> > }=20
> > }=20
> >=20
> > amf {=20
> > mode: disabled=20
> > }=20
> > quorum {=20
> > provider: corosync_votequorum=20
> > expected_votes: 3=20
> > }=20
> >=20
> > crm configure status:=20
> >=20
> > node node1.localdomain=20
> > node node2.localdomain=20
> > primitive failover-ip ocf:heartbeat:IPaddr2 \=20
> > params ip=3D"192.168.1.115" cidr_netmask=3D"24" nic=3D"eth6" \=20
> > op start interval=3D"0" timeout=3D"30" \=20
> > op monitor interval=3D"1s" timeout=3D"30" start-delay=3D"0" \=20
> > op stop interval=3D"0" timeout=3D"30s" \=20
> > meta target-role=3D"started"=20
> > primitive p_asterisk ocf:heartbeat:asterisk \=20
> > params user=3D"root" group=3D"root" maxfiles=3D"65536" \=20
> > op start interval=3D"0" timeout=3D"30s" \=20
> > op monitor interval=3D"10s" timeout=3D"30s" \=20
> > op stop interval=3D"0" timeout=3D"30s"=20
> > group voip failover-ip p_asterisk=20
>=20
> You don't need these colocation and order statements if you have the=20
> resources grouped - remove them. The group is a syntax shortcut for=20
> writing order and colocation statements so the above is enforcing an=20
> order of ip then asterisk and a colocation of asterisk with ip. Also=20
> the colocation below is backwards and *might* be causing your=20
> issues.=20
>=20
> HTH=20
> Jake=20
>=20
> > colocation asterisk_cluster inf: failover-ip p_asterisk=20
> > order start_order inf: failover-ip p_asterisk=20
> > property $id=3D"cib-bootstrap-options" \=20
> > dc-version=3D"1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \=
=20
> > cluster-infrastructure=3D"openais" \=20
> > expected-quorum-votes=3D"2" \=20
> > stonith-enabled=3D"false" \=20
> > no-quorum-policy=3D"ignore"=20
> > rsc_defaults $id=3D"rsc-options" \=20
> > resource-stickiness=3D"100"=20
> >=20
> >=20
> >=20
> >=20
> >=20
> > _______________________________________________=20
> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org=20
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker=20
> >=20
> > Project Home: http://www.clusterlabs.org/=20
> > Getting started:=20
> > http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf=20
> > Bugs: http://bugs.clusterlabs.org/=20

> >=20
>=20
>=20
>=20
> _______________________________________________=20
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org=20
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker=20
>=20
> Project Home: http://www.clusterlabs.org/=20
> Getting started:=20
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf=20
> Bugs: http://bugs.clusterlabs.org/=20
>=20



_______________________________________________=20
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org=20
http://oss.clusterlabs.org/mailman/listinfo/pacemaker=20

Project Home: http://www.clusterlabs.org/=20
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf=20
Bugs: http://bugs.clusterlabs.org/=20







--=20
esta es mi vida e me la vivo hasta que dios quiera=20


_______________________________________________=20
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org=20
http://oss.clusterlabs.org/mailman/listinfo/pacemaker=20

Project Home: http://www.clusterlabs.org/=20
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf=20
Bugs: http://bugs.clusterlabs.org/=20


</blockquote>



--=20
esta es mi vida e me la vivo hasta que dios quiera=20


_______________________________________________=20
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org=20
http://oss.clusterlabs.org/mailman/listinfo/pacemaker=20

Project Home: http://www.clusterlabs.org/=20
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf=20
Bugs: http://bugs.clusterlabs.org/=20


</blockquote>



--=20
esta es mi vida e me la vivo hasta que dios quiera=20


_______________________________________________=20
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org=20
http://oss.clusterlabs.org/mailman/listinfo/pacemaker=20

Project Home: http://www.clusterlabs.org=20
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf=20
Bugs: http://bugs.clusterlabs.org=20


------=_Part_2361_25175740.1362496368182
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><=
div style=3D'font-family: trebuchet ms,sans-serif; font-size: 10pt; color: =
#000000'>I just wanted to reiterate one thing that I think got lost at the =
bottom of my first response - might be helpful...<br><br>You don't need the=
se colocation and order statements if you have the resources grouped. The g=
roup is a syntax shortcut for writing order and colocation statements so th=
e group is enforcing an order of ip then asterisk and a colocation of aster=
isk with ip. The colocation you had originally looked like it was backwards=
 too.<br><br><div><span name=3D"x"></span>

<style>/* Style Definitions */p.MsoNormal, p.MsoAutoSig, li.MsoNormal, div.=
MsoNormal=09{margin:0cm; margin-bottom:.0001pt;}@page WordSection1=09{size:=
612.0pt 792.0pt;=09margin:72.0pt 72.0pt 72.0pt 72.0pt;=09mso-header-margin:=
36.0pt;=09mso-footer-margin:36.0pt;=09mso-paper-source:0;}div.WordSection1=
=09{page:WordSection1;}</style>



<div class=3D"WordSection1">

<p class=3D"MsoNormal"><font size=3D"2">Jake</font></p>

</div>



<span name=3D"x"></span><br></div><hr id=3D"zwchr"><div style=3D"color: rgb=
(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; =
font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"To=
mmy Cooper" &lt;tomcooper83 at yahoo.com&gt;<br><b>To: </b>pacemaker at oss.clust=
erlabs.org<br><b>Sent: </b>Tuesday, March 5, 2013 9:42:52 AM<br><b>Subject:=
 </b>[Pacemaker] Fw: &nbsp;Fw: Fw: Cluster resources failing to move<br><br=
><div style=3D"color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); f=
ont-family: times new roman,new york,times,serif; font-size: 12pt;"><div st=
yle=3D"right: auto;"><span style=3D"right: auto;">Thank you all<var id=3D"y=
ui-ie-cursor"></var> for helping me, the problem appears to be solved <br s=
tyle=3D"right: auto;" class=3D"yui-cursor"></span></div>
<div style=3D"right: auto;"><br style=3D"right: auto;"></div>
<div style=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div style=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div dir=3D"ltr"><font face=3D"Arial" size=3D"2">----- Forwarded Message --=
---<br><b><span style=3D"font-weight: bold;">From:</span></b> emmanuel segu=
ra &lt;emi2fast at gmail.com&gt;<br><b><span style=3D"font-weight: bold;">To:<=
/span></b> Tommy Cooper &lt;tomcooper83 at yahoo.com&gt;; The Pacemaker cluste=
r resource manager &lt;pacemaker at oss.clusterlabs.org&gt; <br><b><span style=
=3D"font-weight: bold;">Sent:</span></b> Tuesday, March 5, 2013 12:21 AM<br=
><b><span style=3D"font-weight: bold;">Subject:</span></b> Re: [Pacemaker] =
Fw: Fw: Cluster resources failing to move<br></font></div><br>

<div style=3D"right: auto;" id=3D"yiv1233195814">try with this<br><br><span=
 style=3D"right: auto;">
<div style=3D"right: auto;" class=3D"yiv1233195814im">primitive p_asterisk =
ocf:heartbeat:asterisk \<br><span class=3D"yiv1233195814Apple-style-span">m=
eta migration-threshold=3D"1" \</span><br>&nbsp;params user=3D"root" group=
=3D"root" maxfiles=3D"65536" \<br>&nbsp;op start interval=3D"0" timeout=3D"=
30s" \<br>&nbsp;op monitor interval=3D"10s" timeout=3D"30s" \<br></div>&nbs=
p;op stop interval=3D"0" timeout=3D"30s"</span><br><br>
<div style=3D"right: auto;" class=3D"yiv1233195814gmail_quote">2013/3/5 Tom=
my Cooper <span dir=3D"ltr">&lt;<a href=3D"mailto:tomcooper83 at yahoo.com" re=
l=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>&gt;</span><br>
<blockquote style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0px=
 0px 0px 0.8ex; padding-left: 1ex; right: auto;" class=3D"yiv1233195814gmai=
l_quote">
<div style=3D"right: auto;">
<div style=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div><span>This config did not work<br><span>&nbsp;</span></span></div>
<div style=3D"right: auto;" class=3D"yiv1233195814im">
<div style=3D"right: auto;">primitive p_asterisk ocf:heartbeat:asterisk \<b=
r>&nbsp;params user=3D"root" group=3D"root" maxfiles=3D"65536" \<br>&nbsp;m=
eta <span>migration-threshold=3D"1" \</span><br>&nbsp;op start interval=3D"=
0" timeout=3D"30s" \<br>&nbsp;op monitor interval=3D"10s" timeout=3D"30s" \=
</div>
<div>&nbsp;</div></div>
<div>crm(live)configure# verify<br>&nbsp;&nbsp; error: text2role: &nbsp;Unk=
nown role: Start<br>&nbsp;&nbsp; error: get_target_role: &nbsp;voip: Unknow=
n value for target-role: Start<br>&nbsp;&nbsp; error: text2role: &nbsp;Unkn=
own role: Start<br>&nbsp;&nbsp; error: get_target_role: &nbsp;voip: Unknown=
 value for target-role: Start<br>&nbsp;&nbsp; error: text2role: &nbsp;Unkno=
wn role: Start<br>&nbsp;&nbsp; error: get_target_role: &nbsp;p_asterisk: Un=
known value for target-role: Start<br>Errors found during check: config not=
 valid<br></div>
<div><br></div>
<div style=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div style=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div style=3D"right: auto;" dir=3D"ltr"><font style=3D"right: auto;" face=
=3D"Arial">
<div style=3D"right: auto;" class=3D"yiv1233195814im">----- Forwarded Messa=
ge -----<br><b><span style=3D"font-weight: bold;">From:</span></b> emmanuel=
 segura &lt;<a href=3D"mailto:emi2fast at gmail.com" rel=3D"nofollow" target=
=3D"_blank">emi2fast at gmail.com</a>&gt;<br><b><span style=3D"font-weight: bo=
ld;">To:</span></b> Tommy Cooper &lt;<a href=3D"mailto:tomcooper83 at yahoo.co=
m" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>&gt;; The Pa=
cemaker cluster resource manager &lt;<a style=3D"right: auto;" href=3D"mail=
to:pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacema=
ker at oss.clusterlabs.org</a>&gt; <br></div>
<div>
<div class=3D"yiv1233195814h5"><b><span style=3D"font-weight: bold;">Sent:<=
/span></b> Monday, March 4, 2013 11:50 PM<br><b><span style=3D"font-weight:=
 bold;">Subject:</span></b> Re: [Pacemaker] Fw: Cluster resources failing t=
o move<br></div></div></font></div>
<div style=3D"right: auto;">
<div style=3D"right: auto;" class=3D"yiv1233195814h5"><br>
<div style=3D"right: auto;">it's should be<br><br><span style=3D"right: aut=
o;">
<div style=3D"right: auto;">primitive p_asterisk ocf:heartbeat:asterisk \<b=
r>&nbsp;params user=3D"root" group=3D"root" maxfiles=3D"65536" \<br>&nbsp;m=
eta <span>migration-threshold=3D"1" \</span><br>&nbsp;op start interval=3D"=
0" timeout=3D"30s" \<br>&nbsp;op monitor interval=3D"10s" timeout=3D"30s" \=
<br></div>&nbsp;</span><br><br>
<div>2013/3/4 Tommy Cooper <span dir=3D"ltr">&lt;<a href=3D"mailto:tomcoope=
r83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>=
&gt;</span><br>
<blockquote style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0px=
 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div style=3D"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>&nbsp;</div>
<div style=3D"background-color: transparent; font-style: normal; font-famil=
y: times new roman,new york,times,serif; font-size: 16px;"><span>
<div>primitive p_asterisk ocf:heartbeat:asterisk \<br>&nbsp;params user=3D"=
root" group=3D"root" maxfiles=3D"65536" \<br>&nbsp;op start interval=3D"0" =
timeout=3D"30s" \<br>&nbsp;op monitor interval=3D"10s" timeout=3D"30s" \<br=
></div>&nbsp;op stop interval=3D"0" timeout=3D"30s" migration-threshold=3D"=
1"</span></div>
<div><span></span>&nbsp;</div>
<div><span>I tried stopping the asterisk service using service asterisk sto=
p. 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=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div style=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div dir=3D"ltr"><font face=3D"Arial">
<div>----- Forwarded Message -----<br><b><span style=3D"font-weight: bold;"=
>From:</span></b> emmanuel segura &lt;<a href=3D"mailto:emi2fast at gmail.com"=
 rel=3D"nofollow" target=3D"_blank">emi2fast at gmail.com</a>&gt;<br><b><span =
style=3D"font-weight: bold;">To:</span></b> Tommy Cooper &lt;<a href=3D"mai=
lto:tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at y=
ahoo.com</a>&gt;; The Pacemaker cluster resource manager &lt;<a href=3D"mai=
lto:pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacem=
aker at oss.clusterlabs.org</a>&gt; <br></div>
<div>
<div><b><span style=3D"font-weight: bold;">Sent:</span></b> Monday, March 4=
, 2013 11:05 PM<br><b><span style=3D"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.&nbsp;Cleaning Up Resources<span><a 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" rel=3D"nofollow" targe=
t=3D"_blank">=C2=B6</a></span></h3>
<div>A resource will be automatically restarted if it fails, but each failu=
re raises the resource's failcount. If a <code>migration-threshold</code> h=
as been set for that resource, the node will no longer be allowed to run th=
e resource as soon as the number of failures has reached the migration thre=
shold. </div><br><br>
<div>2013/3/4 Tommy Cooper <span dir=3D"ltr">&lt;<a href=3D"mailto:tomcoope=
r83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>=
&gt;</span><br>
<blockquote style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0px=
 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div style=3D"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 stil=
l getting the same results.&nbsp;Asterisk keeps restarting on the same serv=
er, 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 a=
nd 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:=
 12pt;">
<div style=3D"font-family: times new roman,new york,times,serif; font-size:=
 12pt;">
<div dir=3D"ltr"><font face=3D"Arial">
<div>----- Forwarded Message -----<br><b><span style=3D"font-weight: bold;"=
>From:</span></b> Jake Smith &lt;<a href=3D"mailto:jsmith at argotec.com" rel=
=3D"nofollow" target=3D"_blank">jsmith at argotec.com</a>&gt;<br><b><span styl=
e=3D"font-weight: bold;">To:</span></b> Tommy Cooper &lt;<a href=3D"mailto:=
tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo=
.com</a>&gt;; The Pacemaker cluster resource manager &lt;<a href=3D"mailto:=
pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacemaker=
@oss.clusterlabs.org</a>&gt; <br></div>
<div><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;">Subject:</span></b=
> Re: [Pacemaker] Fw: Cluster resources failing to move<br></div></font></d=
iv>
<div><br><br>----- Original Message -----<br>&gt; From: "Tommy Cooper" &lt;=
<a href=3D"mailto:tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D"_blank"=
>tomcooper83 at yahoo.com</a>&gt;<br>&gt; To: <a href=3D"mailto:pacemaker at oss.=
clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacemaker at oss.clusterla=
bs.org</a><br></div>
<div>&gt; Sent: Monday, March 4, 2013 3:51:03 PM<br></div>
<div>&gt; Subject: [Pacemaker] Fw:&nbsp; 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 eith=
er the network or Asterisk fails<br>&gt; these services could be migrated t=
o 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>Did asterisk restart on the same server? &lt;- this is what I would ex=
pect pacemaker to do.<br><br>Removing the colocation (and order) statements=
 didn't have any effect?<br><br>&gt; <br>&gt; <br></div>
<div>
<div>&gt; ----- Forwarded Message -----<br>&gt; From: Jake Smith &lt;<a hre=
f=3D"mailto:jsmith at argotec.com" rel=3D"nofollow" target=3D"_blank">jsmith at a=
rgotec.com</a>&gt;<br>&gt; To: Tommy Cooper &lt;<a href=3D"mailto:tomcooper=
83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>&=
gt;; The Pacemaker cluster<br>&gt; resource manager &lt;<a href=3D"mailto:p=
acemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacemaker@=
oss.clusterlabs.org</a>&gt;<br>&gt; Sent: Monday, March 4, 2013 9:29 PM<br>=
&gt; Subject: Re: [Pacemaker] Cluster resources failing to move<br>&gt; <br=
>&gt; <br>&gt; ----- Original Message -----<br>&gt; &gt; From: "Tommy Coope=
r" &lt; <a href=3D"mailto:tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D=
"_blank">tomcooper83 at yahoo.com</a> &gt;<br>&gt; &gt; To: <a href=3D"mailto:=
pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacemaker=
@oss.clusterlabs.org</a><br>&gt; &gt; Sent: Monday, March 4, 2013 2:19:22 P=
M<br>&gt; &gt; Subject: [Pacemaker] Cluster resources failing to move<br>&g=
t; &gt; <br>&gt; &gt; <br>&gt; &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; (192.168.1.115), monit=
or Asterisk (PBX) and failover to the othe<br>&gt; &gt; server. If I switch=
 off pacemaker and/or corosync the cluster<br>&gt; &gt; resources switch to=
 the other node. I have also configured<br>&gt; &gt; <a href=3D"http://res_=
corosync.so/" rel=3D"nofollow" target=3D"_blank">res_corosync.so</a> module=
 in Asterisk However if i either switch off<br>&gt; &gt; asterisk using ser=
vice *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; <br>&gt; What =
do you want/expect to happen when you stop asterisk that<br>&gt; doesn't? T=
he monitor showing not running (failed) is expected if<br>&gt; some outside=
 event stopped the resource.<br>&gt; <br>&gt; &gt; Corosync configuration:<=
br>&gt; &gt; <br>&gt; &gt; compatibility: whitetank<br>&gt; &gt; totem {<br=
>&gt; &gt; version: 2<br>&gt; &gt; secauth: off<br>&gt; &gt; interface {<br=
>&gt; &gt; member {<br>&gt; &gt; memberaddr: 192.168.1.113<br>&gt; &gt; }<b=
r>&gt; &gt; member {<br>&gt; &gt; memberaddr: 192.168.1.114<br>&gt; &gt; }<=
br>&gt; &gt; ringnumber: 0<br>&gt; &gt; bindnetaddr: 192.168.1.0<br>&gt; &g=
t; mcastport: 5405<br>&gt; &gt; ttl: 1<br>&gt; &gt; }<br>&gt; &gt; transpor=
t: udpu<br>&gt; &gt; }<br>&gt; &gt; logging {<br>&gt; &gt; fileline:
 off<br>&gt; &gt; to_logfile: yes<br>&gt; &gt; to_syslog: yes<br>&gt; &gt; =
debug: on<br>&gt; &gt; logfile: /var/log/cluster/corosync.log<br>&gt; &gt; =
debug: off<br>&gt; &gt; timestamp: on<br>&gt; &gt; logger_subsys {<br>&gt; =
&gt; subsys: AMF<br>&gt; &gt; debug: off<br>&gt; &gt; }<br>&gt; &gt; }<br>&=
gt; &gt; <br>&gt; &gt; amf {<br>&gt; &gt; mode: disabled<br>&gt; &gt; }<br>=
&gt; &gt; quorum {<br>&gt; &gt; provider: corosync_votequorum<br>&gt; &gt; =
expected_votes: 3<br>&gt; &gt; }<br>&gt; &gt; <br>&gt; &gt; crm configure s=
tatus:<br>&gt; &gt; <br>&gt; &gt; node node1.localdomain<br>&gt; &gt; node =
node2.localdomain<br>&gt; &gt; primitive failover-ip ocf:heartbeat:IPaddr2 =
\<br>&gt; &gt; params ip=3D"192.168.1.115" cidr_netmask=3D"24" nic=3D"eth6"=
 \<br>&gt; &gt; op start interval=3D"0" timeout=3D"30" \<br>&gt; &gt; op mo=
nitor interval=3D"1s" timeout=3D"30" start-delay=3D"0" \<br>&gt; &gt; op st=
op interval=3D"0" timeout=3D"30s" \<br>&gt; &gt; meta target-role=3D"starte=
d"<br>&gt; &gt;
 primitive p_asterisk ocf:heartbeat:asterisk \<br>&gt; &gt; params user=3D"=
root" group=3D"root" maxfiles=3D"65536" \<br>&gt; &gt; op start interval=3D=
"0" timeout=3D"30s" \<br>&gt; &gt; op monitor interval=3D"10s" timeout=3D"3=
0s" \<br>&gt; &gt; op stop interval=3D"0" timeout=3D"30s"<br>&gt; &gt; grou=
p voip failover-ip p_asterisk<br>&gt; <br>&gt; You don't need these colocat=
ion 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 colocat=
ion statements so the above is enforcing an<br>&gt; order of ip then asteri=
sk and a colocation of asterisk with ip. Also<br>&gt; the colocation below =
is backwards and *might* be causing your<br>&gt; issues.<br>&gt; <br>&gt; H=
TH<br>&gt; Jake<br>&gt; <br>&gt; &gt; colocation asterisk_cluster inf: fail=
over-ip p_asterisk<br>&gt; &gt; order start_order inf: failover-ip p_asteri=
sk<br>&gt; &gt; property $id=3D"cib-bootstrap-options" \<br>&gt; &gt;
 dc-version=3D"1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \<br>&=
gt; &gt; cluster-infrastructure=3D"openais" \<br>&gt; &gt; expected-quorum-=
votes=3D"2" \<br>&gt; &gt; stonith-enabled=3D"false" \<br>&gt; &gt; no-quor=
um-policy=3D"ignore"<br>&gt; &gt; rsc_defaults $id=3D"rsc-options" \<br>&gt=
; &gt; resource-stickiness=3D"100"<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;=
 <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ________________________________=
_______________<br>&gt; &gt; Pacemaker mailing list: <a href=3D"mailto:Pace=
maker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">Pacemaker at oss=
.clusterlabs.org</a><br>&gt; &gt; <a href=3D"http://oss.clusterlabs.org/mai=
lman/listinfo/pacemaker" rel=3D"nofollow" target=3D"_blank">http://oss.clus=
terlabs.org/mailman/listinfo/pacemaker</a><br>&gt; &gt; <br></div></div>&gt=
; &gt; Project Home: <a href=3D"http://www.clusterlabs.org/" rel=3D"nofollo=
w" target=3D"_blank">http://www.clusterlabs.org/</a><br>&gt; &gt;
 Getting started:<br>&gt; &gt; <a href=3D"http://www.clusterlabs.org/doc/Cl=
uster_from_Scratch.pdf" rel=3D"nofollow" target=3D"_blank">http://www.clust=
erlabs.org/doc/Cluster_from_Scratch.pdf</a><br>&gt; &gt; Bugs: <a href=3D"h=
ttp://bugs.clusterlabs.org/" rel=3D"nofollow" target=3D"_blank">http://bugs=
.clusterlabs.org/</a>=20
<div><br>&gt; &gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ____________________=
___________________________<br>&gt; Pacemaker mailing list: <a href=3D"mail=
to:Pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">Pacema=
ker at oss.clusterlabs.org</a><br>&gt; <a href=3D"http://oss.clusterlabs.org/m=
ailman/listinfo/pacemaker" rel=3D"nofollow" target=3D"_blank">http://oss.cl=
usterlabs.org/mailman/listinfo/pacemaker</a><br>&gt; <br></div>&gt; Project=
 Home: <a href=3D"http://www.clusterlabs.org/" rel=3D"nofollow" target=3D"_=
blank">http://www.clusterlabs.org/</a><br>&gt; Getting started:<br>&gt; <a =
href=3D"http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel=3D"nof=
ollow" target=3D"_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratc=
h.pdf</a><br>&gt; Bugs: <a href=3D"http://bugs.clusterlabs.org/" rel=3D"nof=
ollow" target=3D"_blank">http://bugs.clusterlabs.org/</a><br>&gt;
 <br><br><br></div></div></div></div><br>__________________________________=
_____________<br>Pacemaker mailing list: <a href=3D"mailto:Pacemaker at oss.cl=
usterlabs.org" rel=3D"nofollow" target=3D"_blank">Pacemaker at oss.clusterlabs=
.org</a><br><a href=3D"http://oss.clusterlabs.org/mailman/listinfo/pacemake=
r" rel=3D"nofollow" target=3D"_blank">http://oss.clusterlabs.org/mailman/li=
stinfo/pacemaker</a><br><br>Project Home: <a href=3D"http://www.clusterlabs=
.org/" rel=3D"nofollow" target=3D"_blank">http://www.clusterlabs.org/</a><b=
r>Getting started: <a href=3D"http://www.clusterlabs.org/doc/Cluster_from_S=
cratch.pdf" rel=3D"nofollow" target=3D"_blank">http://www.clusterlabs.org/d=
oc/Cluster_from_Scratch.pdf</a><br>Bugs: <a href=3D"http://bugs.clusterlabs=
.org/" rel=3D"nofollow" target=3D"_blank">http://bugs.clusterlabs.org/</a><=
br><br></blockquote></div><br><br clear=3D"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=3D"mailto:Pacemaker at oss.cluster=
labs.org" rel=3D"nofollow" target=3D"_blank">Pacemaker at oss.clusterlabs.org<=
/a><br><a href=3D"http://oss.clusterlabs.org/mailman/listinfo/pacemaker" re=
l=3D"nofollow" target=3D"_blank">http://oss.clusterlabs.org/mailman/listinf=
o/pacemaker</a><br><br>Project Home: <a href=3D"http://www.clusterlabs.org/=
" rel=3D"nofollow" target=3D"_blank">http://www.clusterlabs.org/</a><br>Get=
ting started: <a href=3D"http://www.clusterlabs.org/doc/Cluster_from_Scratc=
h.pdf" rel=3D"nofollow" target=3D"_blank">http://www.clusterlabs.org/doc/Cl=
uster_from_Scratch.pdf</a><br>Bugs: <a href=3D"http://bugs.clusterlabs.org/=
" rel=3D"nofollow" target=3D"_blank">http://bugs.clusterlabs.org/</a><br><b=
r></blockquote></div><br><br clear=3D"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 mail=
ing list: <a href=3D"mailto:Pacemaker at oss.clusterlabs.org" rel=3D"nofollow"=
 target=3D"_blank">Pacemaker at oss.clusterlabs.org</a><br><a href=3D"http://o=
ss.clusterlabs.org/mailman/listinfo/pacemaker" rel=3D"nofollow" target=3D"_=
blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br><br>Pro=
ject Home: <a href=3D"http://www.clusterlabs.org/" rel=3D"nofollow" target=
=3D"_blank">http://www.clusterlabs.org/</a><br>Getting started: <a href=3D"=
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel=3D"nofollow" t=
arget=3D"_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a=
><br>Bugs: <a href=3D"http://bugs.clusterlabs.org/" rel=3D"nofollow" target=
=3D"_blank">http://bugs.clusterlabs.org/</a><br><br></blockquote></div><br>=
<br clear=3D"all"><br>-- <br>esta es mi vida e me la vivo hasta que dios
 quiera </div>
<br><br></div></div></div><br>_____________________________________________=
__<br>Pacemaker mailing list: Pacemaker at oss.clusterlabs.org<br>http://oss.c=
lusterlabs.org/mailman/listinfo/pacemaker<br><br>Project Home: http://www.c=
lusterlabs.org<br>Getting started: http://www.clusterlabs.org/doc/Cluster_f=
rom_Scratch.pdf<br>Bugs: http://bugs.clusterlabs.org<br></div><br></div></b=
ody></html>
------=_Part_2361_25175740.1362496368182--



More information about the Pacemaker mailing list