Hi Alan,
I had a question about the master location constraint you provided. Are
the prefixes on the rsc_location ("loc:") and rule ("rule:") ids just a
convention you used or are they required?

Doug

On Tue, 2007-04-17 at 12:24 -0600, Alan Robertson wrote:

> Lars Marowsky-Bree wrote:
> > On 2007-04-17T07:59:29, Serge Dewailly <[EMAIL PROTECTED]> wrote:
> > 
> >> Hi,
> >>
> >> You can choose the default primary node for drbd by fixing constraints. 
> >> For exemple
> >> <rsc_location id="drbd1_loc_nodeA" rsc="drbd1">
> >>     <rule id="pref_drbd1_loc_nodeA" score="600">
> >>          <expression attribute="#uname" operation="eq" value="nodeA" 
> >> id="pref_drbd1_loc_nodeA_attr"/>
> >>     </rule>
> >>     <rule id="pref_drbd1_loc_nodeB" score="800">
> >>          <expression attribute="#uname" operation="eq" value="nodeB" 
> >> id="pref_drbd1_loc_nodeB_attr"/>
> >>     </rule>
> >> </rsc_location>
> >>
> >> In this case, nodeB will be primary for resource drbd1. Is that what you 
> >> were looking for ?
> > 
> > Not like this, not when using the drbd OCF Resource Agent as a
> > master-slave one. In that case, you need to bind the rsc_location to the
> > role=Master as well.
> 
> I was missing this in the CIB idioms page.  I just added it.
> 
>       http://linux-ha.org/CIB/Idioms
>       http://linux-ha.org/CIB/Idioms/MasterConstraints
> 
> 
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to