<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Parveen,<br>
<br>
specify 'op' only once.<br>
<br>
pcs resource create app-prim ocf:appprim:appmmra apigw_health_check_port=55000 appmm_instance_name=appgw op stop interval=0 timeout=60s monitor interval=1s timeout=5s start interval=0 timeout=60s<br>
<br>
<br>
see 'pcs resource help'<br>
<br>
create <resource id> <standard:provider:type|type> [resource options]<br>
           [op <operation action> <operation options> [<operation action><br>
           <operation options>]...] [meta <meta options>...]<br>
           [--clone <clone options> | --master <master options> |<br>
           --group <group name>]<br>
<br>
<br>
<br>
Regards<br>
Frank<br>
<br>
<br>
<div class="moz-cite-prefix">Am 23.01.2014 14:05, schrieb Parveen Jain:<br>
</div>
<blockquote cite="mid:BLU179-W78421D84F1F43A05CE7D39D4A60@phx.gbl" type="cite"><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi All,
<div>  I am new to pacemaker and trying to port some of the CRM commands to PCS(for RHEL6.4). Getting following issue:</div>
<div><br>
</div>
<div>original command:</div>
<div><br>
</div>
<div>
<p class="MsoNormal">primitive <span style="background:yellow;mso-highlight:yellow">
app-prim</span> ocf:appprim:appmm-ra \<o:p></o:p></p>
<p class="MsoNormal">        params appmm_health_check_port="55000" appmm_instance_name="INSTANCE_NAME" \<o:p></o:p></p>
<p class="MsoNormal">        op start interval="0" timeout="60s" \<o:p></o:p></p>
<p class="MsoNormal">        op stop interval="0" timeout="60s" \<o:p></o:p></p>
<p class="MsoNormal">        op monitor interval="1s" timeout="5s"<o:p></o:p></p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">to following PCs command:</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;
              font-family:"Courier
              New";mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;background:#FEF9F2;mso-ansi-language:EN-US;mso-fareast-language:
              EN-US;mso-bidi-language:AR-SA">pcs
 resource create <span style="font-family: Calibri, sans-serif; font-size:
                16px; line-height: normal; background-color: rgb(255,
                255, 0);">app-prim</span>_ocf:<span style="font-family:
                Calibri, sans-serif; font-size: 16px; line-height:
                normal; background-color: rgb(255, 255, 255);">appprim:appmmra</span> apigw_health_check_port=55000 <span style="font-family: Calibri, sans-serif; font-size:
                16px; line-height: normal; background-color: rgb(255,
                255, 255);">appmm</span><span style="font-family:
                Calibri, sans-serif; font-size: 16px; line-height:
                normal; background-color: rgb(255, 255, 255);">_instance_name</span>=appgw
 op stop interval=0 timeout=60s op monitor interval=1s timeout=5s </span><span style="background-color: rgb(254, 249, 242); font-family:
              'Courier New'; font-size: 13px; line-height:
              14.566666603088379px;">op start interval=0 timeout=60s</span><span style="background-color: rgb(254, 249, 242); font-family:
              'Courier New'; font-size: 13px; line-height:
              14.566666603088379px;"> </span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;
              font-family:"Courier
              New";mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;background:#FEF9F2;mso-ansi-language:EN-US;mso-fareast-language:
              EN-US;mso-bidi-language:AR-SA"><br>
</span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;
              font-family:"Courier
              New";mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;background:#FEF9F2;mso-ansi-language:EN-US;mso-fareast-language:
              EN-US;mso-bidi-language:AR-SA">but
 somehow this converted command is not working.</span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;
              font-family:"Courier
              New";mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;background:#FEF9F2;mso-ansi-language:EN-US;mso-fareast-language:
              EN-US;mso-bidi-language:AR-SA"><br>
</span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;
              font-family:"Courier
              New";mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;background:#FEF9F2;mso-ansi-language:EN-US;mso-fareast-language:
              EN-US;mso-bidi-language:AR-SA">The
 main issue is use of "op" parameter with pcs command.</span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;
              font-family:"Courier
              New";mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;background:#FEF9F2;mso-ansi-language:EN-US;mso-fareast-language:
              EN-US;mso-bidi-language:AR-SA">only
 the first command i.e. "</span><span style="background-color: rgb(254, 249, 242);
              font-family: 'Courier New'; font-size: 13px; line-height:
              14.566666603088379px;">op stop interval=0 timeout=60s" is effective. rest of the
<b>operations(op) are not effective at all.</b></span></p>
<p class="MsoNormal"><span style="background-color: rgb(254,
              249, 242); font-family: 'Courier New'; font-size: 13px;
              line-height: 14.566666603088379px;"><b><br>
</b></span></p>
<p class="MsoNormal"><span style="background-color: rgb(254,
              249, 242); font-family: 'Courier New'; font-size: 13px;
              line-height: 14.566666603088379px;"><b>whenever I do "</b></span><b style="font-family: 'Courier New'; font-size: small;
              line-height: 14.566666603088379px;">pcs
 resource show app-prim</b><b style="font-family: 'Courier New';
              font-size: 13px; line-height: 14.566666603088379px;">" , following is output:</b></p>
<p class="MsoNormal"><span style="background-color: rgb(254,
              249, 242); font-family: 'Courier New'; font-size: 13px;
              line-height: 14.566666603088379px;"><b><br>
</b></span></p>
<p class="MsoNormal"><b style="line-height:
              14.566666603088379px; font-family: 'Courier New';
              font-size: small;">Resource: app-prim</b></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>  </b></span></font> appmm<font size="2" face="Courier New"><span style="line-height:
                14.566666603088379px;"><b>_health_check_port: 65000</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>  </b></span></font> appmm<font size="2" face="Courier New"><span style="line-height:
                14.566666603088379px;"><b>_instance_name: </b></span></font><span style="background-color: rgb(254, 249, 242); font-family:
              'Courier New'; font-size: 13px; line-height:
              14.566666603088379px;">appgw</span></p>
<p class="MsoNormal"><font size="2" face="Courier New"><b><span style="background-color: rgb(254, 249, 242);
                  line-height: 14.566666603088379px;"></span></b></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>  op monitor interval=0s timeout=60s</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b><br>
</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>Can anyone please help ?</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b><br>
</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>my version of pcs is - Version: 1.1.8-7.el6-394e906</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b><br>
</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>on RHEL 6.4</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b><br>
</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b><br>
</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>Thanks in advance for any help.</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b><br>
</b></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="line-height: 14.566666603088379px;"><b>-Parveen</b></span></font></p>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>