<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,guys,</p>
<p>I have solved this problem.</p>
<p>I installed NetworkManager-config-server in my centos7 OS. It
changes the behavior of NetworkManager.</p>
<p>Now, disconnect the heartbeat network cable, 127.0.0.1 will not
be binded to heartbeat IP.</p>
<p>Thanks.<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">在 2020/5/13 下午2:57, Ulrich Windl 写道:<br>
</div>
<blockquote type="cite"
cite="mid:5EBB9A6A020000A100038F60@gwsmtp.uni-regensburg.de">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">kexue <a class="moz-txt-link-rfc2396E" href="mailto:kexue314@163.com"><kexue314@163.com></a> schrieb am 13.05.2020 um 08:46 in Nachricht
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap=""><a class="moz-txt-link-rfc2396E" href="mailto:940_1589352410_5EBB97DA_940_560_1_826b6602-7157-4f1a-7c64-3f6583ff6ce9@163.com"><940_1589352410_5EBB97DA_940_560_1_826b6602-7157-4f1a-7c64-3f6583ff6ce9@163.com></a>
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">more configure details:
/etc/hosts:
172.60.60.34 centosA
192.168.44.34 centosA-0
192.168.55.34 centosA-1
172.60.60.35 centosB
192.168.44.35 centosB-0
192.168.55.35 centosB-1
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Hi!
I don't know whether it matters, but the canonical form of host file entries
is
<IP> <FQHN> [<alias>]...
If you are also using a nameserver, make sure the FQHN in the host file
matches the name in DNS.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
corosync.conf:
totem {
version: 2
secauth: on
cluster_name: mycluster
transport: udpu
rrp_mode: passive
}
nodelist {
node {
ring0_addr: centosA-0
ring1_addr: centosA-1
nodeid: 1
}
node {
ring0_addr: centosB-0
ring1_addr: centosB-1
nodeid: 2
}
}
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Also we run a different version, but we also set "name" of the node. ANd we
have the address explicitly, not the network (host) name...
Regards,
Ulrich
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Disconnect the heartbeat network cable ,and corosync-cfgtool -s:
RING ID 0
id = 127.0.0.1
status = ring 0 active with no faults
RING ID 1
id = 127.0.0.1
status = ring 1 active with no faults
heartbeat ip binding to 127.0.0.1
在 2020/5/13 下午2:32, kexue 写道:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Thanks.
Each node has 2 similarly connected/configured NIC's. Both nodes are
connected each other by two network cables.
'unplug' means Disconnect the network cable
在 2020/5/13 下午2:12, Strahil Nikolov 写道:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On May 12, 2020 3:10:28 PM GMT+03:00, kexue<a class="moz-txt-link-rfc2396E" href="mailto:kexue314@163.com"><kexue314@163.com></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi,
I have a two-nodes cluster on Centos7,and heartbeat interfaces connects
directly.
Execute "corosync-cfgtool -s" command :
# corosync-cfgtool -s
Printing ring status.
Local node ID 2
RING ID 0
id = 192.168.44.35
status = ring 0 active with no faults
RING ID 1
id = 192.168.55.35
status = ring 1 active with no faults
Unpluged the heartbeat network cable,Execute "corosync-cfgtool -s"
command :
# corosync-cfgtool -s
Printing ring status.
Local node ID 2
RING ID 0
id = 127.0.0.1
status = ring 0 active with no faults
RING ID 1
id = 127.0.0.1
status = ring 1 active with no faults
What is wrong with this? Could you give me some advice.
Thanks.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">How do you 'unplug' the cable ?
Best Regards,
Strahil Nikolov
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">--
kexue
=====================================================
-岂曰无衣-
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:kexue314@163.com">kexue314@163.com</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">--
kexue
=====================================================
-岂曰无衣-
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:kexue314@163.com">kexue314@163.com</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
_______________________________________________
Manage your subscription:
<a class="moz-txt-link-freetext" href="https://lists.clusterlabs.org/mailman/listinfo/users">https://lists.clusterlabs.org/mailman/listinfo/users</a>
ClusterLabs home: <a class="moz-txt-link-freetext" href="https://www.clusterlabs.org/">https://www.clusterlabs.org/</a>
</pre>
</blockquote>
<div class="moz-signature">-- <br>
<div style="font-size: 12px;color: #478fe0;">
<div>kexue</div>
<div>=====================================================</div>
<div>-岂曰无衣-</div>
<div>E-mail: <a class="moz-txt-link-abbreviated" href="mailto:kexue314@163.com">kexue314@163.com</a></div>
</div>
</div>
</body>
</html>