LVS backup router not taking role

Tapan Kumar Thapa tapan.thapa2000 at gmail.com
Sat Jan 21 12:28:04 UTC 2012


Can you please ensure that both active and backup router is having no firewall issue in-between?

Sent from my iPhone

Regards
Tapan Kumar Thapa
Manager-Tech Support
HT Mobile Solutions Limited
Mob-919871701375

On Jan 21, 2012, at 2:25 PM, Khapare Joshi <khapare77 at gmail.com> wrote:

> hi tapan 
> 
> Here are is my lvs.cf file
> 
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.1.3:80 wlc
>   -> 192.168.1.4:80           Route   1      0          0         
>   -> 192.168.1.5:80           Route   1      0          0   
> 
> and I have ip forward enabled on my active router. I also allowed firewall from lvs router to real server and vice versa. I am using direct routing and added line in arptable in REAL server as : 
> 
> # Generated by arptables-save v0.0.8 on Fri Jan 20 20:23:23 2012
> *filter
> :IN ACCEPT [504508:14126224]
> :OUT ACCEPT [237:6636]
> :FORWARD ACCEPT [0:0]
> [346:9688] -A IN -d 130.208.165.193 -j DROP
> [0:0] -A OUT -d 192.168.1.3 -o eth0 -j mangle --mangle-ip-s 192.16.1.4
> COMMIT
> # Completed on Fri Jan 20 20:23:23 2012
> 
> 
> It seems it works for a while then after certain while I only get response from one real server. There seem somewhere I am doing wrong 
> 
> Khapare
> 
> 
> 
> 
> where else could be the issue ?
> 
> K
> 
> On Wed, Jan 18, 2012 at 4:16 PM, Tapan Kumar Thapa <tapan.thapa2000 at gmail.com> wrote:
> Can you please post your complete lvs.cfg?
> 
> Sent from my iPhone
> 
> Regards
> Tapan Kumar Thapa
> Manager-Tech Support
> HT Mobile Solutions Limited
> Mob-919871701375
> 
> On Jan 18, 2012, at 9:28 PM, Khapare Joshi <khapare77 at gmail.com> wrote:
> 
>> 
>> 
>> On Wed, Jan 18, 2012 at 1:59 PM, Ranjith Rajaram <rrajaram at redhat.com> wrote:
>> 
>> 
>> On 01/18/2012 07:22 PM, Khapare Joshi wrote:
>>> 
>>> Hi, all,
>>> 
>>> first time poster. I recently deployed lvs (primary and backup) with piranh and ran into few issues. I turned off the primary lvs to see backup lvs will take over. However it does not take over right a way seem require restart pulse. How does this fail over works if primary goes down ? should not this be happen right a way if primary lvs goes down ?
>> If primary goes, secondary has to take it over
>> 
>> It depends on deadtime
>> 
>>  deadtime = n
>>               Length of time before a node is declared dead and IP takeover occurs.
>> 
>> lvs.cf needs to be checked together with system configuration.  Look at /var/log/messages
>> 
>> 
>> 
>> I configured these parameter as this  :
>> Heartbeat interval (seconds):	 			
>> Assume dead after (seconds):				
>> Heartbeat runs on port:				
>> Monitor NIC links for failures:	
>> Syncdaemon:	
>> 
>> and copied lvs.cf to redudant server as well. 
>> 
>>> 
>>> And I have four real server- and it sees if one goes down whole system is unavailable (httpd service). Then I restart pulse and get  the httpd service. I do not think this is right. could be please guide me in right direction to make reliable.
>>> 
>> 
>> Do you have separate boxes for LVS directors and real server's ? [Are you running pulse on any of the two real server's ?]
>> 
>> I have two servers for lvs i.e lvs1 lvs2 and configured using piranha tool. I started pulse on these two machines. Rest of other four server I only started httpd not the pulse  
>> 
>> check the output of ipvsadm -L -n from the active lvs server [paste it here]
>> 
>> 
>>> PS: I use direct routing and have 
>>> 
>>> net.ipv4.conf.lo.arp_ignore = 1
>>> net.ipv4.conf.lo.arp_announce = 2
>>> 
>>> in /etc/sysctl.conf
>>> 
>>> sorry for too many question.
>>> 
>>> Thanks
>>> 
>>> _______________________________________________
>>> Piranha-list mailing list
>>> Piranha-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/piranha-list
>> 
>> 
>> _______________________________________________
>> Piranha-list mailing list
>> Piranha-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/piranha-list
>> 
>> _______________________________________________
>> Piranha-list mailing list
>> Piranha-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/piranha-list
> 
> _______________________________________________
> Piranha-list mailing list
> Piranha-list at redhat.com
> https://www.redhat.com/mailman/listinfo/piranha-list
> 
> <lvs.cf>
> _______________________________________________
> Piranha-list mailing list
> Piranha-list at redhat.com
> https://www.redhat.com/mailman/listinfo/piranha-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/piranha-list/attachments/20120121/29674ac0/attachment.htm>


More information about the Piranha-list mailing list