Am Montag, 26. Januar 2009 12:59:39 schrieb Tobias Appel: > Hi, > > I've added Monitor Operations to most of my resources and status > operations to the ones I only have a lsb script for. > > I then stopped the resource not via the cluster but just via it's init > script. I thought heartbeat would try to restart the resource, but > instead it said: (unmanaged) failed and did nothing. > > I tried the same for apache webserver which runs via ocf script, here it > also went into a failed state and did not restart but it was not > unmanaged. > > I manually had to intervene then and cleanup the resource before it > worked again. > > Here are parts of my resource configuration in the cib, where did I mess > up? On another machine I did exactly the same and iirc it worked. > > <primitive id="resource_http" class="ocf" type="apache" > provider="heartbeat"> > <instance_attributes id="resource_http_instance_attrs"> > <attributes> > <nvpair id="6d4eb3c0-f34a-4931-8354-ff3e5aae5463" > name="configfile" value="/etc/httpd/conf/ > httpd.conf"/> > <nvpair id="71e8aff1-f4c5-4a9a-a16d-a96e11234378" > name="httpd" value="/usr/sbin/httpd"/> > </attributes> > </instance_attributes> > <operations> > <op id="op_http" name="monitor" interval="60" timeout="20" > start_delay="1m" disabled="false" > role="Started" prereq="quorum" on_fail="restart"/> > </operations> > </primitive> > > <primitive id="nagios-core" class="lsb" type="nagios" > provider="heartbeat"> > <operations> > <op id="op_nagios" name="status" interval="60" timeout="20" > start_delay="1m" disabled="false" > role="Started" prereq="quorum" on_fail="restart"/> > </operations> > </primitive> > > > Bye, > Tobi
Did you check if your lsb RA (aka init script) behaves like defined in the LSB? See: http://www.linux-ha.org/LSBResourceAgent MOST (!) of the scripts provided from the distributions do not like defined. -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: [email protected] web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht München HRB 114375 Geschäftsführer: Günter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
