[Pacemaker] apche cannot run anywhere
Shravan Mishra
shravan.mishra at gmail.com
Sat Aug 27 17:29:38 UTC 2011
try checking if stonith is enabled if it is then disable it:
crm_attribute -G -t crm_config -n stonith-enabled
Or define stonith resources before running your resources.
Thanks
Shravan
On Sat, Aug 27, 2011 at 12:18 PM, leopoldo tosi <leopoldotosi at yahoo.it>wrote:
> I'm doing some test with apache, but it doesn't run,
> someone can help me, please ?
>
> leopoldo tosi
> Last updated: Sat Aug 27 18:09:26 2011
> Stack: openais
> Current DC: server01 - partition with quorum
> Version: 1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b
> 2 Nodes configured, 2 expected votes
> 1 Resources configured.
> ============
>
> Online: [ server01 server02 ]
>
> Resource Group: group1
> ip1 (ocf::heartbeat:IPaddr2): Started server01
> apache2 (ocf::heartbeat:apache2): Stopped
>
> Failed actions:
> apache2_start_0 (node=server02, call=5, rc=1, status=complete): unknown
> error
> apache2_start_0 (node=server01, call=5, rc=1, status=complete): unknown
> error
>
>
>
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_config: STONITH timeout:
> 60000
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_config: STONITH of failed
> nodes is disabled
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_config: Stop all active
> resources: false
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_config: Cluster is symmetric
> - resources can run anywhere by default
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_config: Default stickiness:
> 0
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_config: On loss of CCM
> Quorum: Stop ALL resources
> ptest[2141]: 2011/08/27_18:01:19 info: unpack_config: Node scores: 'red' =
> -INFINITY, 'yellow' = 0, 'green' = 0
> ptest[2141]: 2011/08/27_18:01:19 info: determine_online_status: Node
> server02 is online
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_rsc_op: apache2_start_0 on
> server02 returned 1 (unknown error) instead of the expected value: 0 (ok)
> ptest[2141]: 2011/08/27_18:01:19 WARN: unpack_rsc_op: Processing failed op
> apache2_start_0 on server02: unknown error (1)
> ptest[2141]: 2011/08/27_18:01:19 info: determine_online_status: Node
> server01 is online
> ptest[2141]: 2011/08/27_18:01:19 debug: unpack_rsc_op: apache2_start_0 on
> server01 returned 1 (unknown error) instead of the expected value: 0 (ok)
> ptest[2141]: 2011/08/27_18:01:19 WARN: unpack_rsc_op: Processing failed op
> apache2_start_0 on server01: unknown error (1)
> ptest[2141]: 2011/08/27_18:01:19 notice: group_print: Resource Group:
> group1
> ptest[2141]: 2011/08/27_18:01:19 notice: native_print: ip1
> (ocf::heartbeat:IPaddr2): Started server01
> ptest[2141]: 2011/08/27_18:01:19 notice: native_print: apache2
> (ocf::heartbeat:apache2): Stopped
> ptest[2141]: 2011/08/27_18:01:19 info: get_failcount: apache2 has failed
> INFINITY times on server01
> ptest[2141]: 2011/08/27_18:01:19 WARN: common_apply_stickiness: Forcing
> apache2 away from server01 after 1000000 failures (max=1000000)
> ptest[2141]: 2011/08/27_18:01:19 info: get_failcount: apache2 has failed
> INFINITY times on server02
> ptest[2141]: 2011/08/27_18:01:19 WARN: common_apply_stickiness: Forcing
> apache2 away from server02 after 1000000 failures (max=1000000)
> ptest[2141]: 2011/08/27_18:01:19 info: native_merge_weights: ip1: Rolling
> back scores from apache2
> ptest[2141]: 2011/08/27_18:01:19 debug: native_assign_node: Assigning
> server01 to ip1
> ptest[2141]: 2011/08/27_18:01:19 debug: native_assign_node: All nodes for
> resource apache2 are unavailable, unclean or shutting down (server02: 1,
> -1000000)
> ptest[2141]: 2011/08/27_18:01:19 debug: native_assign_node: Could not
> allocate a node for apache2
> ptest[2141]: 2011/08/27_18:01:19 info: native_color: Resource apache2
> cannot run anywhere
> ptest[2141]: 2011/08/27_18:01:19 notice: LogActions: Leave resource ip1
> (Started server01)
> ptest[2141]: 2011/08/27_18:01:19 notice: LogActions: Leave resource apache2
> (Stopped)
>
>
> Aug 27 18:00:55 server01 pengine: [1322]: info: native_merge_weights: ip1:
> Rolling back scores from apache2
> Aug 27 18:00:55 server01 pengine: [1322]: debug: native_assign_node: All
> nodes for resource apache2 are unavailable, unclean or shutting down
> (server02: 1, -1000000)
> Aug 27 18:00:55 server01 pengine: [1322]: debug: native_assign_node: Could
> not allocate a node for apache2
> Aug 27 18:00:55 server01 pengine: [1322]: info: native_color: Resource
> apache2 cannot run anywhere
> Aug 27 18:00:55 server01 pengine: [1322]: notice: LogActions: Leave
> resource apache2 (Stopped)
>
>
> Aug 27 17:59:55 server02 attrd: [1203]: debug: attrd_cib_callback: Update
> 51 for fail-count-apache2=INFINITY passed
> Aug 27 17:59:56 server02 cib: [1201]: debug: cib_process_xpath: Processing
> cib_query op for
> //cib/status//node_state[@id='server02']//nvpair[@name='last-failure-apache2']
> (/cib/status/node_state[1]/transient_attributes/instance_attributes/nvpair[3])
> Aug 27 17:59:56 server02 attrd: [1203]: debug: log_data_element:
> find_nvpair_attr: Match <nvpair id="status-server02-last-failure-apache2"
> name="last-failure-apache2" value="1314452988" />
> Aug 27 17:59:56 server02 attrd: [1203]: debug: attrd_cib_callback: Update
> 54 for last-failure-apache2=1314452988 passed
>
>
>
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110827/87e9a6db/attachment.htm>
More information about the Pacemaker
mailing list