LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

problem getting vrrp to work in very simple setup

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: problem getting vrrp to work in very simple setup
From: Nathan Neulinger <nneul@xxxxxxx>
Date: Tue, 17 Feb 2004 17:19:17 -0600
It seems like it's ALMOST working though. Two boxes IPVS1, IPVS2. 

If I start up KA on ipvs1, it comes online with the ip for both ipvs1 and ipvs2 
as master.
If I then start up KA on ipvs2, ipvs1 says it received a advert with higher 
priority and goes
to backup state and drops the extra ip.

If I then kill KA on ipvs2, nothing happens. ipvs1 never goes back into master 
state.

This also works in reverse if I start with ipvs2. Same problem though with it 
not recovering from a failure. 

Any suggestions on what I've got screwed up? I've tried to minimize the config 
that I'm testing with. (I actually
don't care about the .206 and .207 addresses, I really just want to run in 
active/standby mode with one or more LVS 
VIPs w/ DR mode on a single eth interface.)

-- Nathan


Here's config from ipvs1:

global_defs {
        notification_email {
                nneul@xxxxxxx
        }
        notification_email_from sysmon@xxxxxxx
        smtp_server 131.151.1.120
        smtp_connect_timeout 10
        lvs_id "ipvs1"
}

vrrp_instance VI_IPVS1 {
        state MASTER
        interface bond0
        virtual_router_id 53
        priority 150
        advert_int 1
        smtp_alert
        authentication {
                auth_type PASS
                auth_pass example3
        }
        virtual_ipaddress {
                131.151.1.206
        }
}

vrrp_instance VI_IPVS2 {
        state BACKUP
        interface bond0
        virtual_router_id 54
        priority 100
        advert_int 1
        smtp_alert
        authentication {
                auth_type PASS
                auth_pass example4
        }
        virtual_ipaddress {
                131.151.1.207
        }
}







Here's config from ipvs2:

global_defs {
        notification_email {
                nneul@xxxxxxx
        }
        notification_email_from sysmon@xxxxxxx
        smtp_server 131.151.1.120
        smtp_connect_timeout 10
        lvs_id "ipvs2"
}

vrrp_instance VI_IPVS1 {
        state BACKUP
        interface bond0
        virtual_router_id 53
        priority 100
        advert_int 1
        smtp_alert
        authentication {
                auth_type PASS
                auth_pass example3
        }
        virtual_ipaddress {
                131.151.1.206
        }
}

vrrp_instance VI_IPVS2 {
        state MASTER
        interface bond0
        virtual_router_id 54
        priority 150
        advert_int 1
        smtp_alert
        authentication {
                auth_type PASS
                auth_pass example4
        }
        virtual_ipaddress {
                131.151.1.207
        }
}











-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@xxxxxxx
University of Missouri - Rolla         Phone: (573) 341-6679
UMR Information Technology             Fax: (573) 341-4216
<Prev in Thread] Current Thread [Next in Thread>