Difference between revisions of "Renaming a PVE node"

From Proxmox VE
Jump to: navigation, search
(Created page with "= Work in progress = Quick notes gathered from various other places including the forum: To rename a standalone PVE host, you need to edit: * /etc/hosts * /etc/hostname * /e...")
 
Line 8: Line 8:
 
* /etc/mailname
 
* /etc/mailname
 
* /etc/postfix/main.cf
 
* /etc/postfix/main.cf
 +
 +
The SSH keys don't need to be edited unless you really want to (and if you do, make sure you make the corresponding change on every other machine that SSH public key appears on).
 +
It appears that /etc/motd gets regenerated automatically.
  
 
Then copy the contents of /etc/pve/nodes/''old-hostname'' to /etc/pve/nodes/''new-hostname'' (apparently renaming doesn't work).
 
Then copy the contents of /etc/pve/nodes/''old-hostname'' to /etc/pve/nodes/''new-hostname'' (apparently renaming doesn't work).
 +
Also copy the contents of /var/lib/rrdcache/db/pve2-{node,storage}/''old-hostname'' to /var/lib/rrdcache/db/pve2-{node,storage}/''new-hostname'' and remove the old directory.
  
 
[[User:Adam Thompson|Adam Thompson]] ([[User talk:Adam Thompson|talk]]) 18:21, 18 February 2016 (CET)
 
[[User:Adam Thompson|Adam Thompson]] ([[User talk:Adam Thompson|talk]]) 18:21, 18 February 2016 (CET)

Revision as of 19:26, 18 February 2016

Work in progress

Quick notes gathered from various other places including the forum:

To rename a standalone PVE host, you need to edit:

  • /etc/hosts
  • /etc/hostname
  • /etc/mailname
  • /etc/postfix/main.cf

The SSH keys don't need to be edited unless you really want to (and if you do, make sure you make the corresponding change on every other machine that SSH public key appears on). It appears that /etc/motd gets regenerated automatically.

Then copy the contents of /etc/pve/nodes/old-hostname to /etc/pve/nodes/new-hostname (apparently renaming doesn't work). Also copy the contents of /var/lib/rrdcache/db/pve2-{node,storage}/old-hostname to /var/lib/rrdcache/db/pve2-{node,storage}/new-hostname and remove the old directory.

Adam Thompson (talk) 18:21, 18 February 2016 (CET)