<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi Joel,</div><div>&nbsp; Thanks for the reply. It is indeed a intended behavior and i will discard the patch.<br></div><div>Thanks,</div><div>Xu<br></div><br><br><br><div  style="position:relative;zoom:1"></div><br><pre><br>From: Joel Colledge &lt;joel.colledge@linbit.com&gt;
Date: 2022-08-01 22:22:12
To:  Rui Xu &lt;rui.xu@easystack.cn&gt;
Cc:  Philipp Reisner &lt;philipp.reisner@linbit.com&gt;,drbd-dev@lists.linbit.com,dongsheng.yang@easystack.cn
Subject: Re: [PATCH] drbd: fix a bug with two-primaries configuration&gt;The behavior that you describe is the intended behavior, I believe. If
&gt;you have two primaries and want to disconnect them in a controlled
&gt;fashion, you should demote them first.
&gt;
&gt;As discussed previously, you probably should not be using
&gt;"allow-two-primaries" at all.
&gt;
&gt;The proposed patch unfortunately also breaks various other usage
&gt;scenarios. For instance, if you have two nodes that are both Secondary
&gt;and UpToDate, and run 'drbdsetup disconnect', it will cause them to
&gt;become Outdated.
&gt;
&gt;Best regards,
&gt;Joel
</pre></div><br>