Re: [Cluster-devel] [PATCH] dlm_stonith_{off, reboot} aliases for fence helper

2012-11-05 Thread Jacek Konieczny
On Mon, Nov 05, 2012 at 02:30:33PM -0500, David Teigland wrote: > On Mon, Nov 05, 2012 at 07:05:22PM +0100, Jacek Konieczny wrote: > > - rv = stonith_api_kick_helper(nodeid, 300, 1); > > + rv = stonith_api_kick_helper(nodeid, 300, turn_off); > > I'd like it to be "reboot", but seeing the arg a

Re: [Cluster-devel] [PATCH] dlm_stonith_{off, reboot} aliases for fence helper

2012-11-05 Thread David Teigland
On Mon, Nov 05, 2012 at 07:05:22PM +0100, Jacek Konieczny wrote: > - rv = stonith_api_kick_helper(nodeid, 300, 1); > + rv = stonith_api_kick_helper(nodeid, 300, turn_off); I'd like it to be "reboot", but seeing the arg as "bool off" I figured the opposite would be "on" ... if you're saying

[Cluster-devel] [PATCH] dlm_stonith_{off, reboot} aliases for fence helper

2012-11-05 Thread Jacek Konieczny
Not so pretty hack to allow rebooting instead of halting the node fenced by dlm_stonith. 'dlm_stonith_reboot' can be now used instead of 'dlm_stonith' in the dlm.conf file to request node reboot. 'dlm_stonith_off' alias is also provided to explicitly request power-off. Signed-off-by: Jacek Konie