# crm configure shownode pcmk-1node pcmk-2property $id="cib-bootstrap-options" dc-version="1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f" cluster-infrastructure="openais" expected-quorum-votes="2"For those that are not of afraid of XML, you can see the raw configuration by appending "xml" to the previous command.这是本文档最后一次显示XML。(作者怨念很深啊)
# crm configure show xml在我们做出任何改变之前,我们最好检查下配置文件。
# crm_verify -Lcrm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been definedcrm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled optioncrm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrityErrors found during check: config not valid -V may provide more details#就像你看到的,这个工具发现了一些错误。In order to guarantee the safety of your data [12] , Pacemaker ships with STONITH [13] enabled. However it also knows when no STONITH configuration has been supplied and reports this as a problem (since the cluster would not be able to make progress if a situation requiring node fencing arose).目前,我们禁用这个特性,然后在 配置STONISH 章节来配置它。这里要指出,使用STONITH是非常有必要的。关闭这个特性就是告诉集群:假装故障的节点已经安全的关机了。一些供应商甚至不允许这个特性被关闭。我们将 stonith-enabled设置为 false 来关闭STONITH
# crm configure property stonith-enabled=false# crm_verify -L设置完这个选项以后,校验配置文件就正常了。
警告
The use of stonith-enabled=false is completely inappropriate for a production cluster. We use it here to defer the discussion of its configuration which can differ widely from one installation to the next. See 第9.1节 “What Is STONITH” for information on why STONITH is important and details on how to configure it.