Any known issues with rebuilding a host in a cluster and reusing the same hostname?

loneboat

Well-Known Member
Jan 17, 2019
39
3
48
35
I have a 4-node PVE cluster, and one of my nodes needs to be re-built from scratch (I'm re-arranging how the ZFS pool is allocated and rebuilding some of the VDEVs, including the rpool partition).

This host's hostname is embedded across various maintenance scripts which I use, so it would be very convenient to just re-install PVE using the same hostname/etc. But I recall trying that once before and facing some issues. This was several years ago, and I do not remember exactly what the issues were, but at the time I just renamed the new host and my issue went away.

Are there known issues with using a hostname which the cluster has seen prior? Or is it safe simply to re-install PVE on a host, and give it the same hostname?
 
I've reinstalled nodes and re-used the same hostname. This works as long as you've done a graceful node removal as per the docs and verified that the dead node has been removed in the corosync file before re-building

I think up to Proxmox 5 or so this wouldn't work, as metadata would be left behind on a graceful node removal
 
  • Like
Reactions: loneboat