On Wed, 2011-02-23 at 17:11 +0000, Stallmann, Andreas wrote: > Hi there, > > I'm afraid, I'm asking a question that several other people asked before. > Believe me, I think I tried everything from the posts I've found yet. > > I'm currently trying to get my apache webserver to be started by pacemaker. > > Here's the config: > > primitive sharedIP ocf:heartbeat:IPaddr2 \ > params ip="*******" cidr_netmask="255.255.255.0" nic="eth0:0" > primitive stonith_suicide stonith:suicide > primitive webserver_ressource ocf:heartbeat:apache \ > params httpd="/usr/sbin/httpd2-prefork" \ > op start interval="0" timeout="40s" \ > op stop interval="0" timeout="60s" \ > op monitor interval="10" timeout="20s" depth="0" \ > meta target-role="Started" > it seems that you are using SLES 11 .. dont worry your cluster(or resource) configurations are perfect, and its nothing to do with the cluster configuration.
edit /etc/sysconfig/apache2 and append 'status' in APACHE_MODULES APACHE_MODULES="actions alias .. .. ... status" also add 'STATUS' in APACHE_SERVER_FLAGS APACHE_SERVER_FLAGS="STATUS" Now start the web server resource.. It should start successfully. Just few minutes before I was also screaming/shouting/crying, as I was also not able to start the webserver(apache2) resource, and I just have found the solution, and now I am enjoying and sharing the pleasure ;) > group nagios_group sharedIP webserver_ressource \ > meta target-role="Started" > clone fencing stonith_suicide > property $id="cib-bootstrap-options" \ > dc-version="1.1.2-8b9ec9ccc5060457ac761dce1de719af86895b10" \ > cluster-infrastructure="openais" \ > expected-quorum-votes="3" \ > stonith-enabled="false" > > According to ps -ef | grep apache , there's no apache server running. > > crm_mon says: > > webserver_ressource (ocf::heartbeat:apache): Stopped > > and > > Failed actions: > webserver_ressource_start_0 (node=ipfuie-mgmt01, call=5, rc=-2, > status=Timed > Out): unknown exec error > > When I stop the server and test the ressource via ocf-tester, I get the > following result: > > ocf-tester -n webserver_ressource -o httpd="/usr/sbin/httpd2-prefork" > /usr/lib/ocf/resource.d/heartbeat/apache > Beginning tests for /usr/lib/ocf/resource.d/heartbeat/apache... > * rc=2: Validation failed. Did you supply enough options with -o ? > Aborting tests > > If I start the OCF-Script manually, everything works fine: > > ipfuie-mgmt01:~ # export OCF_ROOT=/usr/lib/ocf > mgmt01:~ # /usr/lib/ocf/resource.d/heartbeat/apache start > apache[29822]: INFO: apache not running > apache[29822]: INFO: waiting for apache /etc/apache2/httpd.conf to come up > mgmt01:~ # /usr/lib/ocf/resource.d/heartbeat/apache status > apache[29988]: INFO: apache is running (pid 29970). > > I grep'ed my logs for "webserver_ressource", but did not find anything that > points me to an obvious error... > > Any ideas? > -- > CONET Solutions GmbH > Andreas Stallmann, > Theodor-Heuss-Allee 19, 53773 Hennef > Tel.: +49 2242 939-677, Fax: +49 2242 939-393 > Mobil: +49 172 2455051 > Internet: http://www.conet.de, mailto: > [email protected]<mailto:[email protected]> > > ------------------------ > CONET Solutions GmbH, Theodor-Heuss-Allee 19, 53773 Hennef. > Registergericht/Registration Court: Amtsgericht Siegburg (HRB Nr. 9136) > Gesch?ftsf?hrer/Managing Directors: J?rgen Zender (Sprecher/Chairman), Anke > H?fer > Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: Hans > J?rgen Niemeier > > CONET Technologies AG, Theodor-Heuss-Allee 19, 53773 Hennef. > Registergericht/Registration Court: Amtsgericht Siegburg (HRB Nr. 10328 ) > Vorstand/Member of the Managementboard: R?diger Zeyen (Sprecher/Chairman), > Wilfried P?tz > Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: Dr. Gerd > Jakob > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems -- Regards, Muhammad Sharfuddin | NDS Technologies Pvt Ltd | cell: +92-333-2144823 | UAN: +92-21-111-111-142 ext: 113 The London Stock Exchange moves to SUSE Linux http://www.computerworlduk.com/news/open-source/3260727/london-stock-exchange-in-historic-linux-go-live/ http://www.zdnet.com/blog/open-source/the-london-stock-exchange-moves-to-novell-linux/8285 Your Linux is Ready http://www.novell.com/linux _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
