Configuring Redhat Enterprise Cluster Suite - LVS
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Networking > Configuring Redhat Enterprise Cluster Suite - LVS




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Configuring Redhat Enterprise Cluster Suite - LVS  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-18-04 03:34 PM

I am trying to setup up a simple LVS cluster to test a configuration I plan
on implementing with a customer.
Any help would be GREATLY appreciated and will contribute to additional
sales of Redhat ES and Redhat Cluster Suit.


2 boxes in my lab two laptops  intel boxes running Redhat  Ent V3 with
Redhat Cluster Suite installed on both.



-----------------                 ------------------------
|                     |                |                              |
|                     |                |                              |
|    Dir/             |                |                              |
|   real 1            |                |      real 2             |
|                     |                |                              |
|                     |                |                              |
|                     |                |                              |
|                     |                |                              |
|                     |                |                              |
-----------------                 ------------------------

Virtual IP Address 192.168.1.111
Real Box 1 IP: 192.168.1.108 (also the LVS Director)
Real Box 2 IP: 192.168.1.109

Each real box is running HTTP with a slightly different page so I can tell
which is serving.
Problem: I have tried both NAT routing and Direct Routing and in all cases
the servers serve the pages normal (going to direct IP) but when I use the
VIP address the page is returned very slowly (up to a minute vs about a
second directly)

I have tried a number of configuration changes, here is my latest
incarnation:

serial_no = 79
primary = 192.168.1.108
service = lvs
backup_active = 1
backup = 192.168.1.109
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
virtual willwecm3 {
active = 1
address = 192.168.1.111 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server willwecm1 {
address = 192.168.1.108
active = 1
weight = 1
}
server willwecm2 {
address = 192.168.1.109
active = 1
weight = 2
}
server willwecm1 {
address = 127.0.0.1
active = 1
weight = 1
}
}

Results of Netstat -rn

login as: root
root@192.168.1.108's password:
Last login: Wed Feb 18 18:41:14 2004 from :1.0
[root@willwecm1 root]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0
eth0
[root@willwecm1 root]#

And the results of ifconfig:
login as: root
root@192.168.1.108's password:
Last login: Wed Feb 18 18:41:14 2004 from :1.0
[root@willwecm1 root]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0
eth0
[root@willwecm1 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:D0:59:33:17:B9
inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1472 errors:0 dropped:0 overruns:0 frame:0
TX packets:1234 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114529 (111.8 Kb)  TX bytes:87144 (85.1 Kb)
Interrupt:11 Base address:0x7000 Memory:c0200000-c0200038

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:1323 errors:0 dropped:0 overruns:0 frame:0
TX packets:1323 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:128992 (125.9 Kb)  TX bytes:128992 (125.9 Kb)

[root@willwecm1 root]# eth0      Link encap:Ethernet  HWaddr
00:D0:59:33:17:B9
inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
-bash: eth0: command not found
[root@willwecm1 root]#           inet addr:192.168.1.108
Bcast:192.168.1.255  Mask:255.255.255.0
-bash: inet: command not found
[root@willwecm1 root]#           UP BROADCAST RUNNING MULTICAST  MTU:1500
Metric:1
-bash: UP: command not found
[root@willwecm1 root]#           RX packets:1472 errors:0 dropped:0
overruns:0 frame:0
-bash: RX: command not found
[root@willwecm1 root]#           TX packets:1234 errors:0 dropped:0
overruns:0 carrier:0
-bash: TX: command not found
[root@willwecm1 root]#           collisions:0 txqueuelen:1000
-bash: collisions:0: command not found
[root@willwecm1 root]#           RX bytes:114529 (111.8 Kb)  TX bytes:87144
(85.1 Kb)
-bash: syntax error near unexpected token `('
[root@willwecm1 root]#           Interrupt:11 Base address:0x7000
Memory:c0200000-c0200038
-bash: Interrupt:11: command not found
[root@willwecm1 root]#
[root@willwecm1 root]# lo        Link encap:Local Loopback
-bash: lo: command not found
[root@willwecm1 root]#           inet addr:127.0.0.1  Mask:255.0.0.0
-bash: inet: command not found
[root@willwecm1 root]#           UP LOOPBACK RUNNING  MTU:16436  Metric:1
-bash: UP: command not found
[root@willwecm1 root]#           RX packets:1323 errors:0 dropped:0
overruns:0 frame:0
-bash: RX: command not found
[root@willwecm1 root]#           TX packets:1323 errors:0 dropped:0
overruns:0 carrier:0
-bash: TX: command not found
[root@willwecm1 root]#           collisions:0 txqueuelen:0
-bash: collisions:0: command not found
[root@willwecm1 root]#           RX bytes:128992 (125.9 Kb)  TX bytes:128992
(125.9 Kb)
-bash: syntax error near unexpected token `('
[root@willwecm1 root]#           collisions:0 txque
-bash: collisions:0: command not found
[root@willwecm1 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:D0:59:33:17:B9
inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:2366 errors:0 dropped:0 overruns:0 frame:0
TX packets:1740 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:196879 (192.2 Kb)  TX bytes:159976 (156.2 Kb)
Interrupt:11 Base address:0x7000 Memory:c0200000-c0200038

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:1404 errors:0 dropped:0 overruns:0 frame:0
TX packets:1404 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:137410 (134.1 Kb)  TX bytes:137410 (134.1 Kb)

[root@willwecm1 root]#

I am trying to setup up a simple LVS cluster to test a configuration I plan
on implementing with a customer.  I don't know if you can offer any advice
or point me to a howto or forum but here is my attempted configuration:

Any help would be GREATLY appreciated and will contribute to additional
sales of Redhat ES and Redhat Cluster Suit.


2 boxes in my lab two laptops  intel boxes running Redhat  Ent V3 with
Redhat Cluster Suite installed on both.



-----------------                 ------------------------
|                     |                |                              |
|                     |                |                              |
|    Dir/          |                |                              |
|   real 1       |                |      real 2             |
|                     |                |                              |
|                     |                |                              |
|                     |                |                              |
|                     |                |                              |
|                     |                |                              |
-----------------                 ------------------------

Virtual IP Address 192.168.1.111
Real Box 1 IP: 192.168.1.108 (also the LVS Director)
Real Box 2 IP: 192.168.1.109

Each real box is running HTTP with a slightly different page so I can tell
which is serving.
Problem: I have tried both NAT routing and Direct Routing and in all cases
the servers serve the pages normal (going to direct IP) but when I use the
VIP address the page is returned very slowly (up to a minute vs about a
second directly)

I have tried a number of configuration changes, here is my latest
incarnation:

serial_no = 79
primary = 192.168.1.108
service = lvs
backup_active = 1
backup = 192.168.1.109
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
virtual willwecm3 {
active = 1
address = 192.168.1.111 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server willwecm1 {
address = 192.168.1.108
active = 1
weight = 1
}
server willwecm2 {
address = 192.168.1.109
active = 1
weight = 2
}
server willwecm1 {
address = 127.0.0.1
active = 1
weight = 1
}
}

Results of Netstat -rn

login as: root
root@192.168.1.108's password:
Last login: Wed Feb 18 18:41:14 2004 from :1.0
[root@willwecm1 root]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0
eth0
[root@willwecm1 root]#

And the results of ifconfig:
login as: root
root@192.168.1.108's password:
Last login: Wed Feb 18 18:41:14 2004 from :1.0
[root@willwecm1 root]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0
eth0
[root@willwecm1 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:D0:59:33:17:B9
inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1472 errors:0 dropped:0 overruns:0 frame:0
TX packets:1234 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114529 (111.8 Kb)  TX bytes:87144 (85.1 Kb)
Interrupt:11 Base address:0x7000 Memory:c0200000-c0200038

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:1323 errors:0 dropped:0 overruns:0 frame:0
TX packets:1323 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:128992 (125.9 Kb)  TX bytes:128992 (125.9 Kb)

[root@willwecm1 root]# eth0      Link encap:Ethernet  HWaddr
00:D0:59:33:17:B9
inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
-bash: eth0: command not found
[root@willwecm1 root]#           inet addr:192.168.1.108
Bcast:192.168.1.255  Mask:255.255.255.0
-bash: inet: command not found
[root@willwecm1 root]#           UP BROADCAST RUNNING MULTICAST  MTU:1500
Metric:1
-bash: UP: command not found
[root@willwecm1 root]#           RX packets:1472 errors:0 dropped:0
overruns:0 frame:0
-bash: RX: command not found
[root@willwecm1 root]#           TX packets:1234 errors:0 dropped:0
overruns:0 carrier:0
-bash: TX: command not found
[root@willwecm1 root]#           collisions:0 txqueuelen:1000
-bash: collisions:0: command not found
[root@willwecm1 root]#           RX bytes:114529 (111.8 Kb)  TX bytes:87144
(85.1 Kb)
-bash: syntax error near unexpected token `('
[root@willwecm1 root]#           Interrupt:11 Base address:0x7000
Memory:c0200000-c0200038
-bash: Interrupt:11: command not found
[root@willwecm1 root]#
[root@willwecm1 root]# lo        Link encap:Local Loopback
-bash: lo: command not found
[root@willwecm1 root]#           inet addr:127.0.0.1  Mask:255.0.0.0
-bash: inet: command not found
[root@willwecm1 root]#           UP LOOPBACK RUNNING  MTU:16436  Metric:1
-bash: UP: command not found
[root@willwecm1 root]#           RX packets:1323 errors:0 dropped:0
overruns:0 frame:0
-bash: RX: command not found
[root@willwecm1 root]#           TX packets:1323 errors:0 dropped:0
overruns:0 carrier:0
-bash: TX: command not found
[root@willwecm1 root]#           collisions:0 txqueuelen:0
-bash: collisions:0: command not found
[root@willwecm1 root]#           RX bytes:128992 (125.9 Kb)  TX bytes:128992
(125.9 Kb)
-bash: syntax error near unexpected token `('
[root@willwecm1 root]#           collisions:0 txque
-bash: collisions:0: command not found
[root@willwecm1 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:D0:59:33:17:B9
inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:2366 errors:0 dropped:0 overruns:0 frame:0
TX packets:1740 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:196879 (192.2 Kb)  TX bytes:159976 (156.2 Kb)
Interrupt:11 Base address:0x7000 Memory:c0200000-c0200038

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:1404 errors:0 dropped:0 overruns:0 frame:0
TX packets:1404 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:137410 (134.1 Kb)  TX bytes:137410 (134.1 Kb)

[root@willwecm1 root]#








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:58 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register