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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!