LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: No ipvs rules (solved)

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: No ipvs rules (solved)
From: "Pedro Bezunartea Lopez" <pedro@xxxxxxxxxxxxxx>
Date: Wed, 21 Jun 2006 22:03:18 +0200 (CEST)
The problem seems to be because perl-MailTools package is needed. After
installing the package I run "ldirectord -d start" and got the following
error:
sendmail: fatal: No recipient addresses found in message header
So I added the following line in the Virtual section of the ldirectord.cf:
emailalert="some-valid-email"

I also changed the deprecated "nice_failback on" for "auto_failback off".

It seems to be working fine now. Thanks,

Pedro.

>
> Hi,
>
> I've been trying to setup a HA cluster with 2 nodes. I've tried a few
> howtos, but none have worked for me. One of the best ones:
> http://www.ultramonkey.org/2.0.1/topologies/sl-ha-lb-eg.html
>
> Anyway, this is my setup:
> - FC 5 in both systems.
> - 1 VIP: 10.10.10.2
> - 2 RIP: 10.10.10.3 and 10.10.10.4
> - 2 Private IP: 192.168.1.1 and 192.168.1.2 for heartbeat and DRBD.
>
> First, I'm trying to have the http service working. Once I get that, I'll
> try the mail service too. My configuration files:
>
> - /etc/sysconfig/network-scripts/ifcfg-lo:0
> DEVICE=lo:0
> BROADCAST=10.10.10.255
> IPADDR=10.10.10.2
> NETMASK=255.255.255.255
> NETWORK=10.10.10.0
> ONBOOT=yes
> NAME=loopback
>
> - /etc/ha.d/ha.cf:
> use_logd yes
> keepalive 1
> deadtime 10
> warntime 5
> initdead 120
> nice_failback on
> udpport 694
> ucast eth1 192.168.1.1
> ucast eth1 192.168.1.2
> node    web1
> node    web2
> crm no
>
> - /etc/ha.d/haresources
> web1 IPaddr::10.10.10.2/24/eth0 ldirectord::ldirectord.cf
>
> - /etc/ha.d/ldirectord.cf:
> checktimeout=10
> checkinterval=2
> autoreload=no
> quiescent=yes
> virtual=10.10.10.2:80
>   real=10.100.20.3:80 gate 8
>   real=10.100.20.4:80 gate 1
>   service=http
>   scheduler=wrr
>   protocol=tcp
>   checktype=connect
>
> - /etc/sysctl.conf:
> (...)
> net.ipv4.conf.default.arp_ignore = 1
> net.ipv4.conf.default.arp_announce = 2
> net.ipv4.conf.default.rp_filter = 0
>
> Before starting heartbeat I have apache running, ldirectord stoped and
> both systems with lo:0 up. When I start heartbeat:
>
> [root@web1 ~]# /etc/init.d/heartbeat start
> logd is already running
> Starting High-Availability services:
> 2006/06/21_18:12:47 INFO: IPaddr Running OK
> 2006/06/21_18:12:47 CRITICAL: Resource IPaddr::10.10.10.2/24/eth0 is
> active, and should not be!
> 2006/06/21_18:12:47 CRITICAL: Non-idle resources can affect data
> integrity!
> 2006/06/21_18:12:47 info: If you don't know what this means, then get
> help!
> 2006/06/21_18:12:47 info: Read the docs and/or source to
> /usr/lib/heartbeat/ResourceManager for more details.
> CRITICAL: Resource IPaddr::10.10.10.2/24/eth0 is active, and should not
> be!
> CRITICAL: Non-idle resources can affect data integrity!
> info: If you don't know what this means, then get help!
> info: Read the docs and/or the source to
> /usr/lib/heartbeat/ResourceManager for more details.
> 2006/06/21_18:12:47 CRITICAL: Non-idle resources will affect resource
> takeback!
> 2006/06/21_18:12:47 CRITICAL: Non-idle resources may affect data
> integrity!
>
> I don't know why it says that eth0 is active, when it's lo:0 which has the
> VIP. Anyway, after that I have:
> [root@web1 ~]# ifconfig
> (...)
> eth0:0    Link encap:Ethernet
>           inet addr:10.10.10.2  Bcast:10.10.10.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> (...)
> But
> [root@web1 ~]# ipvsadm -L -n
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> ... empty :(
>
> What am I doing wrong? Any ideas? Please help,
>
> Pedro.
>
>



<Prev in Thread] Current Thread [Next in Thread>
  • No ipvs rules, Pedro Bezunartea Lopez
    • Re: No ipvs rules (solved), Pedro Bezunartea Lopez <=