backup VMs and Containers on "offline" node

em.tie

Active Member
Jun 13, 2018
22
0
41
45
Hi all,

I have a proxmox clusternode which I wanted to upgrade to version 9. Something went wrong during the update and after a reboot the node does boot but without any network connectivity. I did not move the virtual machines and lxc containers to another node cause I was spoiled from the other updates which always worked flawless. I wanted to backup the VMs and Containers to an external SSD connected via USB and mounted to /var/lib/vz/dump and simply reinstall the node but I couldn't convice vzdump to backup the VMs and containers to the storage local.
So I am wondering if there is another way to backup the VMs and Containers somehow?

Thanks for your help
 
Hi,

thanks for asking, and sorry for beeing that unprecise.

I first tried to backup via
Code:
vzdump 100 --storage local
but that resulted in the error message:
Code:
could not activate storage "local": storage local is disabled cloud not get storage information for local
. Then I realized that there is a switch called dumpdir in vzdump so I tried
Code:
vzdump 100 --dumpdir /var/lib/vz/dump/
but that also resulted in an errormessage
Code:
Backup of VM 100 failed - unable to open file /etc/pve/nodes/vhost02/qemu-server/100.conf.tmp.4470 Permission denied
I guess this is because the node is not connected to the cluster due to the network not coming up...

Is there a way to access /etc/pve when the clusternode is not connected to the other nodes?
 
/etc/pve is mounted by pve-cluster service.
The real data is in /var/lib/pve-cluster/config.db which is an sqlite database.


(Quoting https://forum.proxmox.com/threads/this-is-bad-etc-pve-is-missing-on-boot.127059/post-555167 ).

"If you have major problems with your Proxmox VE host, [...] it could be helpful to copy the pmxcfs database file /var/lib/pve-cluster/config.db, and move it to a new Proxmox VE host. On the new host (with nothing running), you need to stop the pve-cluster service and replace the config.db file (required permissions 0600). Following this, adapt /etc/hostname and /etc/hosts according to the lost Proxmox VE host, then reboot and check (and don’t forget your VM/CT data). [...]"

(Read all the https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_pmxcfs )

And maybe these threads will help?

https://forum.proxmox.com/threads/this-is-bad-etc-pve-is-missing-on-boot.127059/

https://forum.proxmox.com/threads/backup-cluster-config-pmxcfs-etc-pve.154569/

https://forum.proxmox.com/threads/r...ffline-extract-configurations-etc-pve.155374/

Proceed with care and let us know if (and how) you will have managed to solve your issue :)

Edit: there is a chance that reinstallation isn't necessary.
You can check the logs (journalctl and the logs of apt and dpkg) and the status of services (systemctl).
Maybe reinstalling some packages will be enough. I have seen posts with similar issues. I don't remember the details of the solution though.
 
Last edited:
  • Like
Reactions: UdoB