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