<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=iso-2022-jp"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
/* 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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.icon-default
        {mso-style-name:icon-default;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.date
        {mso-style-name:date;}
span.redtext
        {mso-style-name:redtext;}
.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:655959776;
        mso-list-template-ids:1132613860;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:1291395142;
        mso-list-template-ids:-1565617838;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</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="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Just wanted to share!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This misinformation got me started down the wrong path, which was running user/group root/root. Good old internet!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="http://www.klaverstyn.com.au/david/wiki/index.php?title=Asterisk_Cluster">http://www.klaverstyn.com.au/david/wiki/index.php?title=Asterisk_Cluster</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><pre style='background:whitesmoke'><span style='color:#333333'>pcs resource create Asterisk ocf:heartbeat:asterisk params user="root" group="root" op monitor timeout="30"<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>pcs constraint location Asterisk prefers node01<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>pcs resource delete Asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Testing :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'><o:p> </o:p></span></p><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'>usr/lib/ocf/resource.d/heartbeat/asterisk start ; echo $?<o:p></o:p></span></pre><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>1st Error :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>/usr/lib/ocf/resource.d/heartbeat/asterisk: line 38: /lib/heartbeat/ocf-shellfuncs: No such file or directory<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Reso :<o:p></o:p></span></p><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'>nano /usr/lib/ocf/resource.d/heartbeat/asterisk<o:p></o:p></span></pre><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>~asterisk<o:p></o:p></span></p><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'># Initialization: <o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>. /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs <o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>#: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat} <o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>#. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs<o:p></o:p></span></pre><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Testing again>><o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>2nd Error :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>INFO: Asterisk PBX is not running<br>ERROR: Directory /var/run/asterisk is not writable by asterisk<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Reso :<o:p></o:p></span></p><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'>chmod 777 /var/run/asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>chown asterisk:asterisk /var/run/asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>ls -la /var/run/ | grep asterisk<o:p></o:p></span></pre><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>drwxrwxrwx 2 asterisk asterisk 60 Jun 17 14:22 asterisk<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Success?:<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>root@node1:/var/run $ /usr/lib/ocf/resource.d/heartbeat/asterisk start ; echo $?<br>INFO: Asterisk PBX is not running<br>INFO: 0 active channels 0 active calls 0 calls processed<br>DEBUG: Asterisk PBX monitor succeeded<br>INFO: Asterisk PBX started<br>0<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Failover :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>root@node2:~ $ /usr/lib/ocf/resource.d/heartbeat/asterisk start ; echo $?<br>INFO: Asterisk PBX is not running<br>INFO: 0 active channels 0 active calls 0 calls processed<br>DEBUG: Asterisk PBX monitor succeeded<br>INFO: Asterisk PBX started<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Except :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Asterisk (ocf::heartbeat:asterisk): Stopped<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Failed Actions:<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;line-height:15.0pt;mso-list:l0 level1 lfo1;background:white'><![if !supportLists]><span style='font-size:10.0pt;font-family:Symbol;color:#333333'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Asterisk_start_0 on node2 'unknown error' (1): call=73, status=Timed Out, exitreason='none',<br>last-rc-change='Fri Jun 17 14:25:57 2016', queued=0ms, exec=20001ms<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Delete Resource and try again :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Success ?! :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Asterisk (ocf::heartbeat:asterisk): Started node2<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Failover :<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Failed Actions:<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;line-height:15.0pt;mso-list:l1 level1 lfo2;background:white'><![if !supportLists]><span style='font-size:10.0pt;font-family:Symbol;color:#333333'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Asterisk_start_0 on node1 'unknown error' (1): call=23, status=Timed Out, exitreason='none',<br>last-rc-change='Fri Jun 17 14:31:06 2016', queued=0ms, exec=20002ms<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Start and Stop Cluster = Same thing, failed on node 1 and 2<o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:white'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>root@node1:/var/run $ /usr/lib/ocf/resource.d/heartbeat/asterisk start ; echo $?<br>INFO: Asterisk PBX is not running<br>INFO: 0 active channels 0 active calls 0 calls processed<br>DEBUG: Asterisk PBX monitor succeeded<br>INFO: Asterisk PBX started<br>0<br>root@node1:/var/run $ service asterisk status<br>● asterisk.service - LSB: Asterisk PBX<br>Loaded: loaded (/etc/rc.d/init.d/asterisk)<br>Active: inactive (dead) since Fri 2016-06-17 14:03:45 EDT; 29min ago<o:p></o:p></span></p><p class=MsoNormal style='background:whitesmoke'><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'><a href="http://jira.freesoftwareservers.com/secure/ViewProfile.jspa?name=FreeSoftwareServers"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;text-decoration:none'><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Rectangle_x0020_1" o:spid="_x0000_s1026" type="#_x0000_t75" alt="FreeSoftwareServers" style='width:24pt;height:24pt;visibility:visible;mso-left-percent:-10001;mso-top-percent:-10001;mso-position-horizontal:absolute;mso-position-horizontal-relative:char;mso-position-vertical:absolute;mso-position-vertical-relative:line;mso-left-percent:-10001;mso-top-percent:-10001'>
<w:wrap type="none"/>
<w:anchorlock/>
</v:shape><![endif]--><![if !vml]><img width=32 height=32 src="cid:image001.png@01D1C8A9.A55FC400" alt=FreeSoftwareServers v:shapes="Rectangle_x0020_1"><![endif]></span><span style='color:#3B73AF'>admin@freesoftwareservers.com</span></a><span class=apple-converted-space> </span>added a comment -<span class=apple-converted-space> </span><span class=date>4 minutes ago</span><span class=apple-converted-space> </span>-<span class=apple-converted-space> </span></span><span class=redtext><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#D04437'>edited</span></span><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'><o:p></o:p></span></p><p style='margin:0in;margin-bottom:.0001pt;line-height:15.0pt;background:whitesmoke'><b><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'>Solution !!!!!!</span></b><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'><o:p></o:p></span></p><p style='mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;line-height:15.0pt;background:whitesmoke'><b><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'><a href="http://manpages.ubuntu.com/manpages/wily/man7/ocf_heartbeat_asterisk.7.html"><span style='color:#3B73AF'>http://manpages.ubuntu.com/manpages/wily/man7/ocf_heartbeat_asterisk.7.html</span></a></span></b><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333'><o:p></o:p></span></p><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'>wget https://raw.githubusercontent.com/ClusterLabs/resource-agents/master/heartbeat/asterisk -O /usr/lib/ocf/resource.d/heartbeat/asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>chmod +x /usr/lib/ocf/resource.d/heartbeat/asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'>nano /usr/lib/ocf/resource.d/heartbeat/asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'># Initialization: <o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>. /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs <o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>#: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat} <o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>#. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs<o:p></o:p></span></pre><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'>chmod 777 /var/run/asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>chown asterisk:asterisk /var/run/asterisk<o:p></o:p></span></pre><pre style='background:whitesmoke;max-height: 30em;word-wrap: normal;overflow:auto'><span style='color:#333333'>pcs resource create Asterisk ocf:heartbeat:asterisk params binary="asterisk" canary_binary="astercany" config="/etc/asterisk/asterisk.conf" user="asterisk" group="asterisk" additional_parameters="-g -vvv" op monitor timeout="30"<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>pcs constraint location Asterisk prefers node01<o:p></o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'><o:p> </o:p></span></pre><pre style='background:whitesmoke'><span style='color:#333333'>pcs resource delete Asterisk<o:p></o:p></span></pre><p class=MsoNormal><o:p> </o:p></p></div></body></html>