[Cluster-devel] [PATCH] dlm_stonith_{off, reboot} aliases for fence helper
Jacek Konieczny
jajcus at jajcus.net
Mon Nov 5 20:46:46 UTC 2012
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 as "bool off" I figured the
> opposite would be "on" ... if you're saying that the opposite of off is
> actually reboot, then I'll just make it 0.
If it is 'off' by mistake and not for any better reason, then I think
this will be the best – to make this '0' by default. I have verified the
Pacemaker sources twice – 'off=0' means 'reboot'.
Effort to make this configurable may be postponed until anybody is
interested in fencing by power-off.
Greets,
Jacek
More information about the Cluster-devel
mailing list