<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I see you have different netmasks for the VIP on node1 vs. node2;  I would also try breaking them out of the vrrp_sync_group and validating at least 1 router will fail independently.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Openstack [mailto:openstack-bounces+eric_e_smith=dell.com@lists.launchpad.net] <b>On Behalf Of </b>Lei Zhang<br><b>Sent:</b> Monday, May 06, 2013 3:07 AM<br><b>To:</b> openstack@lists.launchpad.net<br><b>Subject:</b> [Openstack] keepalive can not check the haproxy is down.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p style='mso-margin-top-alt:12.0pt;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white'><span style='font-family:"Helvetica","sans-serif";color:#222222'>Hi Guys,<o:p></o:p></span></p><p style='mso-margin-top-alt:12.0pt;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white'><span style='font-family:"Helvetica","sans-serif";color:#222222'>I am trying to use keepalive and haproxy to work together to improve the HA of the openstack. But I meet following<br>unexpected issue. <o:p></o:p></span></p><p style='mso-margin-top-alt:12.0pt;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white'><span style='font-family:"Helvetica","sans-serif";color:#222222'>I expect that when the haproxy process is crashed on the MASTER node(checked by chk_haproxy), the second node<br>will take over the VIP. But when I stop the haproxy process, nothing is happened.<br>However, when stop the keepalived service, the VIP is set up on the node2 as expected. <o:p></o:p></span></p><p style='mso-margin-top-alt:12.0pt;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white'><span style='font-family:"Helvetica","sans-serif";color:#222222'>So I think the root cause should be the chk_haproxy block. But I have no idea why it doesn't work. Does any body have<br>ideas?<o:p></o:p></span></p><p style='mso-margin-top-alt:12.0pt;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white'><strong><span style='font-family:"Helvetica","sans-serif";color:#222222'>node1 keepalived.conf</span></strong><span style='font-family:"Helvetica","sans-serif";color:#222222'><o:p></o:p></span></p><div><div id=markdown-here-wrapper-402162><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>global_defs {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    lvs_id LVS_228<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'><o:p> </o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_sync_group openstack_haproxy {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    group {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        v1<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        v2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_script chk_haproxy {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    script "killall -0 haproxy"<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    interval 2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    debug<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    weight 2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_instance v1 {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    interface eth0 <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    debug<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    state MASTER<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_router_id 1<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    priority 101<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_ipaddress {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        <a href="http://192.168.0.230/24">192.168.0.230/24</a><o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }    <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    track_script {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        chk_haproxy<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_instance v2 {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    interface eth1 <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    state MASTER<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    debug<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_router_id 2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    priority 101<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_ipaddress {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        <a href="http://10.1.0.30/16">10.1.0.30/16</a><o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }    <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    track_script {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        chk_haproxy<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }<o:p></o:p></span></code></pre><pre style='line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}</span></code><span style='font-size:12.0pt;font-family:Consolas;color:#222222'><o:p></o:p></span></pre><p style='mso-margin-top-alt:12.0pt;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white'><strong><span style='font-family:"Helvetica","sans-serif";color:#222222'>node2 keepalived.conf</span></strong><span style='font-family:"Helvetica","sans-serif";color:#222222'><o:p></o:p></span></p><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white;overflow:auto'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>global_defs {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    lvs_id LVS_229<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'><o:p> </o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_sync_group openstack_haproxy {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    group {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        v1<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        v2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_script chk_haproxy {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    script "killall -0 haproxy"<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    interval 2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    weight 2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_instance v1 {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    interface eth0 <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    state BACKUP<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_router_id 1<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    priority 100<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_ipaddress {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        192.168.0.230<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }    <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    track_script {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        chk_haproxy<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>vrrp_instance v2 {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    interface eth1 <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    state BACKUP<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_router_id 2<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    priority 100<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    virtual_ipaddress {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        10.1.0.30<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }    <o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    track_script {<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>        chk_haproxy<o:p></o:p></span></code></pre><pre style='mso-margin-top-alt:0in;margin-right:1.8pt;margin-bottom:0in;margin-left:1.8pt;margin-bottom:.0001pt;line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>    }<o:p></o:p></span></code></pre><pre style='line-height:14.4pt;background:white'><code><span style='font-family:Consolas;color:#333333;border:solid #CCCCCC 1.0pt;padding:6.0pt;background:ghostwhite'>}</span></code><span style='font-size:12.0pt;font-family:Consolas;color:#222222'><o:p></o:p></span></pre></div><div><p class=MsoNormal>-- <o:p></o:p></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Lei Zhang</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></span><o:p></o:p></p></div><div><p class=MsoNormal>twitter/weibo: @jeffrey4l<o:p></o:p></p></div></div></div></div></body></html>