[Linux-HA] Simple Active-Standby failover configuration.

Andrew Beekhof beekhof at gmail.com
Tue Oct 24 09:20:13 MDT 2006


On 10/21/06, Peter Wong <peter.wong at mobidia.com> wrote:
> Greetings:
>
> Yes, I was following the example at
> > http://www.linux-ha.org/v2/faq/forced_failover
> when I created the original cib.xml file that I sent out a couple
> of days ago.
>
> I have specified in the <crm_config> section:
> ---
> <crm_config>
>   <attributes>
> ...
> <nvpair id="cib-bootstrap-options-default_resource_failure_stickiness"
> name="default_resource_failure_stickiness" value="-INFINITY"/>
> ---
>
> I thought by setting the "default_resource_failure_stickiness"
> to "-INFINITY", the resource will be failed over right away
> as soon as the first failure occur.
>
> But this didn't happen and the failure cause the resource to
> restart on the same node.

Did the failure count change?
Are you running 2.0.7 or a later version from version control?

>
> Then I try modifying the cib.xml to include the following line:
> ---
> <resources>
>        <primitive class="ocf" id="mag_resource" provider="mag" type="mag"
> resource_stickiness="0" resource_failure_stickiness="-INFINITY">
> ---
>
> But setting "resource_failure_stickiness" to "-INFINITY" didn't
> change the situation. The failure cause the resource to restart
> but just on the local node.
>
> May be the Resource Agent is not doing the right thing?
>
> Here are more questions:
> ---
> 1. When Heartbeat first starts, is it true that it'll invoke the
>    "monitor" action first?
>
> 2. In the implementation of the RA, when the "monitor" action is called
>    should it distinguish the instance between when Heartbeat is first
>    started and the regular periodically called of the "monitor" action?
>
> 3. In the /usr/lib/ocf/resource.d directory, which example RA is a
>    good example to follow if I just want to do a simple Active-Standby
>    immediately failover setup?
> ---
>
> Thanks!
>
> Peter.
>
> > -----Original Message-----
> > From: linux-ha-bounces at lists.linux-ha.org
> > [mailto:linux-ha-bounces at lists.linux-ha.org] On Behalf Of
> > Andrew Beekhof
> > Sent: Friday, October 20, 2006 12:21 AM
> > To: General Linux-HA mailing list
> > Subject: Re: RE: [Linux-HA] Simple Active-Standby failover
> > configuration.
> >
> > On 10/19/06, Peter Wong <peter.wong at mobidia.com> wrote:
> > > Greetings:
> > >
> > > Thanks for replying.
> > >
> > > > you need the failure_stickiness attribute
> > > Where exactly do I specify this attribute?
> > > What value do I need to use (like INFINITY or -INFINITY)?
> > >
> > > I would really appreciate if you can give me an
> > > exact example in XML.
> >
> > this is probably the best page to look at:
> >
> > http://www.linux-ha.org/v2/faq/forced_failover
> >
> > its set exactly the same way as the other type of stickiness
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA at lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>


More information about the Linux-HA mailing list