用PCS建立WEB集群,一直不生效怎么解决!

小蔡coding 2020-05-09 02:36:47
困扰好几天了,求帮助!
[root@rs1 ~]# pcs resource create Website ocf:heartbeat:apache configfile=/etc/httpd/conf/httpd.conf \
> statusurl="http://localhost/server-status" \
> op monitor interval=1min


[root@rs1 ~]# pcs status
Cluster name: cluster1
Stack: corosync
Current DC: rs1 (version 1.1.20-5.el7-3c4c782f70) - partition with quorum
Last updated: Sat May 9 02:29:59 2020
Last change: Sat May 9 02:28:36 2020 by root via cibadmin on rs1

2 nodes configured
2 resources configured

Online: [ rs1 rs2 ]

Full list of resources:

VirtualIP (ocf::heartbeat:IPaddr2): Started rs1
Website (ocf::heartbeat:apache): Stopped

Failed Resource Actions:
* Website_start_0 o
n rs1 'unknown error' (1): call=19, status=Timed Out, exitreason='',
last-rc-change='Sat May 9 02:29:17 2020', queued=0ms, exec=40004ms
* Website_start_0 on rs2 'unknown error' (1): call=14, status=Timed Out, exitreason='',
last-rc-change='Sat May 9 02:28:36 2020', queued=0ms, exec=40006ms


Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled

在放个日志文件
May 9 02:29:48 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:49 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:49 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:50 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:50 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:51 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:51 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:52 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:52 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:53 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:53 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:54 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:54 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:55 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:55 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:56 b apache(Website)[12391]: INFO: apache not running
May 9 02:29:56 b apache(Website)[12391]: INFO: waiting for apache /etc/httpd/conf/httpd.conf to come up
May 9 02:29:57 b lrmd[9228]: warning: Website_start_0 process (PID 12391) timed out
May 9 02:29:57 b lrmd[9228]: warning: Website_start_0:12391 - timed out after 40000ms
May 9 02:29:57 b crmd[9231]: error: Result of start operation for Website on rs1: Timed Out
May 9 02:29:57 b crmd[9231]: warning: Action 5 (Website_start_0) on rs1 failed (target: 0 vs. rc: 1): Error
May 9 02:29:57 b crmd[9231]: notice: Transition aborted by operation Website_start_0 'modify' on rs1: Event failed
May 9 02:29:57 b crmd[9231]: notice: Transition 16 (Complete=2, Pending=0, Fired=0, Skipped=0, Incomplete=1, Source=/var/lib/pacemaker/pengine/pe-input-16.bz2): Complete
May 9 02:29:57 b pengine[9230]: warning: Processing failed start of Website on rs1: unknown error
May 9 02:29:57 b pengine[9230]: warning: Processing failed start of Website on rs1: unknown error
May 9 02:29:57 b pengine[9230]: warning: Processing failed start of Website on rs2: unknown error
May 9 02:29:57 b pengine[9230]: warning: Forcing Website away from rs1 after 1000000 failures (max=1000000)
May 9 02:29:57 b pengine[9230]: warning: Forcing Website away from rs2 after 1000000 failures (max=1000000)
May 9 02:29:57 b pengine[9230]: notice: * Stop Website ( rs1 ) due to node availability
May 9 02:29:57 b pengine[9230]: notice: Calculated transition 17, saving inputs in /var/lib/pacemaker/pengine/pe-input-17.bz2
...全文
479 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
m0_50551026 2021-01-25
  • 打赏
  • 举报
回复
apache没启动,上面不是说了吗

742

社区成员

发帖
与我相关
我的任务
社区描述
该论坛主要探讨Linux系统在IBM Power平台的安装、部署、应用开发等话题,并为网友们提供自由交流的平台。
社区管理员
  • Power Linux社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧