[Pacemaker] Re: Understanding rules: location, colocation, order. Using with Master/Slave

Andrew Beekhof beekhof at gmail.com
Tue Oct 28 08:59:21 UTC 2008


On Oct 27, 2008, at 7:58 PM, Serge Dubrouski wrote:

> On Mon, Oct 27, 2008 at 12:43 PM, Adrian Chapela
> <achapela.rexistros at gmail.com> wrote:
>> Serge Dubrouski escribió:
>>>
>>> Something like this:
>>>
>>>     <rsc_order id="drbd0_before_myGroup" first="ms-drbd0"
>>> then="myGroup" then-action="start" first-action="promote"/>
>>>     <rsc_colocation id="myGroup_on_drbd0" rsc="myGroup"
>>> with-rsc="ms-drbd0" with-rsc-role="Master" score="INFINITY"/>
>>>     <rsc_location id="primNode" rsc="myGroup">
>>>       <rule id="prefered_primNode" score="1000">
>>>         <expression attribute="#uname" id="expression.id2242728"
>>> operation="eq" value="fc-node1"/>
>>>       </rule>
>>>     </rsc_location>
>>>
>>> See that cib.xml that I sent you a couple of days ago. First rule  
>>> will
>>> promote DRBD before starting a group, second will collocate master  
>>> and
>>> a group, third one will place group and master to the desired node.
>>>
>>
>> Yes, I bases my rules on yours, but I can't update my config with  
>> your rules
>> directly.
>> <rsc_order id="drbd0_before_myGroup" first="ms-drbd0"  
>> then="mail_Group"
>> then-action="start" first-action="promote"/>
>>
>> This could be like:
>> <rsc_order id="drbd0_before_myGroup" from="mail_Group" action="start"
>> to="ms-drbd0" to_action="promote"/>
>>
>> What is the version of your heartbeat ? My 2.99.1 heartbeat didn't
>
> It's processed by pacemaker, not heartbeat. That rule worked all right
> under 0.6, 0.7, 1.0:

The first/then syntax is available from 0.7 onwards

from/to is the 0.6 syntax





More information about the Pacemaker mailing list