为什么起搏器在辅助节点而不是主节点上启动?

我有两个运行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" 

缺less的设置是首选节点

您可以先添加资源,然后configuration首选节点以后运行它。

build议在资源粘性下面分配一个权重,以避免故障转移时发生意外停机。

检查起搏器文档是一个完整的例子。