[Linux-cluster] doubts in Piranha

mehmet celik bsd_daemon at msn.com
Wed Jul 11 13:39:00 UTC 2007


hi, did you make "ip_forward" active on lvs ? lvs must be default gw for 
RSs. And, did you check RSs connection on LVS, because on lvs, RSs can not 
seen.

>root at m1045 ha]# ipvsadm -L -n
>
>IP Virtual Server version 1.2.1 (size=4096)
>Prot LocalAddress:Port Scheduler Flags
>
>  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
>TCP  11.1.40.50:23 wlc
>

my lvs configuration is below (LVS/NAT)

Main Network 10.0.0.0/24
Main Router 10.0.0.254
LVS eth0 -> 10.0.0.100
      eth0:0 -> 10.0.0.200    (Virtual IP for Virtual Service)
      eth1 -> 172.16.1.1/24  (the gateway for RS1-RS6)

RS1 eth0 -> 172.16.1.101
RS2 eth0 -> 172.16.1.102
RS3 eth0 -> 172.16.1.103
RS4 eth0 -> 172.16.1.104
RS5 eth0 -> 172.16.1.105
RS6 eth0 -> 172.16.1.106

ipvsadm -L -n

TCP 10.0.0.201:80  rr
  -> 172.16.1.101:80    Masq  1   0   X
  -> 172.16.1.102:80    Masq  1   0   X
  -> 172.16.1.103:80    Masq  1   0   X
  -> 172.16.1.104:80    Masq  1   0   X
  -> 172.16.1.105:80    Masq  1   0   X
  -> 172.16.1.106:80    Masq  1   0   X

have a nice day..

>From: "Panigrahi, Santosh Kumar" <Santosh.Panigrahi at in.unisys.com>
>Reply-To: linux clustering <linux-cluster at redhat.com>
>To: "linux clustering" <linux-cluster at redhat.com>
>Subject: RE: [Linux-cluster] doubts in Piranha
>Date: Wed, 11 Jul 2007 17:11:51 +0530
>
>Hi Mehmet CELIK,
>
>
>
>Thanks for your reply.
>
>
>
>I have changed my piranha configuration as per your instruction. Still
>it is not working. Configuration is follows.
>
>
>
>LVS eth0 -> 10.1.40.45
>
>       eth0:0 -> 10.1.40.50
>
>LVS eth1 -> 11.1.40.45
>
>       eth1:0 -> 11.1.40.50
>
>
>
>RS eth0 -> 10.1.40.34
>
>
>
>My lvs.cf is as follows:
>
>serial_no = 12
>
>primary = 11.1.40.45
>
>service = lvs
>
>network = nat
>
>nat_router = 10.1.40.50 eth0:0
>
>nat_nmask = 255.255.255.0
>
>debug_level = NONE
>
>virtual Telnet {
>
>      active = 1
>
>      address = 11.1.40.50 eth1:0
>
>      vip_nmask = 255.255.255.0
>
>      port = 23
>
>      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 m1034 {
>
>          address = 10.1.40.34
>
>          active = 1
>
>          weight = 100
>
>      }
>
>}
>
>
>
>After this I am starting pulse service in my LVS.
>
>Following output I am getting inmy LVS on passing  ipvsadm -L -n comman.
>
>
>
>
>[root at m1045 ha]# ipvsadm -L -n
>
>IP Virtual Server version 1.2.1 (size=4096)
>
>Prot LocalAddress:Port Scheduler Flags
>
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
>
>TCP  11.1.40.50:23 wlc
>
>[root at m1045 ha]#
>
>
>
>Note: Here there is no route for forward path to Real server. I am
>guesing piranha is not updating it.
>
>
>
>Log from CONTROL/MONITORING Tab of Piranha:
>
>
>
>
>
>
>
>What should I do after this?
>
>
>
>Thanks,
>
>Santosh
>
>
>
>
>
>-----Original Message-----
>From: linux-cluster-bounces at redhat.com
>[mailto:linux-cluster-bounces at redhat.com] On Behalf Of mehmet celik
>Sent: Wednesday, July 11, 2007 2:15 PM
>To: linux-cluster at redhat.com
>Subject: RE: [Linux-cluster] doubts in Piranha
>
>
>
>
>
>hi, firstly, the piranha is not supporting lvs/dr or lvs/tun right now.
>may
>
>in future..
>
>
>
>the following paragraph is from
>
>http://www.redhat.com/support/resources/howto/piranha/
>
>
>
>"Currently, the LVS cluster supports one routing method,
>
>Network Address Translation (NAT). (In the future, tunneling
>
>and direct routing will be added.)"
>
>
>
>secondly, your configuration is wrong.
>
>
>
>LVS eth0 -> 10.1.40.45
>
>       eth0:0 -> 10.1.40.40
>
>LVS eth1 -> 11.1.40.45
>
>       eth1:0 -> 11.1.40.40
>
>
>
>RS eth0 -> 10.1.40.34
>
>
>
>you should write "10.1.40.40 and eth0:0" to "NAT Router IP and Device"
>on
>
>piranha. is not eth1:1. the default gw should be set "10.1.40.40" for
>RS.
>
>Then, "Virtual Service" IP should be set "11.1.40.40 and eth1:0".
>
>
>
>REQUEST  =   client -> (11.1.40.40)  ipvs  forward on lvs   (10.1.40.40)
>->
>
>   (10.1.40.34) RS
>
>RESPOND  =   client <- (11.1.40.40)  NAT on lvs-gateway  (10.1.40.40)
><-
>
>(10.1.40.34) RS
>
>
>
>if you change configuration, you must restart pulse service.
>
>
>
>have a nice day.
>
>
>
>
>
>Mehmet CELIK
>
>Istanbul/TURKEY
>
>
>
> >From: "Panigrahi, Santosh Kumar" <Santosh.Panigrahi at in.unisys.com>
>
> >Reply-To: linux clustering <linux-cluster at redhat.com>
>
> >To: <linux-cluster at redhat.com>
>
> >Subject: [Linux-cluster] doubts in Piranha
>
> >Date: Tue, 10 Jul 2007 17:33:37 +0530
>
> >
>
> >Hi,
>
> >
>
> >
>
> >
>
> >I want to know, whether piranha supports configuring the following LVS
>
> >cluster.
>
> >
>
> >
>
> >
>
> >1) Direct routing
>
> >
>
> >2) Nat routing
>
> >
>
> >3) Tunneling
>
> >
>
> >
>
> >
>
> >Actually, I am configuring a NAT LVS cluster in piranha with one LVS
>
> >router and one Real Server. (For LVS testing purpose)
>
> >
>
> >I am doing it in RHEL5 with piranha-0.8.4-7.el5.
>
> >
>
> >
>
> >
>
> >LVS Router: 2 NIC cards (eth0: 10.1.40.45 - private interface, eth1:
>
> >11.1.40.45- public interface, eth1:0: 11.1.40.40- Virtual Public IP)
>
> >
>
> >Real server:  1 NIC card (eth0: 10.1.40.34)
>
> >
>
> >
>
> >
>
> >My piranha configuration is as follows.
>
> >
>
> >
>
> >
>
> >Virtual server Tab:
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >Global Settings Tab:
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >I am configuring it to open a telnet session from a client PC, which is
>
> >not happening at all. My guess is piranha is not updating the IPVSADM
>
> >table properly as per the configuration or I have configured it
>wrongly.
>
> >Can somebody help me in this regard?
>
> >
>
> >
>
> >
>
> >Thanks and Regards,
>
> >
>
> >Santosh
>
> >
>
> ><< image001.jpg >>
>
> ><< image004.jpg >>
>
>
>
>
>
> >--
>
> >Linux-cluster mailing list
>
> >Linux-cluster at redhat.com
>
> >https://www.redhat.com/mailman/listinfo/linux-cluster
>
>
>
>_________________________________________________________________
>
>http://newlivehotmail.com
>
>
>
>--
>
>Linux-cluster mailing list
>
>Linux-cluster at redhat.com
>
>https://www.redhat.com/mailman/listinfo/linux-cluster
>
><< image001.jpg >>


>--
>Linux-cluster mailing list
>Linux-cluster at redhat.com
>https://www.redhat.com/mailman/listinfo/linux-cluster

_________________________________________________________________
http://newlivehotmail.com




More information about the Linux-cluster mailing list