Container lost after node rename

DreamView

New Member
Mar 30, 2023
1
0
1
Netherlands
I renamed a node (not in a cluster) with these steps:
  • nano /etc/hosts
  • nano /etc/hostname
  • nano /etc/mailname
  • nano /etc/postfix/main.cf
  • cp -p /var/lib/rrdcached/db/pve2-node/old-name /var/lib/rrdcached/db/pve2-node/new-name
  • cp -p /var/lib/rrdcached/db/pve2-storage/old-name/* /var/lib/rrdcached/db/pve2-storage/new-name
  • service pve-cluster stop && pmxcfs --local
  • mv /etc/pve/nodes/old-name/qemu-server/* /etc/pve/nodes/new-name/qemu-server
  • rm -Rf /etc/pve/nodes/old-name
  • rm -Rf /var/lib/rrdcached/db/pve2-node/old-name
  • rm -Rf /var/lib/rrdcached/db/pve2-storage/old-name
  • reboot

Everything went wel (so I thought) and after te reboot the node was renamed and all VM where still there... later I realized that I lost a container in the process... I think i still have the disk (32GB RAW), but is there anyway I can restore the container from that disk image?

Any help would be much appreciated.

Regards,

Remco
 
Hi,

You didn't find the configuration file in `/etc/pve/lxc/` path? Do you have a backup of that container?