[Linux-HA] HA 2.1.0 crm_failcount does not work as expected
Andrew Beekhof
beekhof at gmail.com
Wed Jul 11 07:04:01 MDT 2007
On 7/11/07, matilda matilda <matilda at grandel.de> wrote:
> Hi folks,
>
> sorry for sending so much questions.
> You see I'm testing wildly with heartbeat 2.1.0 and I struggle
> at almost every step. As discusses with the announcement of
> the www.linux-ha.org/Education it's very hard to help myself
> because I really don't find the informations needed.
>
> So probably all my question can be put to a FAQ.
>
> Now my problem:
> crm_resources -L shows the folowing:
> ----------------------------------------------------------------
> db02:~ # crm_resource -L
> crm_resource[22266]: 2007/07/11_14:26:05 info: Invoked: crm_resource -L
> Clone Set: cs_ocfs-01
> cs_ocfs-01-clone:0 (heartbeat::ocf:Filesystem)
> cs_ocfs-01-clone:1 (heartbeat::ocf:Filesystem)
> Clone Set: cs_stonith
> cs_stonith-clone:0 (stonith:external/ssh)
> cs_stonith-clone:1 (stonith:external/ssh)
> ----------------------------------------------------------------
>
> Meanwhile I kicked the second clone (cs_ocfs-01-clone:1) of
> cloneset 'cs_ocfs-01' for two times away to see if monitoring will
> bring it up again. Yes, monitoring is bringing it up. Fine.
> I expected to see the failcount on that clone with crm_failcount.
> But I tried several combinations of ressource naming for that
> command to always get somthing like:
> ----------------------------------------------------------------
> db02:~ # crm_failcount -r 'cs_ocfs-01-clone:1'
> crm_failcount[23954]: 2007/07/11_14:36:27 info: Invoked: crm_failcount -r cs_ocfs-01-clone:1
> crm_failcount[23954]: 2007/07/11_14:36:27 ERROR: crm_abort: main: Triggered non-fatal assert at crm_attribute.c:359 : attr_value != NULL
> ----------------------------------------------------------------
>
> But if I look at the current cib with cibadmin -Q I find something
> like that:
> ----------------------------------------------------------------
> <nvpair id="status-5e316922-cd02-4b32-a669-0640f80e0188-fail-count-cs_ocfs-01-clone:1" name="fail-count-cs_ocfs-01-clone
> :1" value="2"/>
> ----------------------------------------------------------------
>
> So, how do I get this value? Have I named the elements of the clonset
> the wrong way? Is crm_failcount the official api to that value?
first of all, run: crm_failcount --help
then run: crm_failcount -r 'cs_ocfs-01-clone:1' -G
>
> Thank you all, at least for reading.
>
> Best regards
> Andreas Mock
>
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
More information about the Linux-HA
mailing list