Renaming a PVE node: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(categorize article as HOWTO and WIP as its not bad or wrong but lacking information.) |
||
Line 15: | Line 15: | ||
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. | 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. | ||
[[ | |||
[[Category: HOWTO]] | |||
[[Category: WIP]] |
Revision as of 13:52, 3 October 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.