[Pacemaker] Resource Status from the CIB

David Vossel dvossel at redhat.com
Mon Jan 20 14:57:28 UTC 2014


----- Original Message -----
> From: "Michael Schwartzkopff" <ms at sys4.de>
> To: pacemaker at oss.clusterlabs.org
> Sent: Monday, January 20, 2014 8:23:25 AM
> Subject: [Pacemaker] Resource Status from the CIB
> 
> Hi,
> 
> is it possible to read the status of a resource from the status part of the
> CIB?
> 
> I can see a attribute rc-code="0" in lrm_rsc_op_<resourceID...>
> on an active node and direct

yes, you can read the status if you want. It would be better to use crm_mon to interpret the status for you though.

Here's some info on the status section.
http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#_operation_history

-- Vossel

> lrm_rsc_op -> rc-code="7"
> on a node, where the where the resource is stopped.
> 
> Is this the correct way to check it? Is there any documentation?
> Thanks.
> 
> 
> 
> Mit freundlichen Grüßen,
> 
> Michael Schwartzkopff
> 
> --
> [*] sys4 AG
> 
> http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
> Franziskanerstraße 15, 81669 München
> 
> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
> Vorstand: Patrick Ben Koetter, Marc Schiffbauer
> Aufsichtsratsvorsitzender: Florian Kirstein
> _______________________________________________
> 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