No subject
Tue Oct 23 06:10:09 UTC 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" <tomcooper83 at yahoo.com><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: 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 <emi2fast at gmail.com><br><b><span style=3D"font-weight: bold;">To:<=
/span></b> Tommy Cooper <tomcooper83 at yahoo.com>; The Pacemaker cluste=
r resource manager <pacemaker at oss.clusterlabs.org> <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> params user=3D"root" group=
=3D"root" maxfiles=3D"65536" \<br> op start interval=3D"0" timeout=3D"=
30s" \<br> 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"><<a href=3D"mailto:tomcooper83 at yahoo.com" re=
l=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>></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> </span></span></div>
<div style=3D"right: auto;" class=3D"yiv1233195814im">
<div style=3D"right: auto;">primitive p_asterisk ocf:heartbeat:asterisk \<b=
r> params user=3D"root" group=3D"root" maxfiles=3D"65536" \<br> m=
eta <span>migration-threshold=3D"1" \</span><br> op start interval=3D"=
0" timeout=3D"30s" \<br> op monitor interval=3D"10s" timeout=3D"30s" \=
</div>
<div> </div></div>
<div>crm(live)configure# verify<br> error: text2role: Unk=
nown role: Start<br> error: get_target_role: voip: Unknow=
n value for target-role: Start<br> error: text2role: Unkn=
own role: Start<br> error: get_target_role: voip: Unknown=
value for target-role: Start<br> error: text2role: Unkno=
wn role: Start<br> error: get_target_role: 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 <<a href=3D"mailto:emi2fast at gmail.com" rel=3D"nofollow" target=
=3D"_blank">emi2fast at gmail.com</a>><br><b><span style=3D"font-weight: bo=
ld;">To:</span></b> Tommy Cooper <<a href=3D"mailto:tomcooper83 at yahoo.co=
m" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>>; The Pa=
cemaker cluster resource manager <<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>> <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> params user=3D"root" group=3D"root" maxfiles=3D"65536" \<br> m=
eta <span>migration-threshold=3D"1" \</span><br> op start interval=3D"=
0" timeout=3D"30s" \<br> op monitor interval=3D"10s" timeout=3D"30s" \=
<br></div> </span><br><br>
<div>2013/3/4 Tommy Cooper <span dir=3D"ltr"><<a href=3D"mailto:tomcoope=
r83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>=
></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> </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> params user=3D"=
root" group=3D"root" maxfiles=3D"65536" \<br> op start interval=3D"0" =
timeout=3D"30s" \<br> op monitor interval=3D"10s" timeout=3D"30s" \<br=
></div> op stop interval=3D"0" timeout=3D"30s" migration-threshold=3D"=
1"</span></div>
<div><span></span> </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 <<a href=3D"mailto:emi2fast at gmail.com"=
rel=3D"nofollow" target=3D"_blank">emi2fast at gmail.com</a>><br><b><span =
style=3D"font-weight: bold;">To:</span></b> Tommy Cooper <<a href=3D"mai=
lto:tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at y=
ahoo.com</a>>; The Pacemaker cluster resource manager <<a href=3D"mai=
lto:pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacem=
aker at oss.clusterlabs.org</a>> <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. 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"><<a href=3D"mailto:tomcoope=
r83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo.com</a>=
></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. 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 <<a href=3D"mailto:jsmith at argotec.com" rel=
=3D"nofollow" target=3D"_blank">jsmith at argotec.com</a>><br><b><span styl=
e=3D"font-weight: bold;">To:</span></b> Tommy Cooper <<a href=3D"mailto:=
tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D"_blank">tomcooper83 at yahoo=
.com</a>>; The Pacemaker cluster resource manager <<a href=3D"mailto:=
pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacemaker=
@oss.clusterlabs.org</a>> <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>> From: "Tommy Cooper" <=
<a href=3D"mailto:tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D"_blank"=
>tomcooper83 at yahoo.com</a>><br>> 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>> 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 eith=
er the network or Asterisk fails<br>> these services could be migrated t=
o 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 ex=
pect 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 hre=
f=3D"mailto:jsmith at argotec.com" rel=3D"nofollow" target=3D"_blank">jsmith at a=
rgotec.com</a>><br>> To: Tommy Cooper <<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>> resource manager <<a href=3D"mailto:p=
acemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">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 Coope=
r" < <a href=3D"mailto:tomcooper83 at yahoo.com" rel=3D"nofollow" target=3D=
"_blank">tomcooper83 at yahoo.com</a> ><br>> > To: <a href=3D"mailto:=
pacemaker at oss.clusterlabs.org" rel=3D"nofollow" target=3D"_blank">pacemaker=
@oss.clusterlabs.org</a><br>> > Sent: Monday, March 4, 2013 2:19:22 P=
M<br>> > Subject: [Pacemaker] Cluster resources failing to move<br>&g=
t; > <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), monit=
or 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=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>> > asterisk using ser=
vice *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>> <br>> What =
do you want/expect to happen when you stop asterisk that<br>> doesn't? T=
he 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>> > }<b=
r>> > member {<br>> > memberaddr: 192.168.1.114<br>> > }<=
br>> > ringnumber: 0<br>> > bindnetaddr: 192.168.1.0<br>> &g=
t; mcastport: 5405<br>> > ttl: 1<br>> > }<br>> > transpor=
t: 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>&=
gt; > <br>> > amf {<br>> > mode: disabled<br>> > }<br>=
> > quorum {<br>> > provider: corosync_votequorum<br>> > =
expected_votes: 3<br>> > }<br>> > <br>> > crm configure s=
tatus:<br>> > <br>> > node node1.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>> > op mo=
nitor interval=3D"1s" timeout=3D"30" start-delay=3D"0" \<br>> > op st=
op interval=3D"0" timeout=3D"30s" \<br>> > meta target-role=3D"starte=
d"<br>> >
primitive p_asterisk ocf:heartbeat:asterisk \<br>> > params user=3D"=
root" group=3D"root" maxfiles=3D"65536" \<br>> > op start interval=3D=
"0" timeout=3D"30s" \<br>> > op monitor interval=3D"10s" timeout=3D"3=
0s" \<br>> > op stop interval=3D"0" timeout=3D"30s"<br>> > grou=
p voip failover-ip p_asterisk<br>> <br>> You don't need these colocat=
ion and order statements if you have the<br>> resources grouped - remove=
them. The group is a syntax shortcut for<br>> writing order and colocat=
ion statements so the above is enforcing an<br>> order of ip then asteri=
sk and a colocation of asterisk with ip. Also<br>> the colocation below =
is backwards and *might* be causing your<br>> issues.<br>> <br>> H=
TH<br>> Jake<br>> <br>> > colocation asterisk_cluster inf: fail=
over-ip p_asterisk<br>> > order start_order inf: failover-ip p_asteri=
sk<br>> > property $id=3D"cib-bootstrap-options" \<br>> >
dc-version=3D"1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \<br>&=
gt; > cluster-infrastructure=3D"openais" \<br>> > expected-quorum-=
votes=3D"2" \<br>> > stonith-enabled=3D"false" \<br>> > no-quor=
um-policy=3D"ignore"<br>> > rsc_defaults $id=3D"rsc-options" \<br>>=
; > resource-stickiness=3D"100"<br>> > <br>> > <br>> >=
<br>> > <br>> > <br>> > ________________________________=
_______________<br>> > 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>> > <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>> > <br></div></div>>=
; > Project Home: <a href=3D"http://www.clusterlabs.org/" rel=3D"nofollo=
w" target=3D"_blank">http://www.clusterlabs.org/</a><br>> >
Getting started:<br>> > <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>> > Bugs: <a href=3D"h=
ttp://bugs.clusterlabs.org/" rel=3D"nofollow" target=3D"_blank">http://bugs=
.clusterlabs.org/</a>=20
<div><br>> > <br>> <br>> <br>> <br>> ____________________=
___________________________<br>> 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>> <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>> <br></div>> Project=
Home: <a href=3D"http://www.clusterlabs.org/" rel=3D"nofollow" target=3D"_=
blank">http://www.clusterlabs.org/</a><br>> Getting started:<br>> <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>> Bugs: <a href=3D"http://bugs.clusterlabs.org/" rel=3D"nof=
ollow" 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.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