[Pacemaker] HA for apache, doesnot work with pacemaker

Gopi Krishna B gopi97468 at gmail.com
Wed May 29 05:48:39 EDT 2013

Hi All
Could some help in pointing out which step I am wrongly configuring due to
which HA for Apache doesnot start.
Followed the steps in cluster from scratch doc to provide HA for Apache,
but it doesnot work.

*Setup*: Fedora 18, Openstack Grizzly, Pacemaker1.1.9/Corosync
2 node cluster.

1.) In Resource agents "/usr/lib/ocf/resource.d/heartbeat/apache"
a) changed IP address to ClusterIP or VirtualIp
 WGETOPTS="-O- -q -L --no-proxy --bind-address=

b) changed to point to httpd.conf

2.) In "/etc/httpd/conf/httpd.conf"
a) changed IP address to ClusterIP or VirtualIp
ServerAdmin root at

b) added these lines at the end of httpd.conf
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from

ExtendedStatus On

3. ) In "/etc/openstack-dashboard/local_settings"
a) changed IP address to ClusterIP or VirtualIp

pcs cluster cib apache.cfg
pcs -f apache.cfg resource create openstack_dashboard ocf:heartbeat:apache \
configfile=/etc/httpd/conf/httpd.conf \
statusurl="" op monitor interval=1min
pcs -f apache.cfg constraint colocation add openstack_dashboard ClusterIP
pcs -f apache.cfg constraint order ClusterIP then openstack_dashboard
pcs cluster push cib apache.cfg

After all the configuration changes pcs status displays

 ClusterIP      (ocf::heartbeat:IPaddr2):       Started cirrus
 openstack_dashboard    (ocf::heartbeat:apache):        Stopped

Gopi Krishna
Mobile: +358 4 5150 4499
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130529/cf8ee678/attachment-0002.html>

More information about the Pacemaker mailing list