質問編集履歴
4
補足追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
★以下について、tomcat@tomcat.serviceを作成することでtomcat登録が正常に行えました。
|
2
2
|
しかし、なぜpacemaker+corosyncはtomcat.serviceではなく、tomcat@tomcat.serviceを
|
3
3
|
必要としていたのでしょうか?
|
4
|
+
【追記】tomcat@tomcat.serviceは既存のtomcat.serviceをコピーして作成しました。
|
4
5
|
|
5
6
|
pacemaker+corosyncに、リソースとしてtomcatを登録したいのですが、下記エラーが発生し、登録に失敗します。
|
6
7
|
|
3
追記情報
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,4 +18,70 @@
|
|
18
18
|
OS:CentOS7.3.1611
|
19
19
|
pacemake:1.1.15
|
20
20
|
corosync:2.4.0
|
21
|
-
tomcat:8.5.11
|
21
|
+
tomcat:8.5.11
|
22
|
+
|
23
|
+
■(追記)pcs config実行結果
|
24
|
+
```pcs
|
25
|
+
[root@osact ~]# pcs config
|
26
|
+
Cluster Name: cluster_os
|
27
|
+
Corosync Nodes:
|
28
|
+
osact ossby
|
29
|
+
Pacemaker Nodes:
|
30
|
+
osact ossby
|
31
|
+
|
32
|
+
Resources:
|
33
|
+
Resource: VIP (class=ocf provider=heartbeat type=IPaddr2)
|
34
|
+
Attributes: ip=192.168.172.9 cidr_netmask=24
|
35
|
+
Operations: start interval=0s timeout=20s (VIP-start-interval-0s)
|
36
|
+
stop interval=0s timeout=20s (VIP-stop-interval-0s)
|
37
|
+
monitor interval=10s (VIP-monitor-interval-10s)
|
38
|
+
Resource: Web_Cluster (class=ocf provider=heartbeat type=apache)
|
39
|
+
Attributes: configfile=/etc/httpd/conf/httpd.conf statusurl=http://127.0.0.1/server-status
|
40
|
+
Operations: start interval=0s timeout=40s (Web_Cluster-start-interval-0s)
|
41
|
+
stop interval=0s timeout=60s (Web_Cluster-stop-interval-0s)
|
42
|
+
monitor interval=1min (Web_Cluster-monitor-interval-1min)
|
43
|
+
Resource: Tomcat_Cluster (class=ocf provider=heartbeat type=tomcat)
|
44
|
+
Attributes: statusurl=http://127.0.0.1:8080/ java_home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre catalina_home=/usr/tomcat8 tomcat_user=tomcat
|
45
|
+
Operations: start interval=0s timeout=60s (Tomcat_Cluster-start-interval-0s)
|
46
|
+
stop interval=0s timeout=120s (Tomcat_Cluster-stop-interval-0s)
|
47
|
+
monitor interval=1min (Tomcat_Cluster-monitor-interval-1min)
|
48
|
+
|
49
|
+
Stonith Devices:
|
50
|
+
Fencing Levels:
|
51
|
+
|
52
|
+
Location Constraints:
|
53
|
+
Resource: VIP
|
54
|
+
Enabled on: osact (score:INFINITY) (role: Started) (id:cli-prefer-VIP)
|
55
|
+
Disabled on: ossby (score:-INFINITY) (role: Started) (id:cli-ban-VIP-on-ossby)
|
56
|
+
Ordering Constraints:
|
57
|
+
start VIP then start Web_Cluster (kind:Mandatory) (id:order-VIP-Web_Cluster-mandatory)
|
58
|
+
start Web_Cluster then start Tomcat_Cluster (kind:Mandatory) (id:order-Web_Cluster-Tomcat_Cluster-mandatory)
|
59
|
+
Colocation Constraints:
|
60
|
+
Web_Cluster with VIP (score:INFINITY) (id:colocation-Web_Cluster-VIP-INFINITY)
|
61
|
+
Tomcat_Cluster with VIP (score:INFINITY) (id:colocation-Tomcat_Cluster-VIP-INFINITY)
|
62
|
+
Resource Sets:
|
63
|
+
set VIP (id:pcs_rsc_set_VIP_Tomcat_Cluster) setoptions score=INFINITY (id:pcs_rsc_colocation_set_VIP_Tomcat_Cluster)
|
64
|
+
set VIP Tomcat_Cluster (id:pcs_rsc_set_VIP_Tomcat_Cluster-1) setoptions score=INFINITY (id:pcs_rsc_colocation_set_VIP_Tomcat_Cluster-1)
|
65
|
+
Ticket Constraints:
|
66
|
+
|
67
|
+
Alerts:
|
68
|
+
No alerts defined
|
69
|
+
|
70
|
+
Resources Defaults:
|
71
|
+
No defaults set
|
72
|
+
Operations Defaults:
|
73
|
+
No defaults set
|
74
|
+
|
75
|
+
Cluster Properties:
|
76
|
+
cluster-infrastructure: corosync
|
77
|
+
cluster-name: cluster_os
|
78
|
+
dc-version: 1.1.15-11.el7_3.2-e174ec8
|
79
|
+
have-watchdog: false
|
80
|
+
last-lrm-refresh: 1485467664
|
81
|
+
no-quorum-policy: ignore
|
82
|
+
stonith-enabled: false
|
83
|
+
|
84
|
+
Quorum:
|
85
|
+
Options:
|
86
|
+
[root@osact ~]#
|
87
|
+
```
|
2
補足追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
★以下について、tomcat@tomcat.serviceを作成することでtomcat登録が正常に行えました。
|
2
|
+
しかし、なぜpacemaker+corosyncはtomcat.serviceではなく、tomcat@tomcat.serviceを
|
3
|
+
必要としていたのでしょうか?
|
4
|
+
|
1
5
|
pacemaker+corosyncに、リソースとしてtomcatを登録したいのですが、下記エラーが発生し、登録に失敗します。
|
2
6
|
|
3
7
|
```corosync.log
|
1
補足追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
※tomcat@tomcat.serviceが無いことらしいのですが、
|
9
9
|
/usr/lib/systemd/system配下には、tomcat.serviceおよびtomcat@.serviceは
|
10
10
|
存在します。
|
11
|
-
※systemctl start tomcat で正常にtomcat起動でき、http://localhost:8080へも正常アクセスできることは確認済みです。
|
11
|
+
※pacemaker+corosyncを介さずに、systemctl start tomcat で正常にtomcat起動でき、http://localhost:8080へも正常アクセスできることは確認済みです。
|
12
12
|
|
13
13
|
■環境情報
|
14
14
|
OS:CentOS7.3.1611
|