How are you supposed to setup UCARP in CentOS?

7,525

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.

Share:
7,525

Related videos on Youtube

JamesRyan
Author by

JamesRyan

I am weasel! all of the hats, all of the hats...

Updated on September 17, 2022

Comments

  • JamesRyan
    JamesRyan almost 2 years

    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
      JamesRyan over 13 years
      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
      JamesRyan over 13 years
      (everywhere says not to use the simpler v2 because it is buggy and unreliable)
    • Kimvais
      Kimvais over 13 years
      What version of CentOS? The EPEL repository package seems completely sane for 5.x
    • JamesRyan
      JamesRyan over 13 years
      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
    JamesRyan over 13 years
    yup I did also look at keepalived
  • JamesRyan
    JamesRyan over 13 years
    this is pretty much what I have done, just doesn't seem very neat :)
  • Kimvais
    Kimvais over 13 years
    The EPEL package comes with a startup script