<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>more configure details:</p>
<p>/etc/hosts:</p>
<p>172.60.60.34 centosA<br>
192.168.44.34 centosA-0<br>
192.168.55.34 centosA-1<br>
<br>
172.60.60.35 centosB<br>
192.168.44.35 centosB-0<br>
192.168.55.35 centosB-1</p>
<p>corosync.conf:</p>
<p>totem {<br>
version: 2<br>
secauth: on<br>
cluster_name: mycluster<br>
transport: udpu<br>
rrp_mode: passive<br>
}<br>
<br>
nodelist {<br>
node {<br>
ring0_addr: centosA-0<br>
ring1_addr: centosA-1<br>
nodeid: 1<br>
}<br>
<br>
node {<br>
ring0_addr: centosB-0<br>
ring1_addr: centosB-1<br>
nodeid: 2<br>
}<br>
}<br>
</p>
<p>Disconnect the heartbeat network cable ,and corosync-cfgtool -s:</p>
<pre class="moz-quote-pre" wrap="">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</pre>
<p>heartbeat ip binding to 127.0.0.1<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">在 2020/5/13 下午2:32, kexue 写道:<br>
</div>
<blockquote type="cite"
cite="mid:637fd071-e9d1-40d7-157f-c2c2f128855e@163.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Thanks.</p>
<p>Each node has 2 similarly connected/configured NIC's. Both
nodes are<br>
connected each other by two network cables.</p>
<pre class="moz-quote-pre" wrap="">'unplug' means Disconnect the network cable</pre>
<p><br>
</p>
<div class="moz-cite-prefix">在 2020/5/13 下午2:12, Strahil Nikolov
写道:<br>
</div>
<blockquote type="cite"
cite="mid:CC30B264-FD87-482F-B3B8-B39428312B60@yahoo.com">
<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" moz-do-not-send="true"><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>
<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" moz-do-not-send="true">kexue314@163.com</a></div>
</div>
</div>
</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>