Skip to content

Instantly share code, notes, and snippets.

@oneohthree
Last active March 5, 2020 22:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
systemctl stop pve*
nano /etc/hostname
nano /etc/hosts
hostnamectl set-hostname new_hostname
reboot
cp /var/lib/rrdcached/db/pve2-node/old_hostname /var/lib/rrdcached/db/pve2-node/new_hostname
cp /var/lib/rrdcached/db/pve2-storage/old_hostname /var/lib/rrdcached/db/pve2-storage/new_hostname
rm cp /var/lib/rrdcached/db/pve2-node/old_hostname
rm cp /var/lib/rrdcached/db/pve2-storage/old_hostname
service pve-cluster restart
mv /etc/pve/nodes/old_hostname/lxc/* /etc/pve/nodes/new_hostname/lxc
mv /etc/pve/nodes/old_hostname/qemu-server/* /etc/pve/nodes/new_hostname/qemu-server
rm -r /etc/pve/nodes/old_hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment