<div dir="ltr"><pre>Hello everyone,<br></pre><pre>Is there way to initiate reload operation call of master instance of multi-state resource agent?<br><br>I have an ocf multi-state resource agent for a daemon service and I added reload op into this resource agent:<br></pre><pre>* two parameters of resource agent:<br></pre><pre> <parameter name="state_file" unique="1"><br> ...<br> </parameter><br> <parameter name="init_svc_reload" unique="0"><br> ...<br> </parameter><br></pre><pre>* reload op declaration in meta-data:<br></pre><pre style="margin-left:40px"><action name="reload" timeout="5" /><br></pre><pre>* reload op processing:<br></pre><pre style="margin-left:40px">case "$1" in<br><br> monitor) svc_monitor<br> exit $?;;<br> ...<br> reload) svc_reload<br> exit $?;;<br> ...<br></pre><pre>When I change <i>init_svc_reload </i>parameter to a different value, reload operation is executed only for slave instance of resource agent.<br>The only impact on master instance is early execution of monitor operation, but I'd rather prefer reload execution for this instance.<br></pre><pre>[root@vm1 ~]# rpm -qi pacemaker<br>Name : pacemaker Relocations: (not relocatable)<br>Version : 1.1.12 Vendor: Red Hat, Inc.<br>Release : 4.el6 Build Date: Thu 03 Jul 2014 04:05:56 PM MSK<br>...<br><br>[root@vm1 ~]# rpm -qi corosync<br>Name : corosync Relocations: (not relocatable)<br>Version : 1.4.7 Vendor: Red Hat, Inc.<br>Release : 2.el6 Build Date: Mon 02 Mar 2015 08:21:24 PM MSK<br>...<br><br>[root@pershing-vm5 ~]# rpm -qi resource-agents<br>Name : resource-agents Relocations: (not relocatable)<br>Version : 3.9.5 Vendor: Red Hat, Inc.<br>Release : 12.el6_6.4 Build Date: Thu 12 Feb 2015 01:13:26 AM MSK<br>...<br><br>[root@vm1 ~]# lsb_release -d<br>Description: Red Hat Enterprise Linux Server release 6.6 (Santiago)<br><br>---<br></pre><div><div class="gmail_signature"><div dir="ltr"><span>Best regards, Mike Lychkov.</span><br></div></div></div>
</div>