[Pacemaker] Error starting Apache on 2 nodes cluster
Angie T. Muhammad
angie.tawfik at gmail.com
Thu Nov 19 13:16:47 UTC 2009
On Thu, Nov 19, 2009 at 1:41 PM, Dejan Muhamedagic <dejanmm at fastmail.fm>wrote:
> Hi,
>
> On Thu, Nov 19, 2009 at 12:35:36PM +0200, Angie T. Muhammad wrote:
> > On Thu, Nov 19, 2009 at 2:39 AM, Luke Bigum <lbigum at iseek.com.au> wrote:
> >
> > > Angie,
> > >
> > >
> > >
> > > I can't tell exactly what's you've provided, can you post your CRM
> > > configuration (the output of 'crm configure show')? While you're at it,
> also
> > > provide ' crm_verify -LV' and 'crm_mon -fo1'.
> > >
> > > Here are the outputs:
> > >
> > # crm configure show
> > node test1.localdomain
> > node test2.localdomain
> > primitive ClusterIP ocf:heartbeat:IPaddr2 \
> > params ip="10.0.0.102" cidr_netmask="255.255.255.0" \
> > op monitor interval="10s"
> > primitive LoadBalancer lsb:haproxy \
> > op monitor interval="10s"
> > primitive WebSite ocf:heartbeat:apache \
> > params configfile="/etc/httpd/conf/httpd.conf" \
> > op monitor interval="1min"
> > colocation LoadBalancer-with-ClusterIP inf: LoadBalancer ClusterIP
> > order LoadBalancer-after-ClusterIP inf: ClusterIP LoadBalancer
> > property $id="cib-bootstrap-options" \
> > stonith-enabled="false" \
> > expected-quorum-votes="2" \
> > dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \
> > cluster-infrastructure="openais" \
> > no-quorum-policy="ignore"
> >
> > # crm_verify -VL
> > crm_verify[14263]: 2009/11/19_12:22:57 WARN: unpack_rsc_op: Processing
> > failed op WebSite_start_0 on test1.localdomain: unknown error
> > crm_verify[14263]: 2009/11/19_12:22:57 WARN: unpack_rsc_op: Processing
> > failed op WebSite_start_0 on test2.localdomain: unknown error
>
> To find out why the resource failed, grep your logs for
> lrmd.*WebSite. It should show you errors which were logged by the
> apache resource agent.
>
On Node 1:
# cat /var/log/messages | grep -i lrmd.*WebSite
Nov 19 14:55:49 test1 lrmd: [19644]: info: rsc:WebSite:4: monitor
Nov 19 14:55:49 test1 lrmd: [19644]: info: RA output:
(WebSite:monitor:stderr) logd is not running
Nov 19 14:55:49 test1 lrmd: [19644]: info: RA output:
(WebSite:monitor:stderr) 2009/11/19_14:55:49 INFO: apache not running
Nov 19 14:55:53 test1 lrmd: [19644]: info: rsc:WebSite:9: start
Nov 19 14:55:54 test1 lrmd: [19644]: info: RA output: (WebSite:start:stderr)
logd is not running
Nov 19 14:55:54 test1 lrmd: [19644]: info: RA output: (WebSite:start:stderr)
2009/11/19_14:55:54 INFO: apache not running
Nov 19 14:55:54 test1 lrmd: [19644]: info: RA output: (WebSite:start:stderr)
logd is not running
Nov 19 14:55:54 test1 lrmd: [19644]: info: RA output: (WebSite:start:stderr)
2009/11/19_14:55:54 INFO: waiting for apache /etc/httpd/conf/httpd.conf to
come up
Nov 19 14:55:55 test1 lrmd: [19644]: info: RA output: (WebSite:start:stderr)
logd is not running
Nov 19 14:55:55 test1 lrmd: [19644]: info: RA output: (WebSite:start:stderr)
2009/11/19_14:55:55 ERROR: command failed: sh -c wget -O- -q -L --no-proxy
--bind-address=127.0.0.1 http://10.0.0.100:80 | tr '\012' ' ' | grep -Ei "</
*body *>[[:space:]]*</ *html *>" >/dev/null
Nov 19 14:55:56 test1 lrmd: [19644]: info: rsc:WebSite:10: stop
Nov 19 14:55:57 test1 lrmd: [19644]: info: RA output: (WebSite:stop:stderr)
logd is not running
Nov 19 14:55:57 test1 lrmd: [19644]: info: RA output: (WebSite:stop:stderr)
2009/11/19_14:55:57 INFO: Killing apache PID 19880
Nov 19 14:55:57 test1 lrmd: [19644]: info: RA output: (WebSite:stop:stderr)
logd is not running
Nov 19 14:55:57 test1 lrmd: [19644]: info: RA output: (WebSite:stop:stderr)
2009/11/19_14:55:57 INFO: apache stopped.
On Node 2:
# cat /var/log/messages | grep -i lrmd.*WebSite
Nov 19 14:55:41 test2 lrmd: [31978]: info: rsc:WebSite:4: monitor
Nov 19 14:55:41 test2 lrmd: [31978]: info: RA output:
(WebSite:monitor:stderr) logd is not running
Nov 19 14:55:41 test2 lrmd: [31978]: info: RA output:
(WebSite:monitor:stderr) 2009/11/19_14:55:41 INFO: apache not running
Nov 19 14:55:43 test2 lrmd: [31978]: info: rsc:WebSite:5: start
Nov 19 14:55:43 test2 lrmd: [31978]: info: RA output: (WebSite:start:stderr)
logd is not running
Nov 19 14:55:43 test2 lrmd: [31978]: info: RA output: (WebSite:start:stderr)
2009/11/19_14:55:43 INFO: apache not running
Nov 19 14:55:43 test2 lrmd: [31978]: info: RA output: (WebSite:start:stderr)
logd is not running
Nov 19 14:55:43 test2 lrmd: [31978]: info: RA output: (WebSite:start:stderr)
2009/11/19_14:55:43 INFO: waiting for apache /etc/httpd/conf/httpd.conf to
come up
Nov 19 14:55:44 test2 lrmd: [31978]: info: RA output: (WebSite:start:stderr)
logd is not running
Nov 19 14:55:44 test2 lrmd: [31978]: info: RA output: (WebSite:start:stderr)
2009/11/19_14:55:44 ERROR: command failed: sh -c wget -O- -q -L --no-proxy
--bind-address=127.0.0.1 http://10.0.0.101:80 | tr '\012' ' ' | grep -Ei "</
*body *>[[:space:]]*</ *html *>" >/dev/null
Nov 19 14:55:45 test2 lrmd: [31978]: info: rsc:WebSite:6: stop
Nov 19 14:55:46 test2 lrmd: [31978]: info: RA output: (WebSite:stop:stderr)
logd is not running
Nov 19 14:55:46 test2 lrmd: [31978]: info: RA output: (WebSite:stop:stderr)
2009/11/19_14:55:46 INFO: Killing apache PID 32115
Nov 19 14:55:46 test2 lrmd: [31978]: info: RA output: (WebSite:stop:stderr)
logd is not running
Nov 19 14:55:46 test2 lrmd: [31978]: info: RA output: (WebSite:stop:stderr)
2009/11/19_14:55:46 INFO: apache stopped.
>
> Thanks,
>
Thank you Dejan
>
> Dejan
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
--
All the best,
Angie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091119/6d3ad023/attachment-0002.htm>
More information about the Pacemaker
mailing list