On Thu, Nov 03, 2011 at 07:23:01PM +0900, 池田 淳子 wrote: > 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 may be missing something obvious, but why not a colocation constraint between msDRBD and prmMySQL? something like colocation asdf -inf: msDRBD:Master prmMySQL:Master -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com _______________________________________________ Pacemaker mailing list: Pacemaker@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