[Pacemaker] APC Master Stonith
Sander van Vugt
mail at sandervanvugt.nl
Wed Jan 20 18:52:30 UTC 2010
Hi,
On Wed, 2010-01-20 at 07:56 +0100, Dominik Klein wrote:
> 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'm interested in knowing how you configured this constraint. As I
understand it now, there should be one primitive only in the cluster to
address the PDU, which would be used to perform STONITH on all nodes
that need one. You probably used a location constraint, but how exactly?
> >
> > 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
>
Dominic, I'd be interested to know how you configured the apcmastersnmp
plugin. Would you mind sending me your configuration?
Thanks.
Sander
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list