<div dir="ltr">Hi!<div>I try crm_master, but it not works:</div><div># LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME --attr-name master-pgsqld --get-value</div><div>crm_master: invalid option -- 't'</div><div>crm_master: unrecognized option '--node-uname'</div><div>crm_master: unrecognized option '--attr-name'</div><div>crm_master - A convenience wrapper for crm_attribute</div><div><br></div><div>I use PAF agent oly, and want get attribute <span style="font-size:medium;line-height:25.6px">master-pgsqld</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais <span dir="ltr"><<a href="mailto:jgdr@dalibo.com" target="_blank">jgdr@dalibo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le Fri, 20 May 2016 15:31:16 +0300,<br>
Andrey Rogovsky <<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>> a écrit :<br>
<span class=""><br>
> Hi!<br>
> I cant get attribute value:<br>
> /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME --attr-name<br>
> master-pgsqld --get-value<br>
> Error performing operation: No such device or address<br>
><br>
> This value is present:<br>
> crm_mon -A1 | grep master-pgsqld<br>
> + master-pgsqld : 1001<br>
> + master-pgsqld : 1000<br>
> + master-pgsqld : 1<br>
<br>
</span>Use crm_master to get master scores easily.<br>
<span class=""><br>
> I use 1.1.15-rc1<br>
> dpkg -l | grep pacemaker-cli-utils<br>
> ii pacemaker-cli-utils 1.1.15-rc1 amd64<br>
> Command line interface utilities for Pacemaker<br>
><br>
> Also non-integer values work file:<br>
> /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME --attr-name<br>
> pgsql-data-status --get-value<br>
> STREAMING|ASYNC<br>
<br>
</span>I'm very confused. It sounds you are mixing two different resource agent for<br>
PostgreSQL. I can recognize scores for you master resource set bu the pgsqlms<br>
RA (PAF project) and the data-status attribute from the pgsql RA...<br>
<span class=""><br>
> I thinking this patch<br>
> <a href="https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269" rel="noreferrer" target="_blank">https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269</a><br>
> is<br>
> not apply in 1.1.15-rc1?<br>
><br>
> How I can get integere value from node attribute?<br>
<br>
</span>With the correct name for the given attribute.<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Jehan-Guillaume de Rorthais<br>
Dalibo<br>
</font></span></blockquote></div><br></div>