<div dir="ltr"><div dir="ltr"><div dir="ltr">Well, I remain puzzled. I added a statement to the end of my script in order to capture its return value. Much to my surprise, when I create the associated resource (as described in my previous post)  myapp-script gets invoked four times in node one (where the resource is created) and two in node two. Just as intriguing, the return value in one is, for each instance<div><br></div><div>OCF_NOT_RUNNING</div><div>OCF_SUCCESS<br></div><div>OCF_SUCCESS</div><div>OCF_NOT_RUNNING</div><div><br></div><div>while in node two I get</div><div><br></div><div>OCF_NOT_RUNNING</div><div>OCF_SUCCESS</div><div><br></div><div>And now things work, as can be seen in the output from pcs status:</div><div><br></div><div><div>Cluster name: MyCluster<br></div><div>Stack: corosync</div><div>Current DC: two (version 1.1.19-8.el7_6.4-c3c624ea3d) - partition with quorum</div><div>Last updated: Mon Apr 15 15:21:08 2019</div><div>Last change: Mon Apr 15 15:20:47 2019 by root via cibadmin on one</div><div><br></div><div>2 nodes configured</div><div>1 resource configured</div><div><br></div><div>Online: [ one two ]</div><div><br></div><div>Full list of resources:</div><div><br></div><div> ClusterMyApp<span style="white-space:pre">  </span>(ocf::myapp:myapp-script):<span style="white-space:pre">   </span>Started one</div><div><br></div><div>Daemon Status:</div><div>  corosync: active/disabled</div><div>  pacemaker: active/disabled</div><div>  pcsd: active/enabled</div></div><div><br></div><div><br></div><div>Can anybody clarify what is going on? And how to guarantee that, assuming that my app starts correctly, the creation resource will predictably succeed?</div><div><br></div></div></div></div>