[IPVS] try to install ipvs into VE [message #42227] |
Mon, 21 March 2011 10:10 |
skyangel
Messages: 1 Registered: March 2011
|
Junior Member |
|
|
Hi,
I am trying to set up an ipvs server into a VE.
I'am following the wiki:
But it's not enough.
To do that, i set up a network configuration like this:
On ipvs VE = VE1, I configure a veth device with mac address:
NETIF=" ifname=eth0,mac=00:0C:29:CA:90:9B,host_ifname=veth170002.0,h ost_mac=00:0C:29:3F:6D:E0 "
On hardware node, i configured a bridge device:
vzbr0 Link encap:Ethernet HWaddr 00:0C:29:3F:XX:XX
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.252.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:178105 errors:0 dropped:0 overruns:0 frame:0
TX packets:30025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11312394 (10.7 MiB) TX bytes:2568442 (2.4 MiB)
with interfaces:
brctl show
bridge name bridge id STP enabled interfaces
vzbr0 8000.000c293f6de0 no veth170002.0
bond0.1031
and bond0.1031
bond0.1031 Link encap:Ethernet HWaddr 00:1B:78:79:XX:XX
inet6 addr: fe80::21b:78ff:fe79:d114/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:931247 errors:0 dropped:0 overruns:0 frame:0
TX packets:975025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:115739325 (110.3 MiB) TX bytes:100705549 (96.0 MiB)
I switch on the capa NET_ADMIn on VE.
The same for applicative VE= VE2. I added a VIP on lo mode. XX.XX.XX.1
I installed a ipvs server onton VE1. And my rules is loaded:
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP XX.XX.XX.1:ldap rr
-> XX.XX.XX.XX:ldap Route 1 0 0
So, VE1 is listening on VIP on HME interface, like eth0.
On my VE2, i'am listening on port 389 on VIP.
But,
I 'm not available to do a telnet on VIP:389 since another HWN
[root@HWN ~]# telnet XX.XX.XX.1 389
Trying XX.XX.XX.1...
telnet: connect to address XX.XX.XX.1:389 Connection refused
My keepalived conf:
global_defs {
notification_email {
mail@mail.com
}
notification_email_from keepalived@hwn
smtp_server ZZ.ZZ.ZZ.ZZ
smtp_connect_timeout 30
}
vrrp_instance SSP_ECHAN {
state BACKUP
interface eth0
virtual_router_id 59
priority 99
advert_int 5
smtp_alert
authentication {
auth_type PASS
auth_pass SSP_ECHAN
}
virtual_ipaddress {
XX.XX.XX.1
}
}
virtual_server XX.XX.XX.1 389 {
delay_loop 30
lb_algo rr
lb_kind DR
protocol TCP
ha_suspend
virtualhost XX.XX.XX.1
real_server XX.XX.XX.XX 389 {
weight 1
AGENT_CHECK {
nb_retry 4
frequency 20
}
}
}
If you have an idea, please help me
Thx ahead.
|
|
|