[Pacemaker] CRM location rules to PCS

Chris Feist cfeist at redhat.com
Thu Jun 13 22:48:29 UTC 2013


On 06/13/13 03:32, Gregg Jaskiewicz wrote:
> How does one convert a rule in CRM to PCS, that is bit more complicated. Like so:
>
> location rsc_location-2 msPostgreSQL \
>          rule $id="rsc_location-2-rule" $role="master" 200: #uname eq dev02 \
>          rule $id="rsc_location-2-rule-0" $role="master" 100: #uname eq dev01 \
>          rule $id="rsc_location-2-rule-1" $role="master" -inf: defined
> fail-count-devMasterVIP \
>          rule $id="rsc_location-2-rule-2" -inf: not_defined pingNodes or
> pingNodes lt 100
>
> Short of rewriting it in xml .

I'm still working on developing a comprehensive syntax for pcs for dealing with 
rules, but it should be available shortly (I'm currently working on it).  I will 
let you know as soon as it's available.

Thanks!
Chris


>
> --
> GJ
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>





More information about the Pacemaker mailing list