<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:等线;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@等线";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:等线;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"纯文本 字符";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
span.a
{mso-style-name:"纯文本 字符";
mso-style-priority:99;
mso-style-link:纯文本;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:等线;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoPlainText"><span lang="EN-US">1. There is no failure in initial status. sds1 is master<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><img width="665" height="528" style="width:6.927in;height:5.5in" id="图片_x0020_2" src="cid:image001.png@01D3DD75.3F4BF110"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">2. ifdown the sds1 VIP network card.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><img width="668" height="555" style="width:6.9583in;height:5.7812in" id="图片_x0020_3" src="cid:image002.png@01D3DD75.71D5DE70"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">3. ifup the sds1 VIP network card and then ifdown sds2 VIP network card<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><img width="447" height="539" style="width:4.6562in;height:5.6145in" id="图片_x0020_4" src="cid:image003.png@01D3DD76.26C5E820"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">-----</span><span style="font-family:等线">邮件原件</span><span lang="EN-US">-----<br>
</span><span style="font-family:等线">发件人</span><span lang="EN-US">: Jehan-Guillaume de Rorthais [mailto:jgdr@dalibo.com]
<br>
</span><span style="font-family:等线">发送时间</span><span lang="EN-US">: 2018</span><span style="font-family:等线">年</span><span lang="EN-US">4</span><span style="font-family:等线">月</span><span lang="EN-US">26</span><span style="font-family:等线">日</span><span lang="EN-US">
15:07<br>
</span><span style="font-family:等线">收件人</span><span lang="EN-US">: </span><span style="font-family:等线">范国腾</span><span lang="EN-US"> <fanguoteng@highgo.com><br>
</span><span style="font-family:等线">抄送</span><span lang="EN-US">: Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org>;
</span><span style="font-family:等线">李梦怡</span><span lang="EN-US"> <limengyi@highgo.com><br>
</span><span style="font-family:等线">主题</span><span lang="EN-US">: Re: [ClusterLabs] the PAF switchover does not happen if the VIP resource is stopped</span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">On Thu, 26 Apr 2018 02:53:33 +0000<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:等线">范国腾</span><span lang="EN-US"> <<a href="mailto:fanguoteng@highgo.com"><span style="color:windowtext;text-decoration:none">fanguoteng@highgo.com</span></a>> wrote:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> Hi Rorthais</span><span style="font-family:等线">,</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> Thank you for your help. <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> The replication works at that time. <o:p>
</o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> I try again today.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> (1) If I run "ifup enp0s3" in node2, then run "ifdown enp0s3" in
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> node1, the switchover issue could be reproduced. (2) But if I run
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> "ifup enp0s3" in node2, run "pcs resource cleanup mastergroup" to
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> clean the VIP resource, and there is no Failed Actions in "pcs
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> status", then run "ifdown enp0s3" in node1, it works. The switchover could happened again.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> Is there any parameter to control this behaviors so that I don't need
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> to execute the "pcs cleanup" command every time?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Check the failcounts for each resource on each nodes (pcs resource failcount [...]).<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Check the scores as well (crm_simulate -sL).<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> -----</span><span style="font-family:等线">邮件原件</span><span lang="EN-US">-----<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> </span><span style="font-family:等线">发件人</span><span lang="EN-US">: Jehan-Guillaume de Rorthais [<a href="mailto:jgdr@dalibo.com"><span style="color:windowtext;text-decoration:none">mailto:jgdr@dalibo.com</span></a>]<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> </span><span style="font-family:等线">发送时间</span><span lang="EN-US">: 2018</span><span style="font-family:等线">年</span><span lang="EN-US">4</span><span style="font-family:等线">月</span><span lang="EN-US">25</span><span style="font-family:等线">日</span><span lang="EN-US">
18:39<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> </span><span style="font-family:等线">收件人</span><span lang="EN-US">:
</span><span style="font-family:等线">范国腾</span><span lang="EN-US"> <<a href="mailto:fanguoteng@highgo.com"><span style="color:windowtext;text-decoration:none">fanguoteng@highgo.com</span></a>><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> </span><span style="font-family:等线">抄送</span><span lang="EN-US">: Cluster Labs - All topics related to open-source clustering
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> welcomed <<a href="mailto:users@clusterlabs.org"><span style="color:windowtext;text-decoration:none">users@clusterlabs.org</span></a>>;
</span><span style="font-family:等线">李梦怡</span><span lang="EN-US"> <<a href="mailto:limengyi@highgo.com"><span style="color:windowtext;text-decoration:none">limengyi@highgo.com</span></a>>
</span><span style="font-family:等线">主题</span><span lang="EN-US">: Re: <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> [ClusterLabs] the PAF switchover does not happen if the VIP resource
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> is stopped<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> On Wed, 25 Apr 2018 08:58:34 +0000<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> </span><span style="font-family:等线">范国腾</span><span lang="EN-US"> <<a href="mailto:fanguoteng@highgo.com"><span style="color:windowtext;text-decoration:none">fanguoteng@highgo.com</span></a>> wrote:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > Our lab has two resource: (1) PAF (master/slave) (2) VIP (bind to the<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > master PAF node). The configuration is in the attachment.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > Each node has two network card: One(enp0s8) is for the pacemaker
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > heartbeat in internal network, the other(enp0s3) is for the master
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > VIP in the external network.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > We are testing the following case: if the master VIP network card is
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > down, the master postgres and VIP could switch to another node.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > 1. At first, node2 is master, I run "ifdown enp0s3" in node2, then<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > node1 become the master, that is ok.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > 2. Then I run "ifup enp0s3" in node2, wait for 60 seconds,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> Did you check PostgreSQL instances were replicating again?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > then run "ifdown enp0s3" in node1, but the node1 still be master.
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">> > Why does switchover doesn't happened? How to recover to make system work?<o:p></o:p></span></p>
</div>
</body>
</html>