Re: nopreempt not working

<[email protected]> Tue, 14 May 2013 11:42:05 +0000
Newsgroups gmane.linux.keepalived.announce
Message-ID <647AFE917F69F44E8165A3BB7A30A7050BC88100@aai-exch-mbx1.campus.unibe.ch>
Ok I've tried to reproduce the setup like this :

lb01:~# cat /etc/keepalived/keepalived.conf.basic 
vrrp_instance LB {                            
 state MASTER                                  
 interface eth0
 router_id lb01                         
 virtual_router_id 1                            
 priority 100

 authentication {                               
        auth_type PASS                                
        auth_pass password                            
 }

}


lb02:~# cat  /etc/keepalived/keepalived.conf.basic 
vrrp_instance LB {                            
 state BACKUP
 interface eth0
 router_id lb02
 virtual_router_id 1                            
 priority 50
 nopreempt

 authentication {                               
        auth_type PASS                                
        auth_pass password                            
 }

}

to quote http://manpages.ubuntu.com/manpages/precise/en/man5/keepalived.conf.5.html

# VRRP will normally preempt a lower priority
# machine when a higher priority machine comes
# online.  "nopreempt" allows the lower priority
# machine to maintain the master role, even when
# a higher priority machine comes back online.
# NOTE: For this to work, the initial state of this
# entry must be BACKUP.
nopreempt


Steps taken :

1.) both are online - lb01 is in MASTER state
2.) lb01 is shut down
3.) lb02 takes over (as expected)
4.) lb01 is started again and is MASTER again (not as expected) 

I unfortunately don't know why 'nopreempt' has no effect ?!
Sorry.

(Version 1.2.7 used)


---

Jan









------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d