Andrew Beekhof wrote:
On 3/9/06, [email protected]
<[email protected]> wrote:

linux-ha CVS committal

Author  : zhenh
Host    :
Project : linux-ha
Module  : cts

Dir     : linux-ha/cts


Modified Files:
       CTSlab.py.in


Log Message:
make lrmadmin return everytime to avoid block


Can you explain this?  Under what circumstances is it blocking?

Ok.
lrmadmin {-E|--execute} <rscid> <operator> <timeout> <interval> 
<target_rc|EVERYTIME|CHANGED> [<operator_parameters_list>]

The <target_rc|EVERYTIME|CHANGED> parameter tell lrmd when lrmd should report 
the result of an operation.
When the parameter is 0, that means only the operation's result is 0, lrmd 
reports the result to the client.
So if the operation failed, result is not 0, lrmd would not report. so the 
client (lrmadmin) will wait forever.
If the parameter is EVERYTIME, whatever the result, the client can get it.



===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/cts/CTSlab.py.in,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -3 -r1.50 -r1.51
--- CTSlab.py.in        27 Feb 2006 09:19:42 -0000      1.50
+++ CTSlab.py.in        9 Mar 2006 01:30:45 -0000       1.51
@@ -75,8 +75,8 @@
        self.poweroff_cmd_pat= '/usr/lib/heartbeat/stonithdtest/apitest 3 %s 
4000 0'

        self.lrmd_add_pat    = '/usr/lib/heartbeat/lrmadmin -A %s stonith ' + 
sttype + ' NULL hostlist=%s'
-        self.lrmd_start_pat  = '/usr/lib/heartbeat/lrmadmin -E %s start 0 0 0'
-        self.lrmd_stop_pat   = '/usr/lib/heartbeat/lrmadmin -E %s stop 0 0 0'
+        self.lrmd_start_pat  = '/usr/lib/heartbeat/lrmadmin -E %s start 0 0 
EVERYTIME'
+        self.lrmd_stop_pat   = '/usr/lib/heartbeat/lrmadmin -E %s stop 0 0 
EVERYTIME'
        self.lrmd_del_pat    = '/usr/lib/heartbeat/lrmadmin -D %s'

        self.rsc_id          = 'my_stonithd_id'


_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


--
Best Regards,
Huang Zhen
Linux Technology Center
IBM China Development Lab, Beijing
Telno: (8610)82782244-2845
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to