[Linux-HA] how to config a 3+1 cluster .

huang mingyou therods at gmail.com
Fri Aug 19 03:20:30 MDT 2005


hello,
   now I have another  trouble. in our cluster the ip resources is not
the private ip ,and the default route will depend on it. if the ip is
release,the route will release.have some  resources script to do
route?  in our test cluster, I add one command in the IPaddr2 shell
script,but I think this is not a good idea.
   
2005/8/19, huang mingyou <therods at gmail.com>:
> o,I forget use rule. tank you!
> 
> 2005/8/19, Andrew Beekhof (GMail) <beekhof at gmail.com>:
> >
> > On Aug 19, 2005, at 10:38 AM, huang mingyou wrote:
> >
> > > yes,I want set like that what are you say.the m7 node 's hardware so
> > > stable ,so we want use it do a backup.
> > > if config the cib.xml  from this table .I will write 4X3 rsc_location,
> > > have another good method and write little rule .because I want make a
> > > 4+2 nodes cluster or bigger ,I will write 4x6 rsc_location.
> > >
> > >
> > >                    m2              m3             m4            m7
> > >  ip_1        200       -INFINITY   -INFINITY   100
> > >  ip_2  -INFINITY       200         -INFINITY   100
> > >  ip_3  -INFINITY  -INFINITY       200          100
> >
> > Incorrect.
> > You need 3 rsc_location constraints (one per resource) with at most 3
> > rules.
> > The rules involving m7 could also be ignored leaving 3 constraints
> > with 2 rules each.
> >
> > Alas, that is the price to be paid... more nodes == more things to be
> > configured/specified.
> >
> >
> > You may also want to look at disabling the symmetric_cluster option
> > as only a subset of nodes are allowed to run each resource.
> >
> > In such a scenario, you would need to specify where you CAN run the
> > resource (instead of where you CANNOT) - this would seem to match
> > your needs better and should make your life easier.
> >
> > >
> > >
> > >
> > >
> > > 2005/8/19, Andrew Beekhof (GMail) <beekhof at gmail.com>:
> > >
> > >>
> > >> On Aug 19, 2005, at 8:50 AM, huang mingyou wrote:
> > >>
> > >>
> > >>> hello,list.
> > >>>        I want config a 3+1 structure cluster use heartbeat 2.0 .3
> > >>> nodes work and 1 nodes is backup.
> > >>> I have make this cluster ,the nodes is m2,m3,m5 and m7(backup).the
> > >>> resources run this cluster is
> > >>> 3 ip.them is vip1,vip2,vip3.
> > >>>        my cib.xml is Conversion from this content.
> > >>> ------------------------------------------------------------
> > >>> m2  192.168.0.1/24/eth1
> > >>> m3  192.168.0.2/24/eth2
> > >>> m4  192.168.0.3/24/eth3
> > >>> -------------------------------------------------------------
> > >>>
> > >>>      I want let the vip  on the work node only one,  but no limit on
> > >>> the backup node(m7) so , I change the cib.xml 's location like this.
> > >>> -------------------------------------------------------------
> > >>> <constraints>
> > >>>                         <rsc_location id="rsc_location_IPaddr_1"
> > >>> rsc="IPaddr_1">
> > >>>                                 <rule
> > >>> id="prefered_location_IPaddr_1"
> > >>> score="-100" boolean_op="and">
> > >>>                                         <expression
> > >>> attribute="#uname"
> > >>> operation="ne" value="m2"/>
> > >>>                                         <expression
> > >>> attribute="#uname"
> > >>> operation="ne" value="m7"/>
> > >>>                                 </rule>
> > >>>                         </rsc_location>
> > >>>                         <rsc_location id="rsc_location_IPaddr_2"
> > >>> rsc="IPaddr_2">
> > >>>                                 <rule
> > >>> id="prefered_location_IPaddr_2"
> > >>> score="-100" boolean_op="and">
> > >>>                                         <expression
> > >>> attribute="#uname"
> > >>> operation="ne" value="m3"/>
> > >>>                                         <expression
> > >>> attribute="#uname"
> > >>> operation="ne" value="m7"/>
> > >>>                                 </rule>
> > >>>                         </rsc_location>
> > >>>                         <rsc_location id="rsc_location_IPaddr_3"
> > >>> rsc="IPaddr_3">
> > >>>                                 <rule
> > >>> id="prefered_location_IPaddr_3"
> > >>> score="-100" boolean_op="and">
> > >>>                                         <expression
> > >>> attribute="#uname"
> > >>> operation="ne" value="m5"/>
> > >>>                                         <expression
> > >>> attribute="#uname"
> > >>> operation="ne" value="m7"/>
> > >>>                                 </rule>
> > >>>                         </rsc_location>
> > >>>                 </constraints>
> > >>> -----------------------------------------------------------------
> > >>>
> > >>> But ,When I start the cluster,the vip1 whill run on m7, Why? and
> > >>> will
> > >>> how to config the cib.xml let the cluster run my way.
> > >>>                                                         hmy
> > >>>
> > >>
> > >> you may want to try giving extra preference to you're "primary" nodes
> > >> - otherwise they will be considered equal.
> > >>
> > >> if i understand you correctly, you want to set up the weights/scores
> > >> something like this:
> > >>
> > >>                   m2              m3             m4            m7
> > >> ip_1        200       -INFINITY   -INFINITY   100
> > >> ip_2  -INFINITY       200         -INFINITY   100
> > >> ip_3  -INFINITY  -INFINITY       200          100
> > >>
> > >> though i must ask, if they can all run together on m7, why can they
> > >> not run together on any other node?
> > >>
> > >>
> > >>> _______________________________________________
> > >>> 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
> > >>>
> > >>>
> > >>
> > >> --
> > >> Andrew Beekhof
> > >>
> > >> "Ooo Ahhh, Glenn McRath" - TISM
> > >>
> > >> _______________________________________________
> > >> 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
> > >>
> > >>
> > >
> > >
> > > --
> > > -------------------------------------------
> > > hmy
> > > _______________________________________________
> > > 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
> > >
> >
> > --
> > Andrew Beekhof
> >
> > "If it weren't for my horse, I wouldn't have spent that year in
> > college" - Unknown, courtesy of Lewis Black
> >
> > _______________________________________________
> > 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
> >
> 
> 
> --
> -------------------------------------------
> hmy
> 


-- 
-------------------------------------------
hmy


More information about the Linux-HA mailing list