<p dir="ltr">'crm configure show' or 'pcs config' can show any BANs (location constraints with 'cli-ban' in the name).<br>
Usually these happen when you force fully move a resource of a node or when the resource has failed too many times.</p>
<p dir="ltr">'crm resource clear resource-name' and 'pcs resource clear resource-name' should remove those.</p>
<p dir="ltr">N.B.: All commands here are written by memory and you should check the official online/offline documentation before executing them.</p>
<p dir="ltr">Best Regards,<br>
Strahil Nikolov</p>
<div class="quote">On Nov 6, 2019 12:19, 张冲andy <964955634@qq.com> wrote:<br type='attribution'><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br /></div><div style="text-align:justify"> <span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif;text-align:justify"></span><span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif;text-align:justify">How do I avoid a resource being -infinity at all nodes,</span><span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif;text-align:justify">There is no way to switch successfully when a disaster occurs. </span><span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif;text-align:justify">Such as, </span><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif">HAProxy_43234 is all </font><span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif">-infinity. </span><span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif">Looking forward to your reply . </span><span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 74 , 144 , 226 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif">Thank you very much</span></div><div style="text-align:justify"><span style="background-color:rgb( 247 , 248 , 250 );color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif"><br /></span></div><div style="text-align:justify"><span style="color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif;line-height:26px;background-color:rgb( 247 , 248 , 250 )">Version information:</span></div><div style="text-align:justify"><span style="background-color:rgb( 247 , 248 , 250 )"></span><div style="color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif">root@dc-dcb-corosync-haproxy-07:~# uname -a</div><div style="color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif">Linux dc-dcb-corosync-haproxy-07 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</div><div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif">root@dc-dcb-corosync-haproxy-07:~# corosync -v</font></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif">Corosync Cluster Engine, version '2.3.5'</font></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif">Copyright (c) 2006-2009 Red Hat, Inc.</font></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif">root@dc-dcb-corosync-haproxy-07:~# pacemakerd --version</font></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif">Pacemaker 1.1.14</font></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"><br /></font></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"><br /></font></div><div><br /></div><div><span style="color:rgb( 51 , 51 , 51 );font-family:'arial' , 'microsoft yahei' , , , 'malgun gothic' , 'meiryo' , sans-serif;line-height:26px">Configuration information:</span></div><div><span style="line-height:26px"><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"></font></span><div>root@dc-dcb-corosync-haproxy-08:~# cat /etc/corosync/corosync.conf </div><div>totem {</div><div> version: 2</div><div> threads: 8</div><div> secauth: on</div><div> token: 1000</div><div> token_retransmits_before_loss_const: 10</div><div> cluster_name: dba_cluster_3</div><div> transport: udpu</div><div> interface {</div><div> ringnumber: 0</div><div> bindnetaddr: current-node</div><div># broadcast: yes</div><div> mcastaddr: <a href="http://226.1.1.3">226.1.1.3</a></div><div> mcastport: 6407</div><div> ttl: 1</div><div> }</div><div>}</div><div><br /></div><div>logging {</div><div> fileline: off</div><div> to_logfile: yes</div><div> to_syslog: no</div><div> logfile: /data/corosync/corosync.log</div><div> timestamp: on</div><div> debug: on</div><div> logger_subsys {</div><div> subsys: AMF</div><div> debug: off</div><div> }</div><div>}</div><div><br /></div><div>service {</div><div> ver: 0</div><div> name: pacemaker</div><div>}</div><div><br /></div><div>quorum {</div><div> provider: corosync_votequorum</div><div> expected_votes: 2</div><div> wait_for_all: 1</div><div> last_man_standing: 1</div><div> last_man_standing_window: 10000</div><div> ## two_node: 1</div><div>}</div><div><br /></div><div>nodelist {</div><div> node {</div><div> ring0_addr: dc-dcb-corosync-haproxy-07</div><div> nodeid: 1</div><div> }</div><div> node {</div><div> ring0_addr: dc-dcb-corosync-haproxy-08</div><div> nodeid: 2</div><div> }</div><div> node {</div><div> ring0_addr: dc-dcb-corosync-haproxy-09</div><div> nodeid: 3</div><div> }</div><div>}</div></div><div><span style="line-height:26px"><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"><br /></font></span></div><div><span style="line-height:26px"><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"><br /></font></span></div><div><br /></div><div><span style="line-height:26px"><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"></font></span><div>root@dc-dcb-corosync-haproxy-08:~# crm_simulate -sL</div><div>Current cluster status:</div><div>Online: [ dc-dcb-corosync-haproxy-07 dc-dcb-corosync-haproxy-08 ]</div><div>OFFLINE: [ dc-dcb-corosync-haproxy-09 ]</div><div><br /></div><div> Resource Group: HAProxyGroup_test1_43231</div><div> HAProxyVIP_43231<span style="white-space:pre"> </span>(ocf::heartbeat:IPaddr):<span style="white-space:pre"> </span>Started dc-dcb-corosync-haproxy-07</div><div> HAProxy_43231<span style="white-space:pre"> </span>(systemd:haproxy43231):<span style="white-space:pre"> </span>Started dc-dcb-corosync-haproxy-07</div><div> Resource Group: HAProxyGroup_test2_43232</div><div> HAProxyVIP_43232<span style="white-space:pre"> </span>(ocf::heartbeat:IPaddr):<span style="white-space:pre"> </span>Started dc-dcb-corosync-haproxy-08</div><div> HAProxy_43232<span style="white-space:pre"> </span>(systemd:haproxy43232):<span style="white-space:pre"> </span>Started dc-dcb-corosync-haproxy-08</div><div> Resource Group: HAProxyGroup_test3_43233</div><div> HAProxyVIP_43233<span style="white-space:pre"> </span>(ocf::heartbeat:IPaddr):<span style="white-space:pre"> </span>Started dc-dcb-corosync-haproxy-08</div><div> HAProxy_43233<span style="white-space:pre"> </span>(systemd:haproxy43233):<span style="white-space:pre"> </span>Started dc-dcb-corosync-haproxy-08</div><div> Resource Group: HAProxyGroup_test4_43234</div><div> HAProxyVIP_43234<span style="white-space:pre"> </span>(ocf::heartbeat:IPaddr):<span style="white-space:pre"> </span>Stopped</div><div> HAProxy_43234<span style="white-space:pre"> </span>(systemd:haproxy43234):<span style="white-space:pre"> </span>Stopped</div><div><br /></div><div>Allocation scores:</div><div>group_color: HAProxyGroup_test1_43231 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxyGroup_test1_43231 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxyGroup_test1_43231 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxyVIP_43231 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxyVIP_43231 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxyVIP_43231 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxy_43231 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxy_43231 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxy_43231 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>native_color: HAProxyVIP_43231 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>native_color: HAProxyVIP_43231 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>native_color: HAProxyVIP_43231 allocation score on dc-dcb-corosync-haproxy-09: -INFINITY</div><div>native_color: HAProxy_43231 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>native_color: HAProxy_43231 allocation score on dc-dcb-corosync-haproxy-08: -INFINITY</div><div>native_color: HAProxy_43231 allocation score on dc-dcb-corosync-haproxy-09: -INFINITY</div><div>group_color: HAProxyGroup_test2_43232 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxyGroup_test2_43232 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxyGroup_test2_43232 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxyVIP_43232 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxyVIP_43232 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxyVIP_43232 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxy_43232 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxy_43232 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxy_43232 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>native_color: HAProxyVIP_43232 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>native_color: HAProxyVIP_43232 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>native_color: HAProxyVIP_43232 allocation score on dc-dcb-corosync-haproxy-09: -INFINITY</div><div>native_color: HAProxy_43232 allocation score on dc-dcb-corosync-haproxy-07: -INFINITY</div><div>native_color: HAProxy_43232 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>native_color: HAProxy_43232 allocation score on dc-dcb-corosync-haproxy-09: -INFINITY</div><div>group_color: HAProxyGroup_test3_43233 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxyGroup_test3_43233 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxyGroup_test3_43233 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxyVIP_43233 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxyVIP_43233 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxyVIP_43233 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxy_43233 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxy_43233 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxy_43233 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>native_color: HAProxyVIP_43233 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>native_color: HAProxyVIP_43233 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>native_color: HAProxyVIP_43233 allocation score on dc-dcb-corosync-haproxy-09: -INFINITY</div><div>native_color: HAProxy_43233 allocation score on dc-dcb-corosync-haproxy-07: -INFINITY</div><div>native_color: HAProxy_43233 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>native_color: HAProxy_43233 allocation score on dc-dcb-corosync-haproxy-09: -INFINITY</div><div>group_color: HAProxyGroup_test4_43234 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxyGroup_test4_43234 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxyGroup_test4_43234 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxyVIP_43234 allocation score on dc-dcb-corosync-haproxy-07: -INFINITY</div><div>group_color: HAProxyVIP_43234 allocation score on dc-dcb-corosync-haproxy-08: -INFINITY</div><div>group_color: HAProxyVIP_43234 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>group_color: HAProxy_43234 allocation score on dc-dcb-corosync-haproxy-07: 0</div><div>group_color: HAProxy_43234 allocation score on dc-dcb-corosync-haproxy-08: 0</div><div>group_color: HAProxy_43234 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>native_color: HAProxyVIP_43234 allocation score on dc-dcb-corosync-haproxy-07: -INFINITY</div><div>native_color: HAProxyVIP_43234 allocation score on dc-dcb-corosync-haproxy-08: -INFINITY</div><div>native_color: HAProxyVIP_43234 allocation score on dc-dcb-corosync-haproxy-09: 0</div><div>native_color: HAProxy_43234 allocation score on dc-dcb-corosync-haproxy-07: -INFINITY</div><div>native_color: HAProxy_43234 allocation score on dc-dcb-corosync-haproxy-08: -INFINITY</div><div>native_color: HAProxy_43234 allocation score on dc-dcb-corosync-haproxy-09: -INFINITY</div></div><div><span style="line-height:26px"><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"><br /></font></span></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"><br /></font></div><div><font color="#333333" face="Arial, Microsoft YaHei, \\5FAE软雅黑, \\5B8B体, Malgun Gothic, Meiryo, sans-serif"><br /></font></div></div></div></blockquote></div>