Skip to content

Instantly share code, notes, and snippets.

@timelf123
Forked from pierew/pvenode-rename
Created June 9, 2020 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timelf123/c63ec99fd710255560bf4615059dc8f0 to your computer and use it in GitHub Desktop.
Save timelf123/c63ec99fd710255560bf4615059dc8f0 to your computer and use it in GitHub Desktop.
Changing a Proxmox VE Nodes name when it is not in a cluster
OLDNAME=$(hostname)
hostnamectl set-hostname ${1}
mkdir -p /etc/pve/nodes/${1}
cp -a /etc/pve/nodes/${OLDNAME} /etc/pve/nodes/${1}
echo 'A reboot is required, Exit with CTRL-C'
read
@timelf123
Copy link
Author

handle /var/lib/rrdcached/db/pve2-node/ too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment