我有两个STONITH资源的Pacemaker设置。 他们有位置约束, crm configure show列表如下:
location loc_stonith_node1 stonith_node1 rule -inf: #id eq node1 location loc_stonith_node2 stonith_node2 rule -inf: #id eq node2
然而, crm status表明两个资源都在node2上启动:
stonith_node1 (stonith:external/ipmi): Started node2 stonith_node2 (stonith:external/ipmi): Started node2
如果我crm resource stop ,然后crm resource start这两个资源甚至持续这种情况。 有什么可以解释的位置约束显然不服从?
更新如果我crm resource migrate stonith_node2 node1资源启动node1 ,但如果我然后crm resource unmigrate stonith_node2它立即弹回到node2 。
我已经通过切换到另一个语法forms来解决这个问题,这个地址限制既不需要引用#id也不需要#uname :
location loc_stonith_node1 stonith_node1 -inf: node1 location loc_stonith_node2 stonith_node2 -inf: node2