Change IP on hypervisor

hojan

New Member
Aug 21, 2013
4
0
1
Hi,

I have read all threads here on how to change IP on a PVE server node. They all boil down to the same thing, the .members file should update itself
once the correct entry is added to /etc/hosts. I have tried this several times, but my first node always remain on the old wrong IP.
I have changed the subnet, the first node picked up it's correct IP but the other one refuses to update.
pvecm status reports the correct IP for each host. The clusterconf has the correct names. /etc/hosts and DNS has the correct entries, and resolv.conf checks hosts first.
drbd works, I can live migrate from the first node to the second, but not the other way since the IP is wrong...

Expected IPs are
beast 10.6.5.46
beauty 10.6.5.47

But beast always remain on the old IP 10.6.6.46.

What more can I check? Is there a step I have missed?

# pveversion
pve-manager/3.3-5/bfebec03 (running kernel: 2.6.32-32-pve)

root@beast:/etc/pve# pvecm status
Version: 6.2.0
Config Version: 8
Cluster Name: sthlm-bb
Cluster Id: 28546
Cluster Member: Yes
Cluster Generation: 76
Membership state: Cluster-Member
Nodes: 2
Expected votes: 2
Total votes: 2
Node votes: 1
Quorum: 2
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: beast
Node ID: 1
Multicast addresses: 239.192.111.241
Node addresses: 10.6.5.46

root@beauty:/etc/pve# pvecm status
Version: 6.2.0
Config Version: 8
Cluster Name: sthlm-bb
Cluster Id: 28546
Cluster Member: Yes
Cluster Generation: 76
Membership state: Cluster-Member
Nodes: 2
Expected votes: 2
Total votes: 2
Node votes: 1
Quorum: 2
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: beauty
Node ID: 2
Multicast addresses: 239.192.111.241
Node addresses: 10.6.5.47

root@beauty:/etc/pve# cat .members
{
"nodename": "beauty",
"version": 9,
"cluster": { "name": "sthlm-proxmox", "version": 8, "nodes": 2, "quorate": 1 },
"nodelist": {
"beast": { "id": 1, "online": 1, "ip": "10.6.6.46"},
"beauty": { "id": 2, "online": 1, "ip": "10.6.5.47"}
}
}

root@beauty:/etc/pve# cat cluster.conf
<?xml version="1.0"?>
<cluster name="sthlm-proxmox" config_version="8">


<cman keyfile="/var/lib/pve-cluster/corosync.authkey">
</cman>


<clusternodes>
<clusternode name="beast" votes="1" nodeid="1"/>
<clusternode name="beauty" votes="1" nodeid="2"/></clusternodes>


</cluster>







Best regards,
Johan
 
Have you tried to change:

Code:
root@beauty:/etc/pve# cat .members
{
"nodename": "beauty",
"version": 9,
"cluster": { "name": "sthlm-proxmox", "version": 8, "nodes": 2, "quorate": 1 },
"nodelist": {
  "beast": { "id": 1, "online": 1, "ip": "10.6.[COLOR=#ff0000]6[/COLOR].46"},
  "beauty": { "id": 2, "online": 1, "ip": "10.6.5.47"}
  }
}

to

Code:
root@beauty:/etc/pve# cat .members
{
"nodename": "beauty",
"version": 9,
"cluster": { "name": "sthlm-proxmox", "version": 8, "nodes": 2, "quorate": 1 },
"nodelist": {
  "beast": { "id": 1, "online": 1, "ip": "10.6.[COLOR=#ff0000]5[/COLOR].46"},
  "beauty": { "id": 2, "online": 1, "ip": "10.6.5.47"}
  }
}

Serge
 
.members is a read-only file that's compiled when creating a cluster configuration. At least that's my understanding. Otherwise this would have been easy. =)
 
Yes if that's the only way. I was hoping for a more online way of doing it, without taking the VMs offline.
 

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!