302 Proxmox - Changing the IP Address of the server (not in a cluster)

Опубликовано: 06 Сентябрь 2020
на канале: Stoyan Cheresharov
12,269
55

You have to change the IP in up to three files, dependence on your setup.
/etc/network/interfaces
/etc/hosts
If the server is in a cluster:
/etc/pve/corosync.conf (only on one node necessary)

After you change them on both nodes, reboot both nodes.

"Editing the corosync.conf file is not always very straightforward. There are two on each cluster node, one in /etc/pve/corosync.conf and the other in /etc/corosync/corosync.conf. Editing the one in our cluster file system will propagate the changes to the local one, but not vice versa."
cp /etc/pve/corosync.conf /etc/pve/corosync.conf.new
cp /etc/pve/corosync.conf /etc/pve/corosync.conf.bak
make the changes in /etc/pve/corosync.conf.new and
mv /etc/pve/corosync.conf.new /etc/pve/corosync.conf
You may check with the commands

systemctl status corosync
journalctl -b -u corosync
If the change could be applied automatically. If not you may have to restart the corosync service via:

systemctl restart corosync

References:
https://forum.proxmox.com/threads/cha...

https://tweenpath.net/change-cluster-...


Смотрите видео 302 Proxmox - Changing the IP Address of the server (not in a cluster) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Stoyan Cheresharov 06 Сентябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12,269 раз и оно понравилось 55 людям.