I have two questions:
1. I am experiencing a peculiar problem with my test lvs_dr setup.
when I run rc.lvs_dr
made from the following:
LVS_TYPE=VS_DR
INITIAL_STATE=on
VIP=eth0:110 207.100.37.10 255.255.255.255 207.100.37.10
DIRECTOR_INSIDEIP=eth0 207.100.37.2 255.255.255.0 207.100.38.255
SERVICE=t http rr 207.100.37.3:http 207.100.37.4:http
SERVER_VIP_DEVICE=lo:0
SERVER_NET_DEVICE=eth0
SERVER_DEFAULT_GW=207.100.37.1
it takes my director completely off the network till I re-run
/etc/rc.d/rc.inet1
then all is well, and the lvsdir will work as planned. the interfaces are
all still there when I run an ifconfig, and the output of ifconfig is
identical other than RX and TX packet info.
before re-running rc.inet1
eth0 Link encap:Ethernet HWaddr 00:01:02:76:B5:28
inet addr:207.100.37.2 Bcast:207.100.37.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:884 errors:0 dropped:0 overruns:0 frame:0
TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:5 Base address:0xb800
eth0:110 Link encap:Ethernet HWaddr 00:01:02:76:B5:28
inet addr:207.100.37.10 Bcast:207.100.37.255
Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0xb800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
after re-running rc.inet1:
eth0 Link encap:Ethernet HWaddr 00:01:02:76:B5:28
inet addr:207.100.37.2 Bcast:207.100.37.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:870 errors:0 dropped:0 overruns:0 frame:0
TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:5 Base address:0xb800
eth0:110 Link encap:Ethernet HWaddr 00:01:02:76:B5:28
inet addr:207.100.37.10 Bcast:207.100.37.255
Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0xb800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
(director info 2.2.18 kernel, patched with ipvs-1.0.5-2.2.18.patch-
I have gotten a fresh kernel, repatched and recompiled with the same
results)
at this point I have a script that runs the rc.lvs_dr file and then
/etc/rc.d/rc.inet1 which brings the machine back on line.
my physical setup is as follows
________
| |
| client |
|________|
207.100.37.1
|
|
__________ |
| | | 207.100.37.10 (eth0:110)
| director |---|
|__________| | 207.100.37.2 (eth0)
|
|
-----------------------------------
| |
| |
207.100.37.3 (eth0) 207.100.37.4(eth0)
207.100.37.10 (lo:0) 207.100.37.10 (lo:0)
_____________ ______________
| | | |
| real-server | | real-server2 |
|_____________| |______________|
and 2:
can anyone point me to the conf file/docs section to allow the director to
accept requests for multiple virtualhosts on the realservers? I have seen
this mentioned in the archives, but none of my attempts have been
successful.
I am thinking that you assign VIP=eth0:111 xxx xxx etc, but how do you get
SERVER_VIP_DEVICE to pick that up correctly?
is there any other information that I need to pass along?
thank you.
steve
steve mcconnell
emji
919.303.3217:126
|