[PVE-User] PVE Cluster and /etc/hosts.conf

Alwin Antreich a.antreich at proxmox.com
Tue Sep 19 14:13:03 CEST 2017


Hi Gilberto,

On Mon, Sep 18, 2017 at 05:34:47PM -0300, Gilberto Nunes wrote:
> Hi guys...
>
> I always do, as good practices, adjust the /etc/hosts.conf, in order to
> resolve the internal IP to the machine name, when creating a cluster.
> So, I puted this in /etc/hosts.conf in each node:
>
> 127.0.0.1   localhost
> 10.1.1.10 pve01 pvelocalhost
> 10.1.1.20 pve02
> 10.1.1.30 pve03
>
> just altering the pvelocalhost according to the node...
>
> Now, when I add the node to the cluster, I refer to the name of that
> "primary" node, such this:
>
> pvecm add pve01
>
> Is this correct???
You can add all PVE hostnames into your /etc/hosts for lookup. But you
should also have a FQDN in there too, you have been asked during setup.

>
> P.S.: I just acted like this, because I believe that to make a private
> network between the servers, do the cluster more reliable than make all
> traffic from clusters node concurrer with LAN traffic...
To put cluster traffic on its on network is always a good idea.

>
> Thanks anyway
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
--
Cheers,
Alwin



More information about the pve-user mailing list