<div dir="ltr"><div>Stack: corosync</div><div>Current DC: b (version 1.1.12-cdf310a) - partition with quorum</div><div>Last updated: Mon May 23 12:43:57 2016<span class="" style="white-space:pre"> </span>Last change: Wed May 4 12:15:06 2016 via crm_attribute on c</div><div><br></div><div>3 nodes and 7 resources configured</div><div><br></div><div>Online: [ a b c ]</div><div><br></div><div> Resource Group: master</div><div> pgsql-master-ip<span class="" style="white-space:pre"> </span>(ocf::heartbeat:IPaddr2):<span class="" style="white-space:pre"> </span>Started a </div><div> Master/Slave Set: msPostgresql [pgsqld]</div><div> Masters: [ a ]</div><div> Slaves: [ b c ]</div><div> Clone Set: WebFarm [apache]</div><div> Started: [ a b c ]</div><div><br></div><div>Node Attributes:</div><div>* Node a:</div><div> + maintenance <span class="" style="white-space:pre"> </span>: off </div><div> + master-pgsqld <span class="" style="white-space:pre"> </span>: 1001 </div><div> + pgsql-data-status <span class="" style="white-space:pre"> </span>: STREAMING|ASYNC</div><div>* Node b:</div><div> + maintenance <span class="" style="white-space:pre"> </span>: off </div><div> + master-pgsqld <span class="" style="white-space:pre"> </span>: 1000 </div><div> + pgsql-data-status <span class="" style="white-space:pre"> </span>: LATEST </div><div>* Node c:</div><div> + maintenance <span class="" style="white-space:pre"> </span>: off </div><div> + master-pgsqld <span class="" style="white-space:pre"> </span>: 1 </div><div> + pgsql-data-status <span class="" style="white-space:pre"> </span>: STREAMING|ASYNC</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-23 12:35 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 12:31: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="">> This is not work<br>
> # crm_master -r master-pgsqld -N $HOSTNAME -Q<br>
> Error performing operation: No such device or address<br>
<br>
</span>as I wrote: you must use the resource name that is cloned by your master<br>
resource.<br>
<br>
Could you show us your configuration please?<br>
<div class="HOEnZb"><div class="h5"><br>
> 2016-05-23 11:46 GMT+03:00 Jehan-Guillaume de Rorthais <<a href="mailto:jgdr@dalibo.com">jgdr@dalibo.com</a>>:<br>
><br>
> > Le Mon, 23 May 2016 11:36:37 +0300,<br>
> > Andrey Rogovsky <<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>> a écrit :<br>
> ><br>
> > > 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>
> > This should be :<br>
> ><br>
> > crm_master -r pgsqld -N $HOSTNAME -Q<br>
> ><br>
> > (supposing as your resource name is "pgsqld")<br>
> ><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>
> > ><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 <<br>
> > <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<br>
> > 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>
> > > ><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>
> ><br>
<br>
<br>
<br>
--<br>
Jehan-Guillaume de Rorthais<br>
Dalibo<br>
</div></div></blockquote></div><br></div>