LVS Clustering Not working - Help

Tapan Thapa <[email protected]> Sat, 31 Oct 2009 13:04:28 +0530
Newsgroups gmane.linux.redhat.piranha
Message-ID <[email protected]>
--===============1236089142==
Content-Type: multipart/alternative; boundary=000325553846adc51e0477362cee

--000325553846adc51e0477362cee
Content-Type: text/plain; charset=ISO-8859-1

Dear List Members,

Since last three days i am trying to implement LVS through Piranha under
testing but unfortunately i have no success.

I have configured lvs.cf via piranha web interface and followed all
instruction provided by the RHEL5_Virtual_Server_Administration.pdf for
direct routing as well as NAT routing.

My problem is pulse daemon is getting started properly and ips are also
getting alias in Ethernet interfaces but when i am firing netstat command to
see if port is listing as per my configuration then netstat command is not
showing any port.

My lvs.cf and netstat is attached.

ipvsadm output:

[root@lvs1 ~]# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.56.254:80 wlc persistent 600
  -> 192.168.56.103:80            Route   1      0          0

netstat output

[root@lvs1 ~]# netstat -an |grep 80
unix  3      [ ]         STREAM     CONNECTED     10580
/tmp/orbit-root/linc-a55-0-10162d195a1e1
unix  3      [ ]         STREAM     CONNECTED     9801
/var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     9800
unix  3      [ ]         STREAM     CONNECTED     7680
unix  2      [ ]         DGRAM                    7280
unix  2      [ ]         DGRAM                    6806
[root@lvs1 ~]#

lvs.cf

serial_no = 29
primary = 192.168.56.104
service = lvs
backup_active = 0
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
nat_nmask = 255.255.255.255
debug_level = NONE
virtual HTTP_Cluster {
     active = 1
     address = 192.168.56.254 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     persistent = 600
     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 real1.example.com {
         address = 192.168.56.103
         active = 1
         port = 80
         weight = 1
     }
}

I am unable to send port 80 traffic to its public ip as port is not listing.
Please help...

For you info i have tried nat and direct routing both and no luck.

Regards
Tapan Thapa

--000325553846adc51e0477362cee
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Dear List Members,<br><br>Since last three days i am trying to implement LV=
S through Piranha under testing but unfortunately i have no success.<br><br=
>I have configured <a href=3D"http://lvs.cf" target=3D"_blank">lvs.cf</a> v=
ia piranha web interface and followed all instruction provided by the RHEL5=
_Virtual_Server_Administration.pdf for direct routing as well as NAT routin=
g.<br>

<br>My problem is pulse daemon is getting started properly and ips are also=
 getting alias in Ethernet interfaces but when i am firing netstat command =
to see if port is listing as per my configuration then netstat command is n=
ot showing any port.<br>

<br>My <a href=3D"http://lvs.cf" target=3D"_blank">lvs.cf</a> and netstat i=
s attached.<br><br>ipvsadm output:<br><br>[root@lvs1 ~]# ipvsadm -L -n<br>I=
P Virtual Server version 1.2.1 (size=3D4096)<br>Prot LocalAddress:Port Sche=
duler Flags<br>
=A0 -&gt; RemoteAddress:Port=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Forward Weight A=
ctiveConn InActConn<br>
TCP=A0 <a href=3D"http://192.168.56.254:80" target=3D"_blank">192.168.56.25=
4:80</a> wlc persistent 600<br>=A0 -&gt; <a href=3D"http://192.168.56.103:8=
0" target=3D"_blank">192.168.56.103:80</a>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 Route=A0=A0 1=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0<br>
<br>netstat output<br><br>[root@lvs1 ~]# netstat -an |grep 80<br>
unix=A0 3=A0=A0=A0=A0=A0 [ ]=A0=A0=A0=A0=A0=A0=A0=A0 STREAM=A0=A0=A0=A0 CON=
NECTED=A0=A0=A0=A0 10580=A0 /tmp/orbit-root/linc-a55-0-10162d195a1e1<br>uni=
x=A0 3=A0=A0=A0=A0=A0 [ ]=A0=A0=A0=A0=A0=A0=A0=A0 STREAM=A0=A0=A0=A0 CONNEC=
TED=A0=A0=A0=A0 9801=A0=A0 /var/run/dbus/system_bus_socket<br>unix=A0 3=A0=
=A0=A0=A0=A0 [ ]=A0=A0=A0=A0=A0=A0=A0=A0 STREAM=A0=A0=A0=A0 CONNECTED=A0=A0=
=A0=A0 9800<br>

unix=A0 3=A0=A0=A0=A0=A0 [ ]=A0=A0=A0=A0=A0=A0=A0=A0 STREAM=A0=A0=A0=A0 CON=
NECTED=A0=A0=A0=A0 7680<br>unix=A0 2=A0=A0=A0=A0=A0 [ ]=A0=A0=A0=A0=A0=A0=
=A0=A0 DGRAM=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 7280<=
br>unix=A0 2=A0=A0=A0=A0=A0 [ ]=A0=A0=A0=A0=A0=A0=A0=A0 DGRAM=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 6806<br>[root@lvs1 ~]#<br><br=
><a href=3D"http://lvs.cf">lvs.cf</a> <br>
<br>serial_no =3D 29<br>primary =3D 192.168.56.104<br>service =3D lvs<br>ba=
ckup_active =3D 0<br>backup =3D 0.0.0.0<br>heartbeat =3D 1<br>heartbeat_por=
t =3D 539<br>keepalive =3D 6<br>deadtime =3D 18<br>network =3D direct<br>na=
t_nmask =3D 255.255.255.255<br>
debug_level =3D NONE<br>virtual HTTP_Cluster {<br>=A0=A0=A0=A0 active =3D 1=
<br>=A0=A0=A0=A0 address =3D 192.168.56.254 eth0:1<br>=A0=A0=A0=A0 vip_nmas=
k =3D 255.255.255.0<br>=A0=A0=A0=A0 port =3D 80<br>=A0=A0=A0=A0 persistent =
=3D 600<br>=A0=A0=A0=A0 send =3D &quot;GET / HTTP/1.0\r\n\r\n&quot;<br>
=A0=A0=A0=A0 expect =3D &quot;HTTP&quot;<br>=A0=A0=A0=A0 use_regex =3D 0<br=
>=A0=A0=A0=A0 load_monitor =3D none<br>=A0=A0=A0=A0 scheduler =3D wlc<br>=
=A0=A0=A0=A0 protocol =3D tcp<br>=A0=A0=A0=A0 timeout =3D 6<br>=A0=A0=A0=A0=
 reentry =3D 15<br>=A0=A0=A0=A0 quiesce_server =3D 0<br>=A0=A0=A0=A0 server=
 <a href=3D"http://real1.example.com">real1.example.com</a> {<br>
=A0=A0=A0=A0=A0=A0=A0=A0 address =3D 192.168.56.103<br>=A0=A0=A0=A0=A0=A0=
=A0=A0 active =3D 1<br>=A0=A0=A0=A0=A0=A0=A0=A0 port =3D 80<br>=A0=A0=A0=A0=
=A0=A0=A0=A0 weight =3D 1<br>=A0=A0=A0=A0 }<br>}<br><br>I am unable to send=
 port 80 traffic to its public ip as port is not listing. Please help...<br=
><br>
For you info i have tried nat and direct routing both and no luck.<br>
<br>Regards<br>Tapan Thapa<br>

--000325553846adc51e0477362cee--


--===============1236089142==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Piranha-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/piranha-list
--===============1236089142==--