[Linux-HA] Linux HA 2.0.7 Questions
Andrew Beekhof
beekhof at gmail.com
Fri Mar 2 01:24:53 MST 2007
On 3/2/07, Alan Robertson <alanr at unix.sh> wrote:
> Chumsri, Krisphan (KCHUMSRI) wrote:
> > I have a task to upgrade version of Linux 2.0.4 to Linux HA 2.0.7 with 2
> > nodes (A1, A2) in the cluster and perform the followings:
> >
> > - If one resource dies, all resources shall be migrated to the other
> > available node. If the other node is not available, it should keep
> > restarting on the previous node.
> >
> > I configure the following in the cib.xml file:
> >
> > - default_resource_failure_stickiness = 0
> > - default_resource_stickiness = -INFINITY (I set it up this way so that
> > when one resource dies, all resources migrate to the othe node).
> > - All resources in the same group
> >
> >
> > - Procedure: I start up HA on one node (A1) without starting HA on
> > the other node (A2) with the config above
> > Result: All resources are not started up.
> > Question: Do I have to change any parameters so that all resources
> > are started up with default_resource_stickiness set to -INFINITY?
> > - Procedure: So, I set the default_resource_stickiness = INFINITY
> > Result: All resoures are started up.
> > - Procedure: Then, I start up HA on the other node (A2) and set
> > default_resource_stickiness set to -INFINITY
> > using "cibadmin -M -o crm_config -x '<nvpair ...
> > value="-INFINITY">
> > Result: All resources are started up on A2.
> > Question: How do I update this value without migrating all
> > resources to A1?
> > - Procedure: I stop HA on A2
> > Result: All resources are stopped on A1
> > Question: How do I set it up so that when there is only one node
> > all resources continue running on that node?
>
> Now you know why you shouldn't set resource_stickiness to -INFINITY ;-)
>
> What setting it to -INFINITY means is that EVERY time any little thing
> changes, then every resource MUST move. If it can't move, then it can't
> run.
nod, you probably want INFINITY instead (no minus)
>
> You probably want to set some co-location dependencies so that the
> resources prefer to run on the same node. Then if any moves, they all move.
>
>
> --
> Alan Robertson <alanr at unix.sh>
>
> "Openness is the foundation and preservative of friendship... Let me
> claim from you at all times your undisguised opinions." - William
> Wilberforce
> _______________________________________________
> 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