<div dir="ltr">Thanks Eric,<div style>I have solve it after breaking down the group. </div><div style><br></div><div style>1. the different netmask is typo. And it doesn't break the failover. </div><div style>2. Why the group is unnecessary? When there are the two instances using the same check script , like this case, what's mean after grouping them?</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 6:37 PM,  <span dir="ltr"><<a href="mailto:Eric_E_Smith@dell.com" target="_blank">Eric_E_Smith@dell.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div lang="EN-US" link="blue" vlink="purple"><div><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.  <u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></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:<a href="mailto:openstack-bounces%2Beric_e_smith" target="_blank">openstack-bounces+eric_e_smith</a>=<a href="mailto:dell.com@lists.launchpad.net" target="_blank">dell.com@lists.launchpad.net</a>] <b>On Behalf Of </b>Lei Zhang<br>

<b>Sent:</b> Monday, May 06, 2013 3:07 AM<br><b>To:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br><b>Subject:</b> [Openstack] keepalive can not check the haproxy is down.<u></u><u></u></span></p>

<div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p style="margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white"><span style="font-family:"Helvetica","sans-serif";color:#222222">Hi Guys,<u></u><u></u></span></p>

<p style="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. <u></u><u></u></span></p><p style="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. <u></u><u></u></span></p><p style="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?<u></u><u></u></span></p>

<p style="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"><u></u><u></u></span></p>

<div><div><pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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"><u></u> <u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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"<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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 <u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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" target="_blank">192.168.0.230/24</a><u></u><u></u></span></code></pre>

<pre style="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">    }    <u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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 <u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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" target="_blank">10.1.0.30/16</a><u></u><u></u></span></code></pre>

<pre style="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">    }    <u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }<u></u><u></u></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"><u></u><u></u></span></pre>

<p style="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"><u></u><u></u></span></p>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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"><u></u> <u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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"<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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 <u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }    <u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }<u></u><u></u></span></code></pre>

<pre style="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">}<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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 <u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }    <u></u><u></u></span></code></pre>

<pre style="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 {<u></u><u></u></span></code></pre>

<pre style="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<u></u><u></u></span></code></pre>

<pre style="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">    }<u></u><u></u></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"><u></u><u></u></span></pre>

</div><div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Lei Zhang</span><u></u><u></u></p></div><div><p class="MsoNormal">

<u></u> <u></u></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><u></u><u></u></p>

</div><div><p class="MsoNormal">twitter/weibo: @jeffrey4l<u></u><u></u></p></div></div></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Lei Zhang</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><font face="arial, sans-serif">Blog: </font><a href="http://jeffrey4l.github.io" target="_blank">http://jeffrey4l.github.io</a></div>

<div>twitter/weibo: @jeffrey4l</div></div>
</div>