On Thu, Sep 29, 2011 at 12:56 PM, Nick Khamis <sym...@gmail.com> wrote:
> Hello Everyone,
>
> We have the following:
>
> * astdrbd1 & astdrbd2 - Run the asterisk servers
>
> node astdrbd1 \
>       attributes standby="off"
> node astdrbd2 \
>       attributes standby="off"
>
> primitive failover-ip ocf:heartbeat:IPaddr params \
>     ip=192.168.2.6 op monitor interval=2s
> location cli-prefer-failover-ip failover-ip rule
> $id="cli-prefer-rule-failover-ip" inf: #uname eq astdrbd1
> property $id="cib-bootstrap-options" \
>        no-quorum-policy="ignore" \
>        stonith-enabled="false" \
>        expected-quorum-votes="2" \
>        dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
>        cluster-recheck-interval="0" \
>        cluster-infrastructure="openais"
>        rsc_defaults $id="rsc-options" \
>        resource-stickiness="100"
>
> * mydrbd1 & mydrbd2 - Run the mysql servers
>
> node mydrbd1 \
>       attributes standby="off"
> node mydrbd2 \
>       attributes standby="off"
> primitive ip1 ocf:heartbeat:IPaddr2 \
>        params ip="192.168.2.5" cidr_netmask=24 \
>        nic="eth1"
> primitive drbd_mysql ocf:linbit:drbd \
>        params drbd_resource="r0.res" \
>        op monitor interval="15"
> ms ms_drbd_mysql drbd_mysql \
>        meta master-max="1" master-node-max="1" \
>        clone-max="2" clone-node-max="1" \
>        notify="true"
> primitive fs_mysql ocf:heartbeat:Filesystem \
>        params device="/dev/drbd0" directory="/service" fstype="ext3"
> primitive mysql ocf:heartbeat:mysql \
>        params binary="/etc/init.d/mysql" \
>        config="/etc/my.cnf" \
>        socket="/tmp/mysql.sock" \
>        op monitor interval="60" timeout="30" depth="0" \
>        meta target-role="Started"
> group HAServices ip1 fs_mysql \
>        meta target-role="Started"
> colocation mysql_on_drbd \
>        inf: HAServices ms_drbd_mysql:Master
> order mysql_after_drbd \
>                      inf: ms_drbd_mysql:promote mysql:start
> property $id="cib-bootstrap-options" \
>        no-quorum-policy="ignore" \
>        stonith-enabled="false" \
>        expected-quorum-votes="2" \
>        dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
>        cluster-recheck-interval="0" \
>        cluster-infrastructure="openais"
>        rsc_defaults $id="rsc-options" \
>        resource-stickiness="100"
>
> I thought that just grouping the nodes would seperate the two services
> however, as you know this is not possible. How do ensure what
> primitives run on which server in the merged config.

Grouping the nodes?  Merged config?

If you want services to run on separate nodes, use colocation with a
negative score.
If you want them not to move around when nodes come back online -
increase resource-stickiness until you get the desired effect.

>
> Thanks in Advance,
>
> Nick.
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to