Configure hosts file Proxmox VE6 cluster

Hoang.NV

New Member
Aug 28, 2019
13
0
1
33
Hi everyone,

When I create cluster with 3 nodes (node01, node02, node03) via GUI Proxmox VE6, file hosts on each node is like:
----
127.0.0.1 localhost.localdomain localhost
192.168.1.1 node01.domain.vn node01 # only node01's IP not contain node02, node03


# The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
----

Above hosts file is OK ? As i know file hosts on each must include IP of three nodes for reference all nodenames (names resolvable).

Thanks.
 
Hi Hoang,

for pvecm it is not necessary to have entries for the other nodes in the hosts file, the important thing is that the IPs in /etc/pve/corosync.conf are correct. If you want other services to be able to resolve the node names then yes, you can just add the entries for the other nodes to each hosts file.

Best Regards,
Fabi
 
  • Like
Reactions: Dominic
Hi Hoang,

for pvecm it is not necessary to have entries for the other nodes in the hosts file, the important thing is that the IPs in /etc/pve/corosync.conf are correct. If you want other services to be able to resolve the node names then yes, you can just add the entries for the other nodes to each hosts file.

Best Regards,
Fabi
Hi Fabian_E,

Yes, I understood. Thanks for your reply :)
 

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!