[Pacemaker] location setting with parenthesis
Dejan Muhamedagic
dejanmm at fastmail.fm
Mon Nov 7 17:05:07 UTC 2011
Hi,
On Wed, Nov 02, 2011 at 05:56:20PM +0900, 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,
> 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)
>
> If it's possible, is Pacemaker 1.0.(11 or 12) OK, too?
Sorry, no, that won't work. Even if it's possible to express it
in XML, and I guess it is, the shell doesn't support
parentheses in this case.
Thanks,
Dejan
> 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
More information about the Pacemaker
mailing list