LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Heartbeat Error

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, "Horms" <horms@xxxxxxxxxxxx>
Subject: RE: Heartbeat Error
From: "Brad Taylor" <btaylor@xxxxxxxxxxxx>
Date: Wed, 27 Sep 2006 23:20:46 -0400
OK, I've changed my haresources file to use eth0 and not eth0:0:

SBLB-Master IPaddr2::10.10.1.113/24/eth0/10.10.1.255
ldirectord::ldirectord.cf

All on one line.

[root@SBLB-Master ~]# service heartbeat start
logd is already running
Starting High-Availability services:
2006/09/27_23:00:25 INFO: IPaddr2 Resource is stopped
                                                           [  OK  ]


Why do I get IPaddr2 Resource is stopped? How any I check what heartbeat
version I'm running?

I'm having a lot of troubles with IPaddr2.




-----Original Message-----
From: Horms [mailto:horms@xxxxxxxxxxxx] 
Sent: Wednesday, September 27, 2006 9:37 PM
To: Brad Taylor
Cc: LinuxVirtualServer.org users mailing list.
Subject: Re: Heartbeat Error

On Wed, Sep 27, 2006 at 01:52:15PM -0400, Brad Taylor wrote:
> I can't use eth0, eth0 is the server IP address and not the VIP. If I
> can't use eth0:0 where do I put the VIP?

I'm not sure I understand the question. IPaddr2 uses ip to configure
addresses, and in ip speak an interface can have as many addresses
as you like. So you should be able to add eth0 regardless of if
it already has the server IP or not.

e.g.

ip addr show eth0
ip addr add 10.0.0.1/24 dev eth0
ip addr add 10.0.0.2/24 dev eth0
ip addr show eth0
ip addr del 10.0.0.1/24 dev eth0
ip addr del 10.0.0.2/24 dev eth0
ip addr show eth0

Note that ifconfig can't see addresses added this way,
though ip addr show can see addresses added using ifconfig (or IPaddr).

There were some bugs in IPaddr2 around 2.0.6 which were fixed for 2.0.7.
Though there is a possibility that 2.0.7 features new and uncharted
bugs.

> -----Original Message-----
> From: Horms [mailto:horms@xxxxxxxxxxxx] 
> Sent: Monday, July 03, 2006 6:25 AM
> To: LinuxVirtualServer.org users mailing list.
> Cc: Brad Taylor
> Subject: Re: Heartbeat Error
> 
> Brad Taylor you wrote:
> > This is my haresources file:
> > 
> > SBLB-Master.localdomain IPaddr2::10.10.1.115/24/eth0:0/10.10.1.255
> > ldirectord::ldirectord.cf squid
> > 
> > All on one line.
> > 
> > The problem with IPaddr2 is talked about here but didn't seem to get
> > fixed:
> >
>
http://www.mail-archive.com/linux-ha-dev@xxxxxxxxxxxxxxxxxx/msg00837.htm
> > l
> > 
> > Any ideas on how I could get this to work?
> 
> Ouch, findif is such an abomination. I wish it never existed.
> 
> However, eth0:0 isn't reall a valid address in terms of IPaddr2,
> as it relies on the "ip" command, where the notion of ip aliases
> is gone. Instead an interface just has primary and secondary
addresses.
> Am I missing someting, or will the problem go away if you just
> specify eth0 instead of eth0:0 ?

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


<Prev in Thread] Current Thread [Next in Thread>