[Pacemaker] operation negations

Dejan Muhamedagic dejanmm at fastmail.fm
Fri Jun 19 09:33:35 EDT 2009


Hi,

On Thu, Jun 18, 2009 at 05:06:54PM -0700, ??????? ???? wrote:
> Hi, All!
> 
> Please help me with the correct negation syntax!
> 
> In the documentation there is an example how to build a rule that would forbid running a resource on certain node:
> 
> <rsc_location id="dont-run-apache-on-c001n03" rsc="myApacheRsc">
> <rule id="dont-run-apache-rule" score="-INFINITY">
> <expression id=dont-run-apache-expr attribute="#uname" operation="eq" value="c00n03"/>
> </rule>
> </rsc_location>
> 
> My question is - how could we modify the rule so it says "do
> not run on any node if its uname attribute "IS NOT EQUAL" to
> ="c00n03"?

Replace eq with ne.

> Also is there a comprehensive list of permited/implemented operations we can use in rules?

Check documentation at clusterlabs.org. 1.0 for pacemaker 1.0 and
0.6 for 0.6 and heartbeat 2.1.4.

Thanks,

Dejan

> 
> Many Thanks!
> 
> 
> Boyn, Dimitar G.
> Technical Marketing Engineer
> dboyn at postpath.com
> 3979 Freedom Circle,
> Santa Clara, CA 95054
> ICQ# 57-539-824
> IM: Y! niobd 
> ?
> 
> 
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list