[Pacemaker] pcs not able to display or set resource meta attributes ?

David Vossel dvossel at redhat.com
Tue Feb 26 17:27:43 UTC 2013



----- Original Message -----
> From: "Ron Kerry" <rkerry at sgi.com>
> To: pacemaker at oss.clusterlabs.org
> Sent: Monday, February 25, 2013 7:41:35 PM
> Subject: [Pacemaker] pcs not able to display or set resource meta attributes	?
> 
> I have much more familiarity with the crmsh so I apologize if I am
> just not seeing something that is
> obvious. I am currently working from a RHEL 6.4 system with the
> accompanying HA addon including
> pacemaker and pcs from that addon.
>     pcs-0.9.26-10.el6.noarch
> 
> I can find no way to display or configure meta-attributes for
> resources. This includes things like
> target-role, resource-stickiness and migration-threshold amongst
> other meta-attributes. Is there a
> way to do this that I just have not found yet?

I was just having this discussion with the pcs maintainer earlier today.  You aren't overlooking anything, the pcs version you are using lacks that functionality. This will be resolved in the upstream pcs repo in the next day or so.

Here are some work arounds using other tools shipped with pacemaker.

Get meta attribute
# crm_resource -m -r RSC_ID -g target-role
Started

Set meta attribute
# crm resource -m -r RSC_ID -p target-role -v Stopped

Delete meta attribute
#crm resource -m -r RSC_ID -d target-role

See all meta-attributes associated with a resource.  This will display the xml config definition for the resource which contains the meta-attribute section.
# crm_resource -q -r RSC_ID

I hope this helps. pcs will be update shortly.

-- Vossel



> --
> 
> Ron Kerry
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 




More information about the Pacemaker mailing list