<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=gb2312">
<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">Hi,<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 master PAF node). The configuration is in the attachment.<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 heartbeat in internal network, the other(enp0s3) is for the master 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">We are testing the following case: if the master VIP network card is 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">1. At first, node2 is master, I run "ifdown enp0s3" in node2, then 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"><img width="431" height="115" style="width:4.4895in;height:1.1979in" id="图片_x0020_1" src="cid:image001.png@01D3DCB4.E6FC6140"></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"><img width="865" height="185" style="width:9.0104in;height:1.927in" id="图片_x0020_2" src="cid:image002.png@01D3DCB5.4DF4DA80"></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. Then I run "ifup enp0s3" in node2, wait for 60 seconds, then run "ifdown enp0s3" in node1, but the node1 still be master. Why does switchover doesn't happened? How to recover to make system work?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><img width="874" height="214" style="width:9.1041in;height:2.2291in" id="图片_x0020_3" src="cid:image003.png@01D3DCB5.AC487F60"></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">The log is in the attachment. Node1 reports the following waring:<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">Apr 25 04:49:27 node1 crmd[24678]: notice: State transition S_IDLE -> S_POLICY_ENGINE<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Apr 25 04:49:27 node1 pengine[24677]: warning: Processing failed op start for master-vip on sds2: unknown error (1)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Apr 25 04:49:27 node1 pengine[24677]: warning: Processing failed op start for master-vip on sds1: unknown error (1)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Apr 25 04:49:27 node1 pengine[24677]: warning: Forcing master-vip away from sds1 after 1000000 failures (max=1000000)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Apr 25 04:49:27 node1 pengine[24677]: warning: Forcing master-vip away from sds2 after 1000000 failures (max=1000000)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Apr 25 04:49:27 node1 pengine[24677]: notice: Calculated transition 14, saving inputs in /var/lib/pacemaker/pengine/pe-input-59.bz2<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Apr 25 04:49:27 node1 crmd[24678]: notice: Transition 14 (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0, Source=/var/lib/pacemaker/pengine/pe-input-59.bz2): Complete<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>
</div>
</body>
</html>