2

I have UCARP working but the documentation is confusing and I've found at least 3 different ways suggested in blogs (these are old and don't all seem to work). I currently have ucarp- lines added to /etc/network/interfaces under ubuntu but now I need to set it up on CentOS with multiple VIPs per interface.

In Multiple UCARP VIPs on single Interface with Debian/Ubuntu Evan Anderson says that this should be easy in CentOS. I've installed the UCARP package but there are no init scripts and it ignores my .conf files so I am wondering if this is the right way to go about it.

Can anyone describe the right way to set this up or link to a recent example that works?

JamesRyan
  • 8,138
  • 2
  • 24
  • 36
  • Is there a reason you're not using Heartbeat instead? http://serverfault.com/questions/101513/heartbeat-vs-ucarp – Joel K Jan 30 '11 at 16:59
  • 1
    because it seems heartbeat has grown into something which is completely over the top for my needs. I don't need a cluster I just need a simple VIP. Also it's behavior on splits is unclear. Someone has said that in that case neither node will respond. – JamesRyan Jan 31 '11 at 11:44
  • (everywhere says not to use the simpler v2 because it is buggy and unreliable) – JamesRyan Jan 31 '11 at 11:55
  • 1
    What version of CentOS? The EPEL repository package seems completely sane for 5.x – Kimvais Feb 01 '11 at 09:04
  • Yep it seems that the EPEL one is pretty much the same as the accepted answer just in a different folder. Somehow I was pulling it from some weird repo which just confused the situation further. In hindsight it is obvious really, thanks. – JamesRyan Feb 02 '11 at 21:41

3 Answers3

5

I'm using the ucarp-1.5.2-1.el5.rf package (from the DAG repository) on CentOS 5.5. It creates a /etc/sysconfig/carp directory into which you'd place vip-xxx.conf (where xxx is an arbitrary integer from 1 to 255, as mandated by the /etc/init.d/carp script) files, each containing the configuration details for that discrete ucarp instance. You'll also need to create /etc/sysconfig/network-scripts/ifcfg-ethX:Y configuration files containing the IP address details for each virtual IP instance.

There's an example configuration file in the package that can assist you in getting all of this put together.

Evan Anderson
  • 141,071
  • 19
  • 191
  • 328
0

Kinda off-topic but I can mention VRRP which I recently became aware of. I think I'll give it a try to use instead of UCARP.

poige
  • 9,171
  • 2
  • 24
  • 50
0

Looks like you need a start script - some examples are here: http://www.admin-hints.com/2009/04/ucarp-virtual-ip-for-linux-boxes.html

G Koe
  • 323
  • 2
  • 7