LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Stuck trying to use Piranha and LVS (https://www.linuxquestions.org/questions/linux-networking-3/stuck-trying-to-use-piranha-and-lvs-721272/)

TheGorf 04-23-2009 06:15 PM

Stuck trying to use Piranha and LVS
 
Is this networking? Is this server? I figured networking works...

Anyway, I'm trying to get LVS up and running on CentOS 5.3 x86-64. Everything setup fine and went according to documentation here:

http://www.centos.org/docs/5/html/Vi...ion/index.html

Except when I actually go to start the pulse service, I get the following error:

Starting pulse: pulse: no active lvs services defined in /etc/sysconfig/ha/lvs.cf [FAILED]

This is my first adventure into using LVS for load balancing, so I'm not sure where to go next. For reference here is my lvs.conf:

Code:

serial_no = 26
primary = 192.168.16.210
primary_private = 10.3.0.1
service = lvs
backup_active = 0
backup = 192.168.16.247
backup_private = 10.3.0.2
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 10.3.0.3 eth0:1
nat_nmask = 255.255.0.0
debug_level = NONE
monitor_links = 0
syncdaemon = 0
virtual www.testdomain.com {
    active = 0
    address = 192.168.16.221 eth1:1
    vip_nmask = 255.255.255.0
    port = 80
    use_regex = 0
    load_monitor = none
    scheduler = wlc
    protocol = tcp
    timeout = 6
    reentry = 15
    quiesce_server = 0
    server web1.prod.testdomain.com {
        address = 10.3.1.1
        active = 0
        weight = 1
    }
    server web2.prod.testdomain.com {
        address = 10.3.1.2
        active = 0
        weight = 1
    }
}

Thoughts or opinions?

Thanks!

TheGorf 04-23-2009 07:41 PM

dear lord, the answer was staring me in the face. On the main Piranha page on the Virtual Servers tab, you have to click the radio button next to the virtual server and click the "activate" button. That changes the lvs.cf entry from this:

Code:

virtual www.testdomain.com {     
    active = 0

to this

Code:

virtual www.testdomain.com {     
    active = 1

I still can't get packets through, but at least the service is now running.

jmazaredo 04-18-2013 04:25 AM

dear lord
 
AMEN to that. staring at me also


All times are GMT -5. The time now is 03:52 PM.