I tried changing the hostname in /etc/hostname and /etc/hosts and then copying the contents of /var/lib/rrdcached/db/pve2-{node,storage}/old-hostname to /var/lib/rrdcached/db/pve2-{node,storage}/new-hostname, as described here https://pve.proxmox.com/wiki/Renaming_a_PVE_node
but after rebooting all my LXCs/VMs were listed under the old hostname/node and I couldn't access them. So I then tried copying the files in /etc/pve/old-hostname to new-hostname, but after rebooting /etc/pve is completely empty!
Is there anything I can do to salvage my LXCs/VMs so that I don't have to start from scratch? As shown in the attached output from lsblk, the pve-vm--xxx-disk-0 LV still exist and I can mount them to folders in /mnt/ so is there anyway I can backup those and restore them after reinstalling Proxmox?
but after rebooting all my LXCs/VMs were listed under the old hostname/node and I couldn't access them. So I then tried copying the files in /etc/pve/old-hostname to new-hostname, but after rebooting /etc/pve is completely empty!
Is there anything I can do to salvage my LXCs/VMs so that I don't have to start from scratch? As shown in the attached output from lsblk, the pve-vm--xxx-disk-0 LV still exist and I can mount them to folders in /mnt/ so is there anyway I can backup those and restore them after reinstalling Proxmox?