<div dir="ltr">Hi<div>This is not work for me:</div><div><div>#   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q</div><div>Error performing operation: No such device or address</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais <span dir="ltr">&lt;<a href="mailto:jgdr@dalibo.com" target="_blank">jgdr@dalibo.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le Mon, 23 May 2016 09:28:41 +0300,<br>
<span class="">Andrey Rogovsky &lt;<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>&gt; a écrit :<br>
<br>
</span><span class="">&gt; I try crm_master, but it not works:<br>
&gt; # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME<br>
&gt; --attr-name master-pgsqld --get-value<br>
&gt; crm_master: invalid option -- &#39;t&#39;<br>
&gt; crm_master: unrecognized option &#39;--node-uname&#39;<br>
&gt; crm_master: unrecognized option &#39;--attr-name&#39;<br>
&gt; crm_master - A convenience wrapper for crm_attribute<br>
<br>
</span>I tried this with success:<br>
<br>
  crm_master -r pgsqld -N hanode1 -Q<br>
<br>
The resource you have to give is the resource (the one that is cloned), not the<br>
master resource.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt; 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais &lt;<a href="mailto:jgdr@dalibo.com">jgdr@dalibo.com</a>&gt;:<br>
&gt;<br>
&gt; &gt; Le Fri, 20 May 2016 15:31:16 +0300,<br>
&gt; &gt; Andrey Rogovsky &lt;<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>&gt; a écrit :<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi!<br>
&gt; &gt; &gt; I cant get attribute value:<br>
&gt; &gt; &gt; /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME<br>
&gt; &gt; --attr-name<br>
&gt; &gt; &gt; master-pgsqld --get-value<br>
&gt; &gt; &gt; Error performing operation: No such device or address<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; This value is present:<br>
&gt; &gt; &gt; crm_mon -A1  | grep master-pgsqld<br>
&gt; &gt; &gt;     + master-pgsqld                    : 1001<br>
&gt; &gt; &gt;     + master-pgsqld                    : 1000<br>
&gt; &gt; &gt;     + master-pgsqld                    : 1<br>
&gt; &gt;<br>
&gt; &gt; Use crm_master to get master scores easily.<br>
&gt; &gt;<br>
&gt; &gt; &gt; I use 1.1.15-rc1<br>
&gt; &gt; &gt; dpkg -l | grep pacemaker-cli-utils<br>
&gt; &gt; &gt; ii  pacemaker-cli-utils            1.1.15-rc1                    amd64<br>
&gt; &gt; &gt;    Command line interface utilities for Pacemaker<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Also non-integer values work file:<br>
&gt; &gt; &gt; /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME<br>
&gt; &gt; --attr-name<br>
&gt; &gt; &gt; pgsql-data-status --get-value<br>
&gt; &gt; &gt; STREAMING|ASYNC<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m very confused. It sounds you are mixing two different resource agent<br>
&gt; &gt; for<br>
&gt; &gt; PostgreSQL. I can recognize scores for you master resource set bu the<br>
&gt; &gt; pgsqlms<br>
&gt; &gt; RA (PAF project) and the data-status attribute from the pgsql RA...<br>
&gt; &gt;<br>
&gt; &gt; &gt; I thinking this patch<br>
&gt; &gt; &gt;<br>
&gt; &gt; <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>
&gt; &gt; &gt; is<br>
&gt; &gt; &gt; not apply in 1.1.15-rc1?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; How I can get integere value from node attribute?<br>
&gt; &gt;<br>
&gt; &gt; With the correct name for the given attribute.<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">--<br>
Jehan-Guillaume de Rorthais<br>
Dalibo<br>
</div></div></blockquote></div><br></div>