Hi , i am new to start use pacemaker , i wanna make a simple demo to start a
apache in a node
follow the doc i succeed to setup a pacemaker-openais env.
there are four nodes . test1 ,test2 ,ubuntu ,bak1
ubuntu is the one i wanna to start a apache app, and if it shutdown ,bak1
gets its work.
so i setup apache both on ubuntu and bak1 ,path localed at
/usr/local/apache.
and i dont know LSB and OCF script at all. so i found apache script at
ha.f/resource.d/ and use it
and finally found IPaddr start no problem and apache is not installed.
is there any example for me to follow to writer a LSB script to start my
apache at /usr/local/apache
or something LVS demo concluded ,thanks.
here is my configure
node bak1
node test1 \
attributes standby="off"
node test2 \
attributes standby="on"
node ubuntu \
attributes standby="off"
primitive failover-apache ocf:heartbeat:apache \
op monitor interval="15" \
params configfile="/usr/local/apache/
conf/httpd.conf"
primitive failover-ip ocf:heartbeat:IPaddr \
params ip="192.168.1.200" \
op monitor interval="10s"
group my_web_cluster failover-ip failover-apache
location prefer-ubuntu my_web_cluster \
rule $id="prefer-node1-rule" 100: #uname eq ubuntu
property $id="cib-bootstrap-options" \
dc-version="1.0.5-3840e6b5a305ccb803d29b468556739e75532d56" \
cluster-infrastructure="openais" \
expected-quorum-votes="4" \
stonith-enabled="false"
and status in crm_mon is
============
Last updated: Tue Jan 12 16:45:02 2010
Stack: openais
Current DC: test1 - partition with quorum
Version: 1.0.5-3840e6b5a305ccb803d29b468556739e75532d56
4 Nodes configured, 4 expected votes
1 Resources configured.
============
Node test2: standby
Online: [ ubuntu test1 bak1 ]
Resource Group: my_web_cluster
failover-ip (ocf::heartbeat:IPaddr): Started ubuntu
failover-apache (ocf::heartbeat:apache): Stopped
Failed actions:
failover-apache_start_0 (node=test1, call=6, rc=5, status=complete): not
ins
talled
failover-apache_start_0 (node=ubuntu, call=6, rc=5, status=complete):
not in
stalled
failover-apache_start_0 (node=bak1, call=6, rc=5, status=complete): not
inst
alled
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems