<div dir="ltr">This is not work<div><div>#   crm_master -r master-pgsqld -N $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:46 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 Mon, 23 May 2016 11:36:37 +0300,<br>
<span class="">Andrey Rogovsky <<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>> a écrit :<br>
<br>
</span><span class="">> Hi<br>
> This is not work for me:<br>
> #   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q<br>
> Error performing operation: No such device or address<br>
<br>
</span>This should be :<br>
<br>
  crm_master -r pgsqld -N $HOSTNAME -Q<br>
<br>
(supposing as your resource name is "pgsqld")<br>
<div class="HOEnZb"><div class="h5"><br>
> 2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais <<a href="mailto:jgdr@dalibo.com">jgdr@dalibo.com</a>>:<br>
><br>
> > Le Mon, 23 May 2016 09:28:41 +0300,<br>
> > Andrey Rogovsky <<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>> a écrit :<br>
> ><br>
> > > I try crm_master, but it not works:<br>
> > > # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME<br>
> > > --attr-name master-pgsqld --get-value<br>
> > > crm_master: invalid option -- 't'<br>
> > > crm_master: unrecognized option '--node-uname'<br>
> > > crm_master: unrecognized option '--attr-name'<br>
> > > crm_master - A convenience wrapper for crm_attribute<br>
> ><br>
> > 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),<br>
> > not the<br>
> > master resource.<br>
> ><br>
> ><br>
> > > 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais <<a href="mailto:jgdr@dalibo.com">jgdr@dalibo.com</a><br>
> > >:<br>
> > ><br>
> > > > 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>
> > > ><br>
> > > > > Hi!<br>
> > > > > I cant get attribute value:<br>
> > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME<br>
> > > > --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>
> > > > Use crm_master to get master scores easily.<br>
> > > ><br>
> > > > > I use 1.1.15-rc1<br>
> > > > > dpkg -l | grep pacemaker-cli-utils<br>
> > > > > ii  pacemaker-cli-utils            1.1.15-rc1<br>
> > 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<br>
> > > > --attr-name<br>
> > > > > pgsql-data-status --get-value<br>
> > > > > STREAMING|ASYNC<br>
> > > ><br>
> > > > I'm very confused. It sounds you are mixing two different resource<br>
> > agent<br>
> > > > for<br>
> > > > PostgreSQL. I can recognize scores for you master resource set bu the<br>
> > > > pgsqlms<br>
> > > > RA (PAF project) and the data-status attribute from the pgsql RA...<br>
> > > ><br>
> > > > > I thinking this patch<br>
> > > > ><br>
> > > ><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>
> > > > With the correct name for the given attribute.<br>
> ><br>
> > --<br>
> > Jehan-Guillaume de Rorthais<br>
> > Dalibo<br>
> ><br>
<br>
<br>
<br>
--<br>
Jehan-Guillaume de Rorthais<br>
Dalibo<br>
</div></div></blockquote></div><br></div>