[Pacemaker] location setting with parenthesis

池田 淳子 tsukishima.ha at gmail.com
Thu Nov 3 10:23:01 UTC 2011


Hi,

>> location rsc_location-1 msDRBD \
>> rule role=master -inf: \
>> (defined master-prmMySQL:0 and master-prmMySQL:0 gt 0) or \
>> (defined master-prmMySQL:1 and master-prmMySQL:1 gt 0)
> 
> Why not using two rules for this location constraint? I expect that to
> work the same way you want to express in your rule above.

Do you mean the following rules?

location rsc_location-1 msDRBD \
rule role=master -inf: defined master-prmMySQL:0 and master-prmMySQL:0 gt 0 \
rule role=master -inf: defined master-prmMySQL:1 and master-prmMySQL:1 gt 0

I'll try it.
Many thanks!

Regards,
Junko


On 2011/11/02, at 18:38, Andreas Kurz wrote:

> Hello,
> 
> On 11/02/2011 09:56 AM, Junko IKEDA wrote:
>> Hi,
>> 
>> I read the following "CRM CLI (command line interface) tool" document.
>> http://www.clusterlabs.org/doc/crm_cli.html#cmdhelp_configure_location
>> 
>> It seems that parenthesis is available for "colocation" or "order"
>> configuration,
> 
> The parenthesis for colocation/order constraints are the way for the crm
> shell to express "sequential=false" for resource-sets so they have
> really nothing to do with specifying precedence of logical operators IMHO.
> 
>> could I set up parenthetic "location"?
>> for example;
>> 
>> location rsc_location-1 msDRBD \
>> rule role=master -inf: \
>> (defined master-prmMySQL:0 and master-prmMySQL:0 gt 0) or \
>> (defined master-prmMySQL:1 and master-prmMySQL:1 gt 0)
> 
> Why not using two rules for this location constraint? I expect that to
> work the same way you want to express in your rule above.
> 
> Regards,
> Andreas
> 
> -- 
> Need help with Pacemaker?
> http://www.hastexo.com/now
> 
>> 
>> If it's possible, is Pacemaker 1.0.(11 or 12) OK, too?
>> 
>> Regards,
>> Junko IKEDA
>> 
>> NTT DATA INTELLILINK CORPORATION
>> 
>> _______________________________________________
>> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> 
> 
> 
> 
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker





More information about the Pacemaker mailing list