[Pacemaker] How to configure this request

Andrew Beekhof andrew at beekhof.net
Thu Dec 6 21:52:30 EST 2012


On Sat, Dec 1, 2012 at 5:21 AM, Mia Lueng <xiaozunvlg at gmail.com> wrote:
> Hi :
>
> I wanna build a five-node cluster to run drbd
>
> Node A,B,C  have a share storage
> Node D E have a share storage
>
> One of node (A,B,C) will be the drbd primary and one of node(D,E) be the
> drbd secondary and the data is set on the share storage
>
> Suppose that A is running as the drbd primary node,  When A is crash, B,C
> will take the drbd primary role and use the data on share storage.   When A,
> B,C are all crash,  one of node(D,E) will be the drbd primary node.
>
> So how can I write the configuration to do this?

location constraint with role=Master and score=-INFINITY for D, E
location constraint with role=Slave and score=-INFINITY for A, B, C

should do it, or get you most of the way there


>
> Thanks
>
>
>
> _______________________________________________
> 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://bugs.clusterlabs.org
>




More information about the Pacemaker mailing list