[Pacemaker] APC Master Stonith

Dominik Klein dk at in-telegence.net
Wed Jan 20 01:56:08 EST 2010


Errol Neal wrote:
> On Tue, Jan 19, 2010 04:19  PM, Sander van Vugt <mail at sandervanvugt.nl> wrote:
>> Hi,
>>
>> I hope someone has configured the APC Master Stonith resource (which you
>> would use to have pacemaker to a device like the APC switched rack PDU),
>> as I have a - probably extremely stupid - conceptual question about it. 
>>
>> When I look at the options the resource has, it allows me to enter
>> username, password and IP address. What I would also expect, is to give
>> it something like a name of the node that is should do STONITH on, as
>> well as the port on the device that it should power cycle. Am I missing
>> something? Or do I have to specify this information as additional
>> attributes? And if so, what exactly would be the syntax?
>>
> What type of device are you trying to get the plugin to work with?
> I'm using APC rack PDUs and this plugin did not work by default for me. I had to hack it to get it work for me, but
> it works exactly how I wanted it to. By the way, I'm not using the snmp - i'm using telnet.
> 
> So here is how mine's is configured:
> 
> primitive stonith-apcmaster-axigen2 stonith:apcmaster \
>         params ipaddr="x.x.x.x login="axigen2" password="x.x.x.x" \
>         op monitor interval="120s" timeout="20s" \
>         op startup interval="0" timeout="60s" \
>         
> Then I have a constraint that prohibits it a node from committing suicide.
> 
> I'll describe what I did to get it going in my environment. 
> 
> I created a user account for each node on it's respective PDU and only allowed it to control it's own power.
> 
> As I mentioned, I hacked the plugin's source code and recompiled. My changes  #1 to make it work and #2, to make it work simple and plain. Login and shut-er down. I can provide you my changes if you think it will work for you.

I'd also be interested in the changes.

The apcmastersnmp plugin does work for me with APC7920 though.

Thanks,
Dominik




More information about the Pacemaker mailing list