[SOLVED] Cluster Issue

aPollO

Renowned Member
Mar 6, 2014
153
14
83
Cottbus, Germany
Hi Guys,

i tried to add a second node to my cluster. I created the cluster on node proxmox01 and then added the node proxmox02. I got some errors cause my hostnames. I corrected the issue and now all is resovable and correctly added to the /etc/pve/corosync.conf.

I rebootet both nodes. But on the proxmox01 i only see this single node in the tree with an ? and on the second node proxmox02 i see both nodes but can't make any change. Both nodes shown with an red x.

Here ist the output if pvecm status


root@proxmox01 ~ # pvecm status
Quorum information
------------------
Date: Fri Jul 27 00:00:58 2018
Quorum provider: corosync_votequorum
Nodes: 2
Node ID: 0x00000001
Ring ID: 2/28
Quorate: Yes

Votequorum information
----------------------
Expected votes: 2
Highest expected: 2
Total votes: 2
Quorum: 2
Flags: Quorate

Membership information
----------------------
Nodeid Votes Name
0x00000002 1 192.168.30.8
0x00000001 1 192.168.30.30 (local)

root@proxmox02 ~ # pvecm status
Quorum information
------------------
Date: Fri Jul 27 00:01:01 2018
Quorum provider: corosync_votequorum
Nodes: 2
Node ID: 0x00000002
Ring ID: 2/28
Quorate: Yes

Votequorum information
----------------------
Expected votes: 2
Highest expected: 2
Total votes: 2
Quorum: 2
Flags: Quorate

Membership information
----------------------
Nodeid Votes Name
0x00000002 1 192.168.30.8 (local)
0x00000001 1 192.168.30.30

root@proxmox02 ~ # cat /etc/pve/corosync.conf
logging {
debug: off
to_syslog: yes
}

nodelist {
node {
name: proxmox01.giga
nodeid: 1
quorum_votes: 1
ring0_addr: 192.168.30.30
}
node {
name: proxmox02.giga
nodei.d: 2
quorum_votes: 1
ring0_addr: 192.168.30.8
}
}

quorum {
provider: corosync_votequorum
}

totem {
cluster_name: cluster01
config_version: 2
interface {
bindnetaddr: 192.168.30.30
ringnumber: 0
}
ip_version: ipv4
secauth: on
version: 2
}


I found out that un the .members file the wrong ip address is used. I have on both nodes the subnets 192.168.10.0/24 and 192.168.30.0/24. and the hostnames proxmox01 and proxmox02 resolv to the first subnet, proxmox01.giga and proxmox02.giga resolves to the second one.
I want to use the Subnet 192.168.30.0/24. Have i something to change?


root@proxmox01 ~ # cat /etc/pve/.members
{
"nodename": "proxmox01",
"version": 4,
"cluster": { "name": "cluster01", "version": 2, "nodes": 2, "quorate": 1 },
"nodelist": {
"proxmox01.giga": { "id": 1, "online": 1},
"proxmox02.giga": { "id": 2, "online": 1, "ip": "192.168.10.8"}
}
}
root@proxmox02 ~ # cat /etc/pve/.members
{
"nodename": "proxmox02",
"version": 6,
"cluster": { "name": "cluster01", "version": 2, "nodes": 2, "quorate": 1 },
"nodelist": {
"proxmox01.giga": { "id": 1, "online": 1, "ip": "192.168.10.30"},
"proxmox02.giga": { "id": 2, "online": 1}
}
}

i attached screenshots from both servers. I think somethink does not work correctly i dont know. How can i debug this a bit more?

proxmox01.png
proxmox02.png
 
Last edited:
Okay i think i finally got it. I changed corosync.conf one more time and correted the "names" back zu proxmox01 and proxmox02 without the .giga and then added a ring1 with the second ip adresses. now all works fine.
 

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!