How to "update" a node IP address ?

Ponytech

New Member
May 30, 2013
13
0
1
ponytech.net
I had set up a VPN between 2 servers to make a cluster. pvecm status says:

Code:
Version: 6.2.0
Config Version: 8
Cluster Name: ponytech
Cluster Id: 28530
Cluster Member: Yes
Cluster Generation: 4784
Membership state: Cluster-Member
Nodes: 2
Expected votes: 2
Total votes: 2
Node votes: 1
Quorum: 2  
Active subsystems: 5
Flags: 
Ports Bound:  
Node name: server2
Node ID: 1
Multicast addresses: 239.192.111.225 
Node addresses: 10.0.0.11

The IP address 10.0.0.11 is not correct. My server has the address 10.0.0.2 but I could not find a way to "update" it.
Is there a solution excluding a server reboot ?

Thanks.
 
node addresses iirc is the IP's of the other nodes in the cluster? - actually no its the server address that you ran it on - and its the IP it has detected cluster comms is happening on

are you by any chance using an openvpn tunnel? - you may need to use bridging/tap mode to get the ip to appear right
 
Last edited:
Yes I am using OpenVPN with bridging/tap.

Actually the
10.0.0.11 address is the address the server got when it first booted. Later I updated OpenVPN to give it a fixed IP (not from the dynamic pool) which is 10.0.0.2. But now my cluster is broken, probably because of that.
So is there any way to tell the cluster a node has a new IP address?

Thanks a lot.
 
I think you could have to remove the "old IP" node and readd it as the "new IP" node.
just don't forget to update /etc/hosts

Marco
 
I think you could have to remove the "old IP" node and readd it as the "new IP" node.
just don't forget to update /etc/hosts


Unfortunately I can't remove the node because the cluster is kind of broken :

Code:
# pvecm delnode [COLOR=#333333]server2[/COLOR]
cluster not ready - no quorum?

Maybe I can try to re-assign the server its old IP, delete the node, change IP again and re-add the node.
 
guess you have 2 nodes...
you can temporarily alter the needed quorum with "pvecm expected <N>"
if you have 2 nodes, <N> should be 1
(currently is 2: if there is no quorum cluster is "locked")

then remove old ip node
then add new ip node
?
the quorum should be reset when new node joins

Marco
 
Yes i have 2 nodes.

Even after changing the expected quorum I can't remove the node.
I also tried to restart services :

Code:
# service cman restart
Stopping cluster: 
   Stopping dlm_controld... 
[FAILED]

I think I'm good for a server reboot...

Thanks for your help.
 
Am i correct to assume you have server nodes in remote locations? Just wandering why you are setting up with VPN.

Yes the 2 servers are located on 2 different data centers / network.


I had finally rebooted my server to get things back to normal :(
Thanks everybody for your help
 

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!