Andrei Borzenkov <arvidj...@gmail.com> writes: > As far as I can tell, pacemaker acts on failcount attributes qualified > by operation name, while crm sets/queries unqualified attribute; I do > not see any syntax to set fail-count for specific operation in crmsh.
crmsh uses crm_attribute to get the failcount. It could be that this usage has stopped working as of 1.1.17.. Cheers, Kristoffer > > ha1:~ # rpm -q crmsh > crmsh-4.0.0+git.1511604050.816cb0f5-1.1.noarch > ha1:~ # crm_mon -1rf > Stack: corosync > Current DC: ha2 (version 1.1.17-3.3-36d2962a8) - partition with quorum > Last updated: Sun Dec 24 10:55:54 2017 > Last change: Sun Dec 24 10:55:47 2017 by hacluster via crmd on ha2 > > 2 nodes configured > 4 resources configured > > Online: [ ha1 ha2 ] > > Full list of resources: > > stonith-sbd (stonith:external/sbd): Started ha1 > rsc_dummy_1 (ocf::pacemaker:Dummy): Started ha2 > Master/Slave Set: ms_Stateful_1 [rsc_Stateful_1] > Masters: [ ha1 ] > Slaves: [ ha2 ] > > Migration Summary: > * Node ha2: > * Node ha1: > ha1:~ # echo xxx > /run/Stateful-rsc_Stateful_1.state > ha1:~ # crm_failcount -G -r rsc_Stateful_1 > scope=status name=fail-count-rsc_Stateful_1 value=1 > ha1:~ # crm resource failcount rsc_Stateful_1 show ha1 > scope=status name=fail-count-rsc_Stateful_1 value=0 > ha1:~ # crm resource failcount rsc_Stateful_1 set ha1 4 > ha1:~ # crm_failcount -G -r rsc_Stateful_1 > scope=status name=fail-count-rsc_Stateful_1 value=1 > ha1:~ # crm resource failcount rsc_Stateful_1 show ha1 > scope=status name=fail-count-rsc_Stateful_1 value=4 > ha1:~ # cibadmin -Q | grep fail-count > <nvpair > id="status-1084752129-fail-count-rsc_Stateful_1.monitor_10000" > name="fail-count-rsc_Stateful_1#monitor_10000" value="1"/> > <nvpair id="status-1084752129-fail-count-rsc_Stateful_1" > name="fail-count-rsc_Stateful_1" value="4"/> > ha1:~ # > > _______________________________________________ > Users mailing list: Users@clusterlabs.org > http://lists.clusterlabs.org/mailman/listinfo/users > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: http://bugs.clusterlabs.org > -- // Kristoffer Grönlund // kgronl...@suse.com _______________________________________________ Users mailing list: Users@clusterlabs.org http://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org