[Linux-HA] Constraint: Two drdb master on the same node?

Andreas Kurz andreas.kurz at gmail.com
Fri Apr 11 02:36:14 MDT 2008


....
>
> > Now I want that the two DRBD resources are always master on the same node?
> How do I create such a constraint the cib/crm file?
> >
>
>  <rsc_colocation id="master_on_master" to="ms-drbd3" to_role="master"
> from="ms-drbd1" from_role="master"  score="infinity"/>

I think it's worth to mention that such a constraint with
score="infinity" ... please correct me if I'm wrong .... prevents
"ms-drbd1" from running if "ms-drbd3" cannot run anywhere. If this
behaviour is not desired a positive but not "infinity" score for the
colocation constraint should be used.

Regards,
Andreas

>
>  Regards
>  Dominik
>  _______________________________________________
>  Linux-HA mailing list
>  Linux-HA at lists.linux-ha.org
>  http://lists.linux-ha.org/mailman/listinfo/linux-ha
>  See also: http://linux-ha.org/ReportingProblems
>


More information about the Linux-HA mailing list