From rspecty at yahoo.com Thu Sep 2 02:11:25 2004 From: rspecty at yahoo.com (raj bagwe) Date: Wed, 1 Sep 2004 19:11:25 -0700 (PDT) Subject: configure more than one web service in virtual server Message-ID: <20040902021125.20579.qmail@web40609.mail.yahoo.com> Hi, I am using ipvsadm-1.21-4 with piranha 0.7.0-5. I have one load balancer pair and one web server pair. TIam using NAT to forward the requests with round robin. Web servers are running 2 web services. Each web service accepts connections strictly on IP of one of the two physically different interfaces i.e.one web service accepts connection only on ip address of eth0 and other web service accepts connection only on ip address of eth1 on web server. I am trying to configure 2 virtual ip addresses on load balancer. One virtual ip address will forward the request to one pair of web service i.e web service bound to eth0 of 2 web servers and other virtual ip address will forward the request to other pair of web service bound to eth1 of 2 web servers. After doing the configuration above one of the virual web service on load balancer does not detect the real web service. But I am able to access that service using telnet or web browser from the load balancer. Can someone help me resolving the issue ?? regards, raj __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From Mathieu.LUBRANO at amdm.fr Thu Sep 2 12:42:49 2004 From: Mathieu.LUBRANO at amdm.fr (Mathieu LUBRANO) Date: Thu, 2 Sep 2004 14:42:49 +0200 Subject: RHCS cluster without quorum ? Message-ID: Hello, is it possible to build a basic 2 nodes cluster without quorum and shared partition with Piranha ? I just need IP failover... Bye, Mat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlcontento1 at utpl.edu.ec Thu Sep 2 21:55:25 2004 From: mlcontento1 at utpl.edu.ec (Marcia C) Date: Thu, 2 Sep 2004 16:55:25 -0500 (ECT) Subject: Piranha con apache Message-ID: <2676.172.16.80.254.1094162125.squirrel@www.utpl.edu.ec> Hola Porfavor alguien que me ayude. Tengo instalado en mi servidor RH9 piranha-0.4.17 ya intalae piranha y IPVSADM pero para intalar pirnaha-gui me dice fail dependencias es necesario el apache, el problema es que, el apache ya esta levantado en mi computador pero no se como configurar piranaha con apache GRACIAS... ----------------------------------------- Este correo fue enviado por el MENSAJERO UTPL. http://www.utpl.edu.ec/mail/ From Greg.Murphy2 at ge.com Fri Sep 3 11:09:30 2004 From: Greg.Murphy2 at ge.com (Murphy, Greg (GE Consumer Finance)) Date: Fri, 3 Sep 2004 12:09:30 +0100 Subject: RHCS cluster without quorum ? Message-ID: <6B92470143836346A76411778F8626AD0B8BD5B9@KINMLVEM02.e2k.ad.ge.com> Hi Mat I don't think RHCM can be set up without the shared partitions (but I may be wrong..) as even with just IP failover the partitions are used for inter-machine communication and heartbeats as well as the network interconnect. If you're trying to avoid having any costly shared disks attached, one option would be to use NBDs (Network Block Devices) which can be used as raw devices by multiple nodes - this may work. Hopefully this is of some use. Greg Murphy -----Original Message----- From: Mathieu LUBRANO [mailto:Mathieu.LUBRANO at amdm.fr] Sent: 02 September 2004 13:43 To: piranha-list at redhat.com Subject: RHCS cluster without quorum ? Hello, is it possible to build a basic 2 nodes cluster without quorum and shared partition with Piranha ? I just need IP failover... Bye, Mat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dj.dule at beotel.yu Fri Sep 3 13:12:51 2004 From: dj.dule at beotel.yu (Dusan Djordjevic) Date: Fri, 3 Sep 2004 13:12:51 +0000 Subject: RHCS cluster without quorum ? In-Reply-To: References: Message-ID: <200409031312.51968.dj.dule@beotel.yu> > is it possible to build a basic 2 nodes cluster without quorum and > shared partition with Piranha ? > I just need IP failover... If you do not solve problem using Piranha, for IP failover you can always try heartbeat (http://www.linux-ha.org). -- Eng. Dusan Djordjevic (RHCE) From lhh at redhat.com Fri Sep 3 15:08:32 2004 From: lhh at redhat.com (Lon Hohberger) Date: Fri, 03 Sep 2004 11:08:32 -0400 Subject: RHCS cluster without quorum ? In-Reply-To: <6B92470143836346A76411778F8626AD0B8BD5B9@KINMLVEM02.e2k.ad.ge.com> References: <6B92470143836346A76411778F8626AD0B8BD5B9@KINMLVEM02.e2k.ad.ge.com> Message-ID: <1094224112.5675.84.camel@atlantis.boston.redhat.com> On Fri, 2004-09-03 at 12:09 +0100, Murphy, Greg (GE Consumer Finance) wrote: > Hi Mat > > I don't think RHCM can be set up without the shared partitions (but I > may be wrong..) as even with just IP failover the partitions are used > for inter-machine communication and heartbeats as well as the network > interconnect. If you're trying to avoid having any costly shared disks > attached, one option would be to use NBDs (Network Block Devices) > which can be used as raw devices by multiple nodes - this may work. Generally, that's the case. You need shared storage to do it. I've heard of people using firewire for testing, but haven't done it myself. -- Lon From Martin.Zehetmayer at HVBInfo.com Wed Sep 8 17:29:30 2004 From: Martin.Zehetmayer at HVBInfo.com (Martin.Zehetmayer at HVBInfo.com) Date: Wed, 8 Sep 2004 19:29:30 +0200 Subject: routing problem with lvs? Message-ID: <862D3CA7D957D349B51D8F40D2D10C9428F690@emsbax20.resdom.droot.net> Hi, I have a problem in setting up a piranha load balancer with 2 real servers (http). I've set up the configuration below which contains one load balancing server and two real servers. pulse is starting all processes correctly and all interface come up and are pingable. When I connect to the virtual ip on port 80 (telnet 192.168.0.50 80) there is no connection refused but I also get no prompt from one of the webservers. Do I have to configure some external routing via iptables? What can I do to check if the routing from ipvs works? Thanks in advance, Martin Zehetmayer Here is my configuration: ---------------------------------------------------------------------------- -- ipvsadm-1.21-9.ipvs108 piranha-0.7.6-1 Linux version 2.4.21-15.0.2.ELsmp lvs.conf: ----------- serial_no = 57 primary = 192.168.0.10 primary_private = 172.24.158.10 service = lvs backup = 0.0.0.0 heartbeat = 0 heartbeat_port = 539 keepalive = 6 deadtime = 18 network = nat nat_router = 192.168.1.11 eth2:1 nat_nmask = 255.255.255.0 debug_level = NONE virtual wwwgroup { active = 1 address = 192.168.0.50 eth1:2 vip_nmask = 255.255.255.0 port = 80 send = "GET /test.html\r\n" expect = "statusok" use_regex = 1 load_monitor = none scheduler = wlc protocol = tcp timeout = 6 reentry = 15 quiesce_server = 0 server www1 { address = 192.168.1.30 active = 1 weight = 1 } server www2 { address = 192.168.1.31 active = 1 weight = 1 } } from the loadbalancer (192.168.0.10) ping to 192.168.1.30 and 192.168.1.31 works (real servers) ping to 192.168.0.10 works (primary) ping to 192.168.1.11 works (nat router) ping to 192.168.0.50 works (vip ip wwwgroup) standard gateway for all real server is the nat router ip (192.168.1.11) No iptable or ipchain module loaded /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 1 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename. # Useful for debugging multi-threaded applications. kernel.core_uses_pid = 1 [root at mucillbq ha]# ipvsadm -L IP Virtual Server version 1.0.8 (size=65536) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP 192.168.0.50:http wlc -> 192.168.1.31:http Masq 1 0 1 -> 192.168.1.30:http Masq 1 0 0 [root at mucillbq ha]# ps -ef | grep lvs root 4863 4860 0 18:45 ? 00:00:00 /usr/sbin/lvs --nofork -c /etc/sysconfig/ha/lvs.cf root 4873 4863 0 18:45 ? 00:00:00 /usr/sbin/nanny -c -h 192.168.1.30 -p 80 -s GET /test.html\r\n -x statusok --regex -a 15 -I /sbin/ipvsadm -t 6 -w 1 -V 192.168.0.50 -M m -U none --lvs root 4874 4863 0 18:45 ? 00:00:00 /usr/sbin/nanny -c -h 192.168.1.31 -p 80 -s GET /test.html\r\n -x statusok --regex -a 15 -I /sbin/ipvsadm -t 6 -w 1 -V 192.168.0.50 -M m -U none --lvs ---------------------------------------------------------------------------- -- From mlcontento1 at utpl.edu.ec Fri Sep 17 00:40:40 2004 From: mlcontento1 at utpl.edu.ec (Marcia C) Date: Thu, 16 Sep 2004 19:40:40 -0500 (ECT) Subject: HELP ME WHIT PIRANHA-GUI Message-ID: <5398.172.16.80.254.1095381640.squirrel@www.utpl.edu.ec> hola mi nombre es Marcia Contento, estoy instalando Pirnaha en Reh hat Linux 8 pero he leido ya un monton de pasos para laevantarlo pero no puedo los paquetes intalados son; piranha-0.6.0-12.i386.rpm scsi_reserve-0.7-5.i386.rpm ipvsadm-1.18-8.i386.rpm Mi servidor apache es: [root at gdr6 root]# httpd -v Server version: Apache/1.3.27 (Unix) (Red-Hat/Linux) Server built: Dec 10 2003 05:05:00 Ya instale el piranha (.rpm) el archivo httpd que esta en el directorio /etc/sysconfig/ha/conf [root at gdr6 conf]# ls httpd.conf httpd.conf.rpmorig piranha.passwd lo reemplace en el directorio del apache /etc/httpd/conf/httpd al fin al poner en el navegador http://localhost:3636/ se abre la ventana principal by cuando clik login me arroja lo siguiente: "; } if ($prim['service'] == "") { $prim['service'] = "lvs"; } ?> Piranha (Control/Monitoring)
 
CONTROL / MONITORING
 
CONTROL/MONITORING GLOBAL SETTINGS REDUNDANCY FAILOVER VIRTUAL SERVERS

CONTROL
running "; if (strstr($pid,"stopped")) { echo `/etc/rc.d/init.d/pulse start > /dev/null` ; } } if ($daemon == "STOP") { echo "Daemon: stopped "; if (!strstr($pid,"stopped")) { echo `/etc/rc.d/init.d/pulse stop > /dev/null` ; } } ?>

MONITOR
> Auto update > update frequency in seconds
Rates lower than 10 seconds are not recommended as, when the page updates, you will lose any
modifications you have made which have not been actioned using the 'Accept' button



CURRENT LVS ROUTING TABLE

        
        
CURRENT LVS PROCESSES
 
CURRENT FOS PROCESSES
 
PLEASE HELP ME PORFAVOR, PORFAVOR ESTO ES PARA UNA UNIVERSIDAD EN ECUADOR ES UN PROYECTO QUE QUIERO TERMINARLO POR FAVOR GRACIAS THANKS ----------------------------------------- Este correo fue enviado por el MENSAJERO UTPL. http://www.utpl.edu.ec/mail/ From sebastien.bonnet at experian.fr Wed Sep 22 13:43:12 2004 From: sebastien.bonnet at experian.fr (=?ISO-8859-1?Q?S=E9bastien_BONNET?=) Date: Wed, 22 Sep 2004 15:43:12 +0200 Subject: Monitoring Telnet service In-Reply-To: <6B92470143836346A76411778F8626AD0B8BD591@KINMLVEM02.e2k.ad.ge.com> References: <6B92470143836346A76411778F8626AD0B8BD591@KINMLVEM02.e2k.ad.ge.com> Message-ID: <41518170.6080908@experian.fr> Hi Greg, > Now as this script just opens a session and then disconnects it at the logon prompt, and as you would expect it creates loads of entries in /var/log/messages, eg on the load balancer: > Aug 18 15:44:03 loadbalancer nanny[19040]: The following exited abnormally: > Aug 18 15:44:03 loadbalancer nanny[19040]: failed to read remote load This is not due to your external script for telnet, but from nanny failing to read the load from your realserver. This is a bug from piranha which I corrected a long time ago. Search the list for a patch I've posted several times. > And on the real server: > Aug 18 15:44:28 realserver1 telnetd[5243]: ttloop: peer died: EOF This IS the trace from your partial telnet connection. I'm afraid you won't be easily able to avoid it. -- S?bastien BONNET -- Ing?nieur syst?me Tel: 04.42.25.15.40 GSM: 06.64.44.58.98 From rspecty at yahoo.com Wed Sep 22 16:09:37 2004 From: rspecty at yahoo.com (raj bagwe) Date: Wed, 22 Sep 2004 09:09:37 -0700 (PDT) Subject: monitoring https using send / expect Message-ID: <20040922160937.21446.qmail@web40606.mail.yahoo.com> Hi, Can anyone tell me how to monitor HTTPS through LVS using send / expect. I am currently monitoring http using send / expect. Send string is "GET / HTTP/1.0\r\n\r\n" and expect string is "HTTP". Regards, Rajesh. _______________________________ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com From sebastien.bonnet at experian.fr Wed Sep 22 16:14:34 2004 From: sebastien.bonnet at experian.fr (=?ISO-8859-1?Q?S=E9bastien_BONNET?=) Date: Wed, 22 Sep 2004 18:14:34 +0200 Subject: monitoring https using send / expect In-Reply-To: <20040922160937.21446.qmail@web40606.mail.yahoo.com> References: <20040922160937.21446.qmail@web40606.mail.yahoo.com> Message-ID: <4151A4EA.50608@experian.fr> > Can anyone tell me how to monitor HTTPS through LVS > using send / expect. The short answer is : you can't ! As HTTPS is HTTP over SSL, it's not a cleartext protocol. > I am currently monitoring http using send / expect. > Send string is "GET / HTTP/1.0\r\n\r\n" and expect > string is "HTTP". You'll have to write an external script which uses lynx, wget or whatever has SSL support. -- S?bastien BONNET -- Ing?nieur syst?me Tel: 04.42.25.15.40 GSM: 06.64.44.58.98 From lhh at redhat.com Wed Sep 22 17:37:47 2004 From: lhh at redhat.com (Lon Hohberger) Date: Wed, 22 Sep 2004 13:37:47 -0400 Subject: monitoring https using send / expect In-Reply-To: <4151A4EA.50608@experian.fr> References: <20040922160937.21446.qmail@web40606.mail.yahoo.com> <4151A4EA.50608@experian.fr> Message-ID: <1095874667.3181.128.camel@atlantis.boston.redhat.com> On Wed, 2004-09-22 at 18:14 +0200, S?bastien BONNET wrote: > > Can anyone tell me how to monitor HTTPS through LVS > > using send / expect. > > The short answer is : you can't ! As HTTPS is HTTP over SSL, it's not a > cleartext protocol. > > > I am currently monitoring http using send / expect. > > Send string is "GET / HTTP/1.0\r\n\r\n" and expect > > string is "HTTP". > > You'll have to write an external script which uses lynx, wget or > whatever has SSL support. E.g. links -source https://www.host.com You might be able to use stunnel as well, but it's probably easier to use something that's already got SSL built in rather than multiple utilities... -- Lon