Renaming the server - missed the /storage cfg

Sep 26, 2023
106
11
23
Ok.
I was following this document - https://serverdecode.com/change-server-name-proxmox/ as I needed to change the server name - from pve to nocpve.
All went well, till I rebooted and now it's apparent that I'm missing something else, as my 'storage' areas and servers aren't available now.

I found this document - https://www.virtualizationhowto.com/2025/01/proxmox-storage-configuration-for-beginners/ - referencing the storage.cfg file and where the data actually lives, and if found on boot up. That's probably why i got an error on boot, but the server actually came up.

I can obliviously edit the /etc/pve/storage.cfg file but I presume that i need to make some other change - on the system so that at boot-up time, the new storage is found under the 'new name' for the server (was pve, now nocpve) so that all the storage (datastore) if found upon boot. I'll have to change the host files also, presumably, since their config files are now at the new location. What else have i missed and how do I clean this up?
 

Attachments

  • nocpve-renaming.png
    nocpve-renaming.png
    145 KB · Views: 7
Hi,

Could you please check the `/etc/hosts` file? I would also check our wiki guide on renaming PVE node [0].


[0] https://pve.proxmox.com/wiki/Renaming_a_PVE_node
I did edit both files. on the /etc/hosts file i made a change from
x.x.x.x pve.home.arpa pve to x.x.x.x nocpve.home.arpa nocpve

and on the /etc/hostname file I made the change from pve to nocpve.

restarted the box and got the screen shot uploaded earlier

as i reverted back to get things up, i'll make those changes again and reboot.