nopreempt not working

benjamin fernandis <[email protected]> Mon, 13 May 2013 22:41:04 +0530
Newsgroups gmane.linux.keepalived.announce
Message-ID <CAARrgqz_QvZ_WOTt+3W0+=hUfTtmzhFeJqeQeX5FuzNOyHPSXg@mail.gmail.com>
--===============4478559880858462928==
Content-Type: multipart/alternative; boundary=047d7b671ed00c600d04dc9c9afc

--047d7b671ed00c600d04dc9c9afc
Content-Type: text/plain; charset=UTF-8

<http://serverfault.com/questions/497182/keepalived-nopreempt-option-not-working#>

I want to use nopreempt option with keepalived vrrp setting to run backup
node as master when master goes down and again reback into network.

I setup nopreempt option in both servers and set state as backup in both
servers but it is not working as per behavior, when master comes back, it
takes ownership.

Please guide to resolve it

  Master Machine:
  ! Configuration File for keepalived
   vrrp_instance VI_1 {
   state BACKUP
   nopreempt
   interface eth0
   virtual_router_id 1
   priority 250
   advert_int 1
   virtual_ipaddress {
    192.168.1.2/24
    }
  }

  Backup Machine :
  ! Configuration File for keepalived
   vrrp_instance VI_1 {
   state BACKUP
   nopreempt
   interface eth0
   virtual_router_id 1
   priority 200
   advert_int 1
   virtual_ipaddress {
     192.168.1.2/24
   }

}

Regards, Ben

--047d7b671ed00c600d04dc9c9afc
Content-Type: text/html; charset=UTF-8

<div dir="ltr"><table><tbody><tr><td class=""><div class="">
    <span class=""><br></span><a class="" href="http://serverfault.com/questions/497182/keepalived-nopreempt-option-not-working#" title="This is a favorite question (click again to undo)"></a>
       

 
</div>

            </td>
            
<td class="">
<div>
    <div class="">
        <p>I want to use nopreempt option with keepalived vrrp setting 
to run backup node as master when master goes down and again reback into
 network.</p>

<p>I setup nopreempt option in both servers and set state as backup in 
both servers but it is not working as per behavior, when master comes back, it takes ownership.<br></p>

<p>Please guide to resolve it</p>

<pre><code>  Master Machine: 
  ! Configuration File for keepalived
   vrrp_instance VI_1 {
   state BACKUP
   nopreempt
   interface eth0
   virtual_router_id 1
   priority 250
   advert_int 1
   virtual_ipaddress {
    <a href="http://192.168.1.2/24">192.168.1.2/24</a>
    } 
  }

  Backup Machine :
  ! Configuration File for keepalived
   vrrp_instance VI_1 {
   state BACKUP
   nopreempt
   interface eth0
   virtual_router_id 1
   priority 200
   advert_int 1
   virtual_ipaddress {
     <a href="http://192.168.1.2/24">192.168.1.2/24</a>
   }
</code></pre>

<p>}</p>

<p>Regards,
Ben</p>

    </div></div></td></tr></tbody></table></div>

--047d7b671ed00c600d04dc9c9afc--


--===============4478559880858462928==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
--===============4478559880858462928==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Keepalived-announce mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-announce

--===============4478559880858462928==--