Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

PROBLEM WITH TOMCAT RESOURCE

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


savila at kywi

Jan 17, 2012, 1:59 PM

Post #1 of 2 (299 views)
Permalink
PROBLEM WITH TOMCAT RESOURCE

Hi,

I have a simple two node configuration

node server1C57 \
attributes standby="off"
node server2C57 \
attributes standby="off"
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="192.168.48.136" cidr_netmask="32" \
op monitor interval="30s"
primitive Webtomcat ocf:heartbeat:tomcat \
params java_home="/usr/java/jdk1.6.0_30"
catalina_home="/usr/local/apache-tomcat-6.0.32"
group mysql ClusterIP Webtomcat
colocation website-with-ip inf: Webtomcat ClusterIP
order Webtomcat-after-IP inf: ClusterIP Webtomcat:start
property $id="cib-bootstrap-options" \
dc-version="1.0.12-unknown" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"


When the resources are in the server2C57 node everything work fine. If I
do a failover test the Webtomcat resource won't start in the node server1C57

Jan 17 16:50:07 server1C57 pengine: [3447]: info: get_failcount:
Webtomcat has failed INFINITY times on server1C57
Jan 17 16:50:07 server1C57 pengine: [3447]: WARN:
common_apply_stickiness: Forcing Webtomcat away from server1C57 after
1000000 failures (max=1000000)
Jan 17 16:50:07 server1C57 pengine: [3447]: info: rsc_merge_weights:
ClusterIP: Rolling back scores from Webtomcat
Jan 17 16:50:07 server1C57 pengine: [3447]: info: rsc_merge_weights:
ClusterIP: Rolling back scores from Webtomcat
Jan 17 16:50:07 server1C57 pengine: [3447]: info: native_color: Resource
Webtomcat cannot run anywhere
Jan 17 16:50:07 server1C57 pengine: [3447]: notice: LogActions: Leave
resource ClusterIP (Started server1C57)
Jan 17 16:50:07 server1C57 pengine: [3447]: notice: LogActions: Leave
resource Webtomcat (Stopped)
Jan 17 16:50:07 server1C57 crmd: [3448]: info: do_state_transition:
State transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [
input=I_PE_SUCCESS cause=C_IPC_
MESSAGE origin=handle_response ]
Jan 17 16:50:07 server1C57 pengine: [3447]: info: process_pe_message:
Transition 56: PEngine Input stored in: /var/lib/pengine/pe-input-142.bz2
Jan 17 16:50:07 server1C57 crmd: [3448]: info: unpack_graph: Unpacked
transition 56: 0 actions in 0 synapses
Jan 17 16:50:07 server1C57 crmd: [3448]: info: do_te_invoke: Processing
graph 56 (ref=pe_calc-dc-1326837006-218) derived from
/var/lib/pengine/pe-input-142.b
z2
Jan 17 16:50:07 server1C57 crmd: [3448]: info: run_graph:
====================================================
Jan 17 16:50:07 server1C57 crmd: [3448]: notice: run_graph: Transition
56 (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0,
Source=/var/lib/pengine/p
e-input-142.bz2): Complete
Jan 17 16:50:07 server1C57 crmd: [3448]: info: te_graph_trigger:
Transition 56 is now complete
Jan 17 16:50:07 server1C57 crmd: [3448]: info: notify_crmd: Transition
56 status: done - <null>
Jan 17 16:50:07 server1C57 crmd: [3448]: info: do_state_transition:
State transition S_TRANSITION_ENGINE -> S_IDLE [ input=I_TE_SUCCESS
cause=C_FSA_INTERNAL
origin=notify_crmd ]
Jan 17 16:50:07 server1C57 crmd: [3448]: info: do_state_transition:
Starting PEngine Recheck Timer
Jan 17 16:53:47 server1C57 cib: [3444]: info: cib_stats: Processed 1
operations (0.00us average, 0% utilization) in the last 10min

Regards,

Santiago Avila

--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


schumann at informatik

Jan 17, 2012, 2:44 PM

Post #2 of 2 (272 views)
Permalink
Re: PROBLEM WITH TOMCAT RESOURCE [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Heyho Santiago,

any hints from logs/catalina.out? Btw. I'd also recommend adding a
user tomcat to your system, chown of catalina_home and add parameter
tomcat_user="tomcat" to the resource agent, because running tomcat as
root is usually not necessary.

Cheers
Robert

Am 17.01.2012 22:59, schrieb Santiago Avila:
> Hi,
>
> I have a simple two node configuration
>
> node server1C57 \ attributes standby="off" node server2C57 \
> attributes standby="off" primitive ClusterIP ocf:heartbeat:IPaddr2
> \ params ip="192.168.48.136" cidr_netmask="32" \ op monitor
> interval="30s" primitive Webtomcat ocf:heartbeat:tomcat \ params
> java_home="/usr/java/jdk1.6.0_30"
> catalina_home="/usr/local/apache-tomcat-6.0.32" group mysql
> ClusterIP Webtomcat colocation website-with-ip inf: Webtomcat
> ClusterIP order Webtomcat-after-IP inf: ClusterIP Webtomcat:start
> property $id="cib-bootstrap-options" \ dc-version="1.0.12-unknown"
> \ cluster-infrastructure="openais" \ expected-quorum-votes="2" \
> stonith-enabled="false" \ no-quorum-policy="ignore" rsc_defaults
> $id="rsc-options" \ resource-stickiness="100"
>
>
> When the resources are in the server2C57 node everything work fine.
> If I do a failover test the Webtomcat resource won't start in the
> node server1C57
>
> Jan 17 16:50:07 server1C57 pengine: [3447]: info: get_failcount:
> Webtomcat has failed INFINITY times on server1C57 Jan 17 16:50:07
> server1C57 pengine: [3447]: WARN: common_apply_stickiness: Forcing
> Webtomcat away from server1C57 after 1000000 failures
> (max=1000000) Jan 17 16:50:07 server1C57 pengine: [3447]: info:
> rsc_merge_weights: ClusterIP: Rolling back scores from Webtomcat
> Jan 17 16:50:07 server1C57 pengine: [3447]: info:
> rsc_merge_weights: ClusterIP: Rolling back scores from Webtomcat
> Jan 17 16:50:07 server1C57 pengine: [3447]: info: native_color:
> Resource Webtomcat cannot run anywhere Jan 17 16:50:07 server1C57
> pengine: [3447]: notice: LogActions: Leave resource ClusterIP
> (Started server1C57) Jan 17 16:50:07 server1C57 pengine: [3447]:
> notice: LogActions: Leave resource Webtomcat (Stopped) Jan 17
> 16:50:07 server1C57 crmd: [3448]: info: do_state_transition: State
> transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [
> input=I_PE_SUCCESS cause=C_IPC_ MESSAGE origin=handle_response ]
> Jan 17 16:50:07 server1C57 pengine: [3447]: info:
> process_pe_message: Transition 56: PEngine Input stored in:
> /var/lib/pengine/pe-input-142.bz2 Jan 17 16:50:07 server1C57 crmd:
> [3448]: info: unpack_graph: Unpacked transition 56: 0 actions in 0
> synapses Jan 17 16:50:07 server1C57 crmd: [3448]: info:
> do_te_invoke: Processing graph 56 (ref=pe_calc-dc-1326837006-218)
> derived from /var/lib/pengine/pe-input-142.b z2 Jan 17 16:50:07
> server1C57 crmd: [3448]: info: run_graph:
> ==================================================== Jan 17
> 16:50:07 server1C57 crmd: [3448]: notice: run_graph: Transition 56
> (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0,
> Source=/var/lib/pengine/p e-input-142.bz2): Complete Jan 17
> 16:50:07 server1C57 crmd: [3448]: info: te_graph_trigger:
> Transition 56 is now complete Jan 17 16:50:07 server1C57 crmd:
> [3448]: info: notify_crmd: Transition 56 status: done - <null> Jan
> 17 16:50:07 server1C57 crmd: [3448]: info: do_state_transition:
> State transition S_TRANSITION_ENGINE -> S_IDLE [ input=I_TE_SUCCESS
> cause=C_FSA_INTERNAL origin=notify_crmd ] Jan 17 16:50:07
> server1C57 crmd: [3448]: info: do_state_transition: Starting
> PEngine Recheck Timer Jan 17 16:53:47 server1C57 cib: [3444]: info:
> cib_stats: Processed 1 operations (0.00us average, 0% utilization)
> in the last 10min
>
> Regards,
>
> Santiago Avila
>


- --

|-------------------------------------------------address-+
| work: jacob-und-wilhelm-grimm-zentrum
| geschwister-scholl-str. 1, 10117 berlin
| mail: humboldt-universität zu berlin
| computer- und medienservice
| unter den linden 6, 10099 berlin
|-------------------------------------------------contact-+
| mail: schumann [at] informatik
| icq: 93163687 | xmpp: betulichergutmensch [at] gmail
| fb: fb.com/rschumann | phone: +49(0)30-2093-70133
|-------------------------------------------------gpg/pgp-+
| key: remembrance.de/gpg/0xA5A5FAA2.asc
| fprnt: 9220-9732-7390-7A0C-5623-3336-4233-FDF8-A5A5-FAA2
|---------------------------------------------------------+

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8V+d0ACgkQQjP9+KWl+qKzhACePDFfPnWDvBR00ltBChlEA4JV
F5oAnizY5fXGwyDX2eDCwK15HiDQ4kKJ
=Qolz
-----END PGP SIGNATURE-----
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.