Building Cluster

Posi

New Member
Oct 16, 2016
5
0
1
57
I'm trying to build a cluster and I keep killing me proxmox.

I have a Proxmox working with 2 Lan cards. 1 for Internet and one for corosync to use on the LAN.

When I pvecm create mycluster and then pvecm status I see the Internet IP address is bindnetaddr. So I vi /etc/corosync and change the IP bindnetaddr to my eth1 address. Reboot and it breaks proxmox.
I try to edit /etc/corosync but the files are in read only and I can't change the permissions to edit them.

This my 3rd time trying to build this cluster and I think I need to set the bindnetaddr when I create the cluster. So I add the create cluster mycluster -bindnetaddr xxx.xxx.xxx.xxx the IP address on eth1. This failed too.


Then I found this link http://myatus.com/p/poor-mans-proxmox-cluster/ The fix was forcing the private IP address like this. This made it work for me.

Next edit the /etc/hosts file, by commenting out the original line, and adding our own:
...
# Original:
#123.4.5.6 server1.myprovider.com server1

# Ours:
192.168.15.20 server1.myprovider.com server1
Make sure that the private IP address matches the one you assigned to vmbr1 (double check with ifconfig vmbr1).

Again, this is a “dirty” method and you may want to use your own DNS server instead that resolves IPs for a local network (say, “server1.servers.localnet”).

At this stage, reboot the server to ensure the changes get picked up and everything works as expected (that is, your server comes back up online – hmm!).
 

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!