[Pacemaker] Apace HA

emmanuel segura emi2fast at gmail.com
Sun Mar 30 09:12:13 EDT 2014


if you configured apache to bind to the floating ip address configurared in
your cluster, you need to use colocation constrain or a group, because if
you have ip address in one node and apache try to start on a node without
the ip address, apache fails to bind the

colocation ipapache inf: Apache Cluster_Server
order ipapache inf: Cluster_Server Apache

using group

group grp_webserver Cluster_Server Apache


for mo re information you can use the clusterlabs DOCS


2014-03-30 14:59 GMT+02:00 Dennis Zheleznyak <dennis at eshkol.com.co>:

> [root at node1 yum.repos.d]# crm configure show
> node node1
> node node2
> primitive Apache ocf:heartbeat:apache \
> params configfile="/etc/httpd/conf/httpd.conf" \
>  op monitor interval="30s" \
> op start timeout="40s" interval="0" \
> op stop timeout="60s" interval="0"
> primitive Cluster_Server ocf:heartbeat:IPaddr2 \
> params ip="132.65.56.250" cidr_netmask="24" \
> op monitor interval="30s"
> property $id="cib-bootstrap-options" \
> dc-version="1.1.10-14.el6_5.2-368c726" \
> cluster-infrastructure="classic openais (with plugin)" \
>  expected-quorum-votes="2" \
> stonith-enabled="false" \
> default-action-timeout="240"
>
>
> On Sun, Mar 30, 2014 at 3:23 PM, emmanuel segura <emi2fast at gmail.com>wrote:
>
>> where is your cluster config?
>>
>>
>> 2014-03-30 13:52 GMT+02:00 Dennis Zheleznyak <dennis at eshkol.com.co>:
>>
>>> Hi,
>>>
>>> I had no experience with Corosync / Pacemaker before, therefore, I
>>> followed the following guide to setup a Corosync/Pacemaker HA solution for
>>> an apache website:
>>>
>>> http://www.unixmen.com/adding-deleting-cluster-resources-corosync-pacemaker-2/
>>>
>>> I have two machines that run CentOS 6.5.
>>>
>>> I've done everything that is said in the guide but I see the following
>>> regarding the Apache:
>>> [root at node1 yum.repos.d]# crm status
>>> Last updated: Sun Mar 30 14:51:27 2014
>>> Last change: Sun Mar 30 14:24:05 2014 via cibadmin on node1
>>> Stack: classic openais (with plugin)
>>> Current DC: node1 - partition with quorum
>>> Version: 1.1.10-14.el6_5.2-368c726
>>> 2 Nodes configured, 2 expected votes
>>> 2 Resources configured
>>>
>>>
>>> Online: [ node1 node2 ]
>>>
>>>  Cluster_Server (ocf::heartbeat:IPaddr2): Started node1
>>>
>>> Failed actions:
>>>     Apache_start_0 on node2 'unknown error' (1): call=13,
>>> status=complete, last-rc-change='Sun Mar 30 14:30:02 2014', queued=1298ms,
>>> exec=0ms
>>>     Apache_start_0 on node1 'unknown error' (1): call=19,
>>> status=complete, last-rc-change='Sun Mar 30 14:30:03 2014', queued=3118ms,
>>> exec=0ms
>>>
>>> Thank you,
>>> Dennis.
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> esta es mi vida e me la vivo hasta que dios quiera
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>


-- 
esta es mi vida e me la vivo hasta que dios quiera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140330/90938d0f/attachment-0003.html>


More information about the Pacemaker mailing list