<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.nerdmage.ca/index.php?action=history&amp;feed=atom&amp;title=Renaming_a_Node</id>
	<title>Renaming a Node - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nerdmage.ca/index.php?action=history&amp;feed=atom&amp;title=Renaming_a_Node"/>
	<link rel="alternate" type="text/html" href="https://wiki.nerdmage.ca/index.php?title=Renaming_a_Node&amp;action=history"/>
	<updated>2026-04-08T01:12:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.nerdmage.ca/index.php?title=Renaming_a_Node&amp;diff=3652&amp;oldid=prev</id>
		<title>Tinker: Created page with &quot;[https://forum.proxmox.com/threads/changing-name-of-nodes-in-cluster.136623/#post-707583 Original Source]  PVE Node Rename Test{{!}}Working? Sample  Stopped all VMs [ Also Moved all important VM to another Node for my peace of mind]  Actually... Just back them up. They&#039;re gonna bork anyhow...  From the node terminal which I want to rename, I ran these and made changes for &#039;&#039;&#039;new_hostname&#039;&#039;&#039; * &lt;span style=&quot;color: rgb(0, 128, 128);&quot;&gt;cp -r /etc/pve /root/pve_backup&lt;/spa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nerdmage.ca/index.php?title=Renaming_a_Node&amp;diff=3652&amp;oldid=prev"/>
		<updated>2024-10-26T16:04:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;[https://forum.proxmox.com/threads/changing-name-of-nodes-in-cluster.136623/#post-707583 Original Source]  [[PVE Node Rename Test{{!}}Working? Sample]]  Stopped all VMs [ Also Moved all important VM to another Node for my peace of mind]  Actually... Just back them up. They&amp;#039;re gonna bork anyhow...  From the node terminal which I want to rename, I ran these and made changes for &amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039; * &amp;lt;span style=&amp;quot;color: rgb(0, 128, 128);&amp;quot;&amp;gt;cp -r /etc/pve /root/pve_backup&amp;lt;/spa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[https://forum.proxmox.com/threads/changing-name-of-nodes-in-cluster.136623/#post-707583 Original Source]&lt;br /&gt;
&lt;br /&gt;
[[PVE Node Rename Test{{!}}Working? Sample]]&lt;br /&gt;
&lt;br /&gt;
Stopped all VMs [ Also Moved all important VM to another Node for my peace of mind]&lt;br /&gt;
&lt;br /&gt;
Actually... Just back them up. They&amp;#039;re gonna bork anyhow...&lt;br /&gt;
&lt;br /&gt;
From the node terminal which I want to rename, I ran these and made changes for &amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color: rgb(0, 128, 128);&amp;quot;&amp;gt;cp -r /etc/pve /root/pve_backup&amp;lt;/span&amp;gt;&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: rgb(0, 128, 128);&amp;quot;&amp;gt;Backing up the entire pve directory?&amp;lt;/span&amp;gt;&lt;br /&gt;
* vi /etc/hosts /etc/hostname /etc/mailname /etc/postfix/main.cf&lt;br /&gt;
** Change all occurrences of existing &amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* hostnamectl set-hostname &amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* vi /etc/pve/corosync.conf&lt;br /&gt;
** Change&amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** increase the &amp;#039;&amp;#039;&amp;#039;config_version&amp;#039;&amp;#039;&amp;#039; from (add 1 to whatever is there currently)&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;pvecm updatecerts&amp;lt;/span&amp;gt;&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;This is only really valid if you&amp;#039;re using the built-in certs...&amp;lt;/span&amp;gt;&lt;br /&gt;
* systemctl restart pveproxy&amp;lt;br&amp;gt;&lt;br /&gt;
* systemctl restart pvedaemon&lt;br /&gt;
* cd /etc/pve/nodes&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color: rgb(0, 128, 128);&amp;quot;&amp;gt;cp -r /etc/pve/nodes/&amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039;/ /root/oldconfig&amp;lt;/span&amp;gt;&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: rgb(0, 128, 128);&amp;quot;&amp;gt;why back it up like this?&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;cp /etc/pve/nodes/&amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039;/lxc/* /etc/pve/nodes/&amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;/lxc&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;cp /etc/pve/nodes/&amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039;/qemu-server/* /etc/pve/nodes/&amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;/qemu-server&amp;lt;/span&amp;gt;&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;These last two seem to be trying to repeat something already done (probably by one of the above restarts...)&amp;lt;/span&amp;gt;&lt;br /&gt;
* rm -rf /etc/pve/nodes/&amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* cd /var/lib/rrdcached/db/pve2-node/&lt;br /&gt;
* cp -r &amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* cd /var/lib/rrdcached/db/pve2-storage/&lt;br /&gt;
* cp -r &amp;#039;&amp;#039;&amp;#039;old_hostname&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;new_hostname&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* reboot&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;After restart I also changed my storage settings as well&amp;lt;/span&amp;gt;&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;vi /etc/pve/storage.cfg&amp;lt;/span&amp;gt;&lt;br /&gt;
*** &amp;lt;span style=&amp;quot;color: rgb(0, 128, 0);&amp;quot;&amp;gt;Not sure what changes you did...&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(128, 0, 0);&amp;quot;&amp;gt;Unfortunately, while this does indeed rename the node, it kinda borks any existing VMs &amp;amp; containers as well as extra local storage (volume groups, thinpools, directories, possibly ZFS) created in the UI. The data isn&amp;#039;t gone, just the mounts for these things...&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For now:&lt;br /&gt;
* go to &amp;#039;&amp;#039;&amp;#039;local-lvm&amp;#039;&amp;#039;&amp;#039; &amp;amp; delete the content of &amp;#039;&amp;#039;&amp;#039;VM Disks&amp;#039;&amp;#039;&amp;#039; &amp;amp; &amp;#039;&amp;#039;&amp;#039;CT Volumes&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* reconstruct your extra local storage.&lt;br /&gt;
* Restore your VMs &amp;amp; CTs from backup...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(128, 0, 0);&amp;quot;&amp;gt;More research is needed...&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: A minor thing, but it&amp;#039;ll mess with you... Any Web UI sessions open to another node will still show the old name as a (broken) node until cleared from your browsers cache. Just closing the tab &amp;amp; then opening it fresh works...&lt;/div&gt;</summary>
		<author><name>Tinker</name></author>
	</entry>
</feed>