<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1745299103;
mso-list-type:hybrid;
mso-list-template-ids:-1443585280 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi All, <o:p></o:p></p>
<p class="MsoNormal"> Could you please help me for the corosync/pacemaker configuration with crmsh.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My requirments<o:p></o:p></p>
<p class="MsoNormal"> I have three resources <o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>VIP<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Kamailio<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Redis DB<o:p></o:p></p>
<p class="MsoListParagraph">I want to configure HA for kamailo with VIP and Redis Master/Slave mode.i have configured VIP and kamailio and its working fine, ie when kamailio process fails VIP will switch to another machine and start kamailio.<o:p></o:p></p>
<p class="MsoListParagraph">When kamailio fails first I want to move VIP then Redis and redis must switch to Master and Active node should be slave<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph">Ie Node 1 : Active (Running Resourcses VIP,Redis:Master ,Kamailio)<o:p></o:p></p>
<p class="MsoListParagraph"> Node 2 : Passive ( Redis as slave)<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph">My aim is when Kamailio or any resource in Node1 fails it should be like this<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph"> Node 2 : Active (Running Resourcses VIP,Redis:Master ,Kamailio)<o:p></o:p></p>
<p class="MsoListParagraph"> Node 1 : Passive ( Redis as slave)<o:p></o:p></p>
<p class="MsoNormal"><b><u>Crm configure edit<o:p></o:p></u></b></p>
<p class="MsoNormal"><b><u><o:p><span style="text-decoration:none"> </span></o:p></u></b></p>
<p class="MsoNormal">node PCSCF<o:p></o:p></p>
<p class="MsoNormal">node PCSCF18<o:p></o:p></p>
<p class="MsoNormal">primitive VIP IPaddr2 \<o:p></o:p></p>
<p class="MsoNormal"> params ip=10.193.30.28 nic=eth0 \<o:p></o:p></p>
<p class="MsoNormal"> op monitor interval=2s \<o:p></o:p></p>
<p class="MsoNormal"> meta is-managed=true target-role=Started<o:p></o:p></p>
<p class="MsoNormal">primitive kamailio ocf:kamailio:kamailio_ra \<o:p></o:p></p>
<p class="MsoNormal"> op start interval=5s \<o:p></o:p></p>
<p class="MsoNormal"> op monitor interval=2s \<o:p></o:p></p>
<p class="MsoNormal"> meta migration-threshold=1 failure-timeout=5s<o:p></o:p></p>
<p class="MsoNormal">primitive redis ocf:kamailio:redis \<o:p></o:p></p>
<p class="MsoNormal"> meta target-role=Master is-managed=true \<o:p></o:p></p>
<p class="MsoNormal"> op monitor interval=1s role=Master timeout=5s on-fail=restart \<o:p></o:p></p>
<p class="MsoNormal"> op monitor interval=1s role=Slave timeout=5s on-fail=restart<o:p></o:p></p>
<p class="MsoNormal">ms redis_clone redis \<o:p></o:p></p>
<p class="MsoNormal"> meta notify=true is-managed=true ordered=false interleave=false globally-unique=false target-role=Stopped migration-threshold=1<o:p></o:p></p>
<p class="MsoNormal">colocation resource_location inf: kamailio VIP<o:p></o:p></p>
<p class="MsoNormal">colocation resource_location1 inf: redis_clone:Master kamailio<o:p></o:p></p>
<p class="MsoNormal">order resource_starting_order inf: VIP kamailio<o:p></o:p></p>
<p class="MsoNormal">property cib-bootstrap-options: \<o:p></o:p></p>
<p class="MsoNormal"> dc-version=1.1.11-97629de \<o:p></o:p></p>
<p class="MsoNormal"> cluster-infrastructure="classic openais (with plugin)" \<o:p></o:p></p>
<p class="MsoNormal"> expected-quorum-votes=3 \<o:p></o:p></p>
<p class="MsoNormal"> stonith-enabled=false \<o:p></o:p></p>
<p class="MsoNormal"> no-quorum-policy=ignore \<o:p></o:p></p>
<p class="MsoNormal"> last-lrm-refresh=1454577107<o:p></o:p></p>
<p class="MsoNormal">property redis_replication: \<o:p></o:p></p>
<p class="MsoNormal"> redis_REPL_INFO=PCSCF<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<DIV><P><HR>
============================================================================================================================<BR>
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.<BR>
============================================================================================================================<BR>
</P></DIV>
</body>
</html>