[Pacemaker] Problems using rules to Control Resource Options

Rasto Levrinc rasto.levrinc at linbit.com
Wed Mar 31 06:19:23 EDT 2010


On Wed, March 31, 2010 11:57 am, Michael Schwartzkopff wrote:
> Am Mittwoch, 31. März 2010 11:49:31 schrieb Michael Schwartzkopff:
>
>> Hi,
>>
>>
>> I have a resource defined according to chapter 8.4 of the pacemaker
>> guide:
>>
>>
>> <primitive class="ocf" id="resDummy" provider="pacemaker" type="Dummy">
>>  <instance_attributes id="special-debian1" score="2">
>> <rule id="rule-debian1" score="INFINITY">
>> <expression id="expression-debian1" attribute="#uname" operation="eq"
>> value="debian1"/> </rule>
>> <nvpair id="nvpair-state-debian" state="/var/run/debian1.state"/>

nvpair should have "name" and "value" attributes.

>> </instance_attributes>
>> <instance_attributes id="special-debian2" score="1">
>> <rule id="rule-debian2" score="INFINITY">
>> <expression id="expression-debian2" attribute="#uname" operation="eq"
>> value="debian2"/> </rule>
>> <nvpair id="nvpair-state-debian" state="/var/run/debian2.state"/>

nvpair should have "name" and "value" attributes.

Rasto


-- 
: Dipl-Ing Rastislav Levrinc
: DRBD-MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.






More information about the Pacemaker mailing list