[ClusterLabs] Antw: Struggling to get "crm_mon -E ... " to do anything
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Mon May 11 08:33:07 CEST 2015
>>> Riley <riley at on.net.nz> schrieb am 11.05.2015 um 00:52 in Nachricht
<554FE120.70408 at on.net.nz>:
> I have set up a virtual test environment of three nodes running CentOS
> 6.6 and am having trouble getting a "crm_mon -E " script called *at all*
> when anything changes in the cluster (resource killed, node killed,
> resource moved, etc.).
Never heard of that option, but when considering the documentation, I'm not much surprised if it doesn't work as one might expect:
-E, --external-agent=value
A program to run when resource operations take place.
This leaves a LOT of room for expectations. ;-)
What should be a typical use case? Will the program have any parameters?
Regards,
Ulrich
>
> After looking at the sources and adding in some debugging it would
> appear that the routine tools/crm_mon.c/crm_diff_update() fails to
> identify any of the xml passing through it using xpath_search(msg,"//"
> F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED "//" XML_LRM_TAG_RSC_OP),
> which I believe should identify
> "//cib_update_result//diff-added//lrm_rsc_op".
>
> I have never seen "diff-added" in the xml, the only things that I see
> which seem to be close are messages
> containing"<cib_update_result>...<diff format="2">...<lrm_rsc_op ...>".
>
> The basic install was made using the instructions from
> http://clusterlabs.org/quickstart-redhat-6.html, but with three nodes I
> have enabled quorum. Fencing is not enabled, could this be the cause of
> my problems?
>
> pacemaker.i686 1.1.12-4.el6
> cman.i686 3.0.12.1-68.el6
> corosync.i686 1.4.7-1.el6
> pcs.i686 0.9.123-9.0.1.el6.centos
> ccs.i686 0.16.2-75.el6_6.1
> resource-agents.i686 3.9.5-12.el6_6.4
>
> Many thanks for any pointers you can give me.
>
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://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
More information about the Users
mailing list