[Pacemaker] APC Master Stonith

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Jan 20 05:00:37 EST 2010


Hi,

On Tue, Jan 19, 2010 at 04:37:05PM -0500, 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.

It would be good to hear why it didn't work and what did you do
to make it work. Incidentally, there is a bugzilla with a patch
which should help handling certain device releases, but for lack
of devices to try it out, it never got applied. See
http://developerbugs.linux-foundation.org/show_bug.cgi?id=1891

Thanks,

Dejan

> 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.
> 
> -Errol
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list