[Pacemaker] Move resources on failure

Serge Dubrouski sergeyfd at gmail.com
Sun May 8 16:09:58 EDT 2011


http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s-resource-options.html#id649472

Look for migration-threshold.

Do not use LSB script for apache, instead carefully study all features of
OCF one.


On Sun, May 8, 2011 at 8:45 AM, Sergey V. Arlashin <
maillist.arlashin at yandex.ru> wrote:

> Hallo!
> I'm a newbie and I've just set up a small cluster wich consists of two
> nodes with apache and one mutual ip address. I use corosync and pacemaker.
> When I kill apache process crm restarts it so that apache continues
> working, but I want (in case of apache process failure) to make crm move the
> whole bunch of resources to another node instead.
> Is it possible?
>
> This is my config
>
> crm(live)configure# show
> node centos1 \
>        attributes standby="off"
> node centos2 \
>        attributes standby="off"
> primitive mutip1 ocf:heartbeat:IPaddr \
>        params ip="192.168.1.200" cidr_netmask="255.255.255.255" nic="eth0"
> \
>        op monitor interval="5s" timeout="20s"
> primitive website lsb:httpd \
>        op monitor interval="15" timeout="15" start-delay="15" \
>        meta target-role="Started"
> colocation ipapache inf: mutip1 website
> order apache-after-ip inf: mutip1 website
> property $id="cib-bootstrap-options" \
>        dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \
>        cluster-infrastructure="openais" \
>        expected-quorum-votes="2" \
>        no-quorum-policy="ignore" \
>        stonith-enabled="false"
>
>
> ---
> WBR, Sergey
>
>
>
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>



-- 
Serge Dubrouski.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110508/cc6f4535/attachment-0003.html>


More information about the Pacemaker mailing list