Changing the hostname of a node within an active Proxmox cluster is indeed a complex task because the node name is deeply integrated into the filesystem and corosync configuration.
If you want to perform an in-place rename, you can refer to this detailed guide:
Change hostname in a productive Proxmox Ceph HCI cluster
Additionally, while the official wiki provides a method for
Renaming a PVE node, it explicitly warns:
Given these complexities and the potential risks involved with manual corosync edits, you might find it more straightforward and reliable to consider this alternative approach:
- Back up or migrate your VMs/containers to other nodes.
- Remove the node from the cluster.
- Perform a fresh Proxmox VE installation with the desired hostname.
- Join the node back to the cluster.
This way, you can ensure a clean configuration without worrying about lingering "ghost" entries in the cluster filesystem.
Hope this helps!