[Linux-HA] Getting two drbd resources to run as master on same host
beekhof at gmail.com
Thu Sep 13 06:01:29 MDT 2007
On 8/24/07, Martin Bene <martin.bene at icomedias.com> wrote:
> I've got a heartbeat 2.1.2 cluster with two nodes and two drbd resources
> set up as described on
> Drbd0 prefers to run as master on node1, drbd1 prefers to run as master
> on node2
> There's a resource group "web" that uses drbd1
> <rsc_order id="drbd_web_before_web" from="web" action="start"
> to="drbd_web" to_action="promote"/>
> Can I just add
> <rsc_order id="drbd_cache_before_web" from="web" action="start"
> to="drbd_cache" to_action="promote"/>
> To make the web group require both drbd resources to be in master state?
> If not: how hould I specify this requirement correnctly?
> Next, I need to make sure that drbd2 always runs as master on the same
> node as drbd1. would this colocation rule work?
> <rsc_colocation id="cache_on_drbd_web" to="drbd_web" to_role="master"
> from="drbd_cache" from_role="master" score="infinity"/>
> Thanks for any hints you can give!
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> See also: http://linux-ha.org/ReportingProblems
More information about the Linux-HA