[Pacemaker] Two master colocation question

Andrew Beekhof beekhof at gmail.com
Mon Aug 25 10:57:36 UTC 2008


On Aug 15, 2008, at 12:26 AM, Neil Katin wrote:

>
> Hi there.  I'm having trouble configuring pacemaker to work
> the way I want it it.  I'm hoping someone on the list has
> a better idea of how to make this work...
>
> ----- the problem:
>
> I'm trying to make mysql on drbd work.  The complication
> is I have two drdb mount points (to represent the two different
> underlying disks: one for database data; one for the logs).
>
> I'm having trouble convincing pacemaker that the two drbd masters
> should both be master on the same host.

I thought drbd didn't require this?

>
>
> I've tried a colocation rule like:
>    <rsc_colocation id="drbd1-ms1-with-ms0"
>        to="drbd1-ms0" to_role="master"
>        from="drbd1-ms1" from_role="master"
>        score="infinity"/>
>
> I tried added "symmetrical=true" to the rule.  But I still
> get different nodes being master for my two drbd rules.
>
> Thanks in advance for any insight folks might have on this.

perhaps try inverting it...

    <rsc_colocation id="drbd1-ms1-with-ms0"
        to="drbd1-ms0" to_role="Master"
        from="drbd1-ms1" from_role="Slave"
        score="-INFINITY"/>

ie. say where it can't be a master

>
>
>    Neil Katin
>
> ----- s/w versions:
>
> pacemaker from download.opensuse.org/repositories/server:/ha- 
> clusterin/Centos_5
> pacemaker version 0.6.5-2.2
> heartbeat version 2.1.3-23.1
> centos 5.2
>
> ----- full cib:
>
> (only the entries that have IDs starting with drdb1
> matter for this question...)
> http://www.sonic.net/~nk31/cib-2008-08-14.xml
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker





More information about the Pacemaker mailing list