How to add a service IP to a ProxMox 3 cluster ?

hybrid512

Active Member
Jun 6, 2013
76
4
28
Hi,

I'm making some tests with ProxMox 3 clustering.
I built a cluster with 3 nodes and created a shared GlusterFS volume as a shared storage which is working quite good.

Clustering is working well and I can administer the whole cluster from any node but I'd rather use a service IP that would be balanced by corosync so that I don't have to worry about a single node and access my cluster through this service IP.

How can I do that ?
How can I modify the cluster configuration so that I can add a service IP ?
Is it possible without arming any futur update process ?

Thanks for any help.

Regards.
 
An example:

Code:
  <rm>
    <failoverdomains>
      <failoverdomain name="webfailover" ordered="0" restricted="1">
        <failoverdomainnode name="node1"/>
        <failoverdomainnode name="node2"/>
        <failoverdomainnode name="node3"/>
      </failoverdomain>
    </failoverdomains>
    <resources>
      <ip address="172.16.3.254" monitor_link="5"/>
    </resources>
    <service autostart="1" domain="webfailover" name="web-adm" recovery="relocate">
      <ip ref="172.16.3.254"/>
    </service>
  </rm>

It is assumed that 172.16.3.254 is an IP on a configured net on the nodes.
 
Thank you so much !

Can you just tell me in which file ?

Regards.

An example:

Code:
  <rm>
    <failoverdomains>
      <failoverdomain name="webfailover" ordered="0" restricted="1">
        <failoverdomainnode name="node1"/>
        <failoverdomainnode name="node2"/>
        <failoverdomainnode name="node3"/>
      </failoverdomain>
    </failoverdomains>
    <resources>
      <ip address="172.16.3.254" monitor_link="5"/>
    </resources>
    <service autostart="1" domain="webfailover" name="web-adm" recovery="relocate">
      <ip ref="172.16.3.254"/>
    </service>
  </rm>

It is assumed that 172.16.3.254 is an IP on a configured net on the nodes.
 
It should be put inside /etc/pve/cluster.conf

Do it this way:
1) cp /etc/pve/cluster.conf /etc/pve/cluster.conf.new
2) Add the above to /etc/pve/cluster.conf.new
3) Click tab 'HA' when datacenter node in the left window is active
4) Click button 'Activate' in the 'HA' tab to activate changes
 
Hi,

I did this and it still doesn't work :(

Here is my cluster.conf :

<?xml version="1.0"?>
<cluster name="PROXMOX" config_version="3">
<cman keyfile="/var/lib/pve-cluster/corosync.authkey"></cman>
<clusternodes>
<clusternode name="px1" votes="1" nodeid="1"/>
<clusternode name="px2" votes="1" nodeid="2"/>
<clusternode name="px3" votes="1" nodeid="3"/>
</clusternodes>
<rm>
<failoverdomains>
<failoverdomain name="clusterfailover" ordered="0" restricted="1">
<failoverdomainnode name="px1"/>
<failoverdomainnode name="px2"/>
<failoverdomainnode name="px3"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="10.33.100.210" monitor_link="5"/>
</resources>
<service autostart="1" domain="clusterfailover" name="cluster-adm" recovery="relocate">
<ip ref="10.33.100.210"/>
</service>
</rm>
</cluster>

Capture.png

I don't get any error and the HA tab display my modifications without any problem except that the service IP doesn't work (unable to ping it).
I even rebooted the whole cluster but still, no service IP up and running :(

What did I do wrong ?
 
Last edited:
Fencing just for a floating service IP ???
I mean, this is not something critical, this is just a facility to me so that I can just use that IP to access ProxMox web management UI instead of one of the nodes IP.
 
I mean, this is not something critical, this is just a facility to me so that I can just use that IP to access ProxMox web management UI instead of one of the nodes IP.

Then I think using HA is the wrong way for you. Maybe you can just setup a DNS with 2 address records -AFAIK the browser automatically use the second record if the first is not available (but i never tested that).
 
I built a cluster with 3 nodes and created a shared GlusterFS volume as a shared storage which is working quite good.

Is this a default/built-in method of proxmox 3 ?

I am searching a way to cluster a windows 2008 r2 sql server, I like to use two nodes, is this possible with your method ?

I havent built a cluster until now, Is there a howto or video ?
 
Is this a default/built-in method of proxmox 3 ?

I am searching a way to cluster a windows 2008 r2 sql server, I like to use two nodes, is this possible with your method ?

I havent built a cluster until now, Is there a howto or video ?

No it's not but building a shared GlusterFS is very easy and can be done on the ProxMox nodes directly (so no need to have a tier shared network storage) but off course, this has its disadvantages and is not failsafe unless you have everything needed to handle failures properly (such as fencing devices for example).

Anyway, for small/experimental setups, this is a quick and easy way to have an efficient shared volume between your nodes to share common data (anyway, I discourage the use of this shared volume for containers/virtual machine storage, this is far from being optimal).

Concerning the way you can build a ProxMox cluster, there is a guide there which works just as it says (this is for v2 but it works with v3) : http://pve.proxmox.com/wiki/Proxmox_VE_2.0_Cluster

Regards.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!