Hi,

On Tue, Jan 12, 2010 at 05:32:55PM +0800, 梁景明 wrote:
> hi , thanks i follow it
> now the configure looks like this ,and i commit . it still fails.

You should take a look at the logs. grep for lrmd.*apache. The
most common problem is that the server status module is not
configured properly.

Thanks,

Dejan

> just as i have little knowledge  about the script , i can't fix it . and i
> dont know whats happen.
> so do u have some simple script for me  to follow . let me changed something
> and
> it  work included words like this
> *sudo /usr/local/apache/bin/apachectl start**|stop*
> or is there a hellowolrd tutorial for me to learn some script course.
> thanks .
> 
> 
> 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" \
>   *  params httpd="/usr/local/apache/bin/httpd"*
> 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
> 
> 
> 2010/1/12 Dejan Muhamedagic <[email protected]>
> 
> > Hi,
> >
> > On Tue, Jan 12, 2010 at 04:59:34PM +0800, 梁景明 wrote:
> > > 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
> >
> > According to the configuration below, you did use the OCF RA.
> >
> > > 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"
> >
> > You can add here the httpd parameter in case your apache binary
> > is not /usr/sbin/httpd. See
> >
> > crm ra info apache
> >
> > for information on the apache OCF RA.
> >
> > Otherwise your configuration is OK. Just make sure to enable the
> > apache server status page and allow access to it from localhost.
> >
> > Thanks,
> >
> > Dejan
> >
> > > 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
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to