Corosync configuration

halley80

Well-Known Member
Feb 13, 2019
49
2
48
53
Hello,

Can this be a problem when the node name is different from 'ring0_addr' in corosync.conf ?
**********************************
node {
name: ipmpve2
nodeid: 2
quorum_votes: 1
ring0_addr: cluster-ipm2
}
**********************************
To properly shut down Proxmox, what is the order of stopping services? :
pveproxy stop service
pvestatd stop service
pvedaemon stop service
pve-cluster stop service

Thank you for your answers,
kind regards
 
It can be a problem. The "name" field should always be set to the hostname of the node in question. The ring0_addr can differ, if it resolves to a valid IP address of this node on all nodes in the cluster. It is recommended to put an IP address as ringX_addr, to avoid hostname/DNS resolving issues.

To properly shut down Proxmox, what is the order of stopping services?

Do you mean actually shut down the machine? If so, you can simple call 'poweroff', Proxmox will correctly stop all services on its own.
 
Thank you for your answer.
My cluster (production) is configured like this and I will add two nodes

Currently, the hosts file is the same for each node.
**********************************
192.168.38.x ipmpve1.cl.fr ipmpve1
192.168.38.y ipmpve2.cl.fr ipmpve2

192.168.46.50 cluster-ipm1
192.168.46.51 cluster-ipm2
#192.168.46.52 cluster-ipm3
#192.168.46.53 cluster-ipm4
**********************************
How to change the configuration? Edit directly to "corosync.conf"? cf corosync.conf
If so, replace ipmpve1 with cluster-pve1, etc... ? and restart corosync ?

For the shutdown of proxmox, I want to execute it in script (APC grid inverter) in case of power failure.
kind regards
 

Attachments

  • corosync.txt
    464 bytes · Views: 7
Adding nodes should always be done via the Proxmox GUI or CLI (pvecm). If your hosts file includes entries for all nodes (and is the same on all machines) your current configuration should work. I would still recommend using IP Addresses in your corosync.conf though, if you have your name resolving done via a shared /etc/hosts anyway, there isn't really a benefit to using hostnames.

Check our docs to see how to edit corosync.conf by hand. Only change the ring0_addr however (e.g. cluster-ipm1 to 192.168.46.50 and so on), the "name" property always has to match the output of running "hostname" on the respective nodes.

For the shutdown of proxmox, I want to execute it in script (APC grid inverter) in case of power failure.

Yes, simply calling "poweroff" (or "systemctl poweroff") in your script is enough to correctly shut down. Make sure the script runs with the correct permissions to be able to call that command.
 

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!