我有两个运行 httpd 服务的 Linux 节点。当我尝试在主节点上添加 httpd 资源时,该服务在第二个节点上启动,而不是在主节点上启动。
我在这里遗漏了什么?
初始设置:
node vpc-storage-primary \
attributes standby="off"
node vpc-storage-secondary \
attributes standby="off"
property $id="cib-bootstrap-options" \
dc-version="1.1.9-55.2-2db99f1" \
cluster-infrastructure="classic openais (with plugin)" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
migration-threshold="2" \
last-lrm-refresh="1370680015"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
crm_mon
:
Last updated: Sat Jun 8 09:41:20 2013
Last change: Sat Jun 8 09:28:49 2013 via cibadmin on vpc-storage-primary
Stack: classic openais (with plugin)
Current DC: vpc-storage-primary - partition with quorum
Version: 1.1.9-55.2-2db99f1
2 Nodes configured, 2 expected votes
0 Resources configured.
Online: [ vpc-storage-primary vpc-storage-secondary ]
我想在主服务器上添加的服务:
crm configure primitive httpd lsb:httpd \
op monitor interval="30s" timeout="60" \
op start interval="0" timeout="60" \
op stop interval="0"