Hi,
after my root disk broke and needed to be replaced (containers kept working, only VMs went down as well btw.) I did some researching on how to do it.
Since I have an identical system that was cloned from the original system (using dd and then adjusting hostnames/ip afterwards) I though this ought to be an easy job.
Also I have all important files backed up, including the vm-images and container-images
So far it has been a nightmare:
I installed Debian bookworm from scratch and then used apt-clone to clone all packages from the back-up system to the new install.
This went well after some hick-ups with package management due to /var being on a separate disk.
The first thing I did was restore all images back to the respective locations (VM, containers, templates, iso...).
Now I found some posts claiming that it would be sufficient to replace /etc/pve with the backed-up version and all should be fine
(see https://forum.proxmox.com/threads/how-to-restore-config-db-or-list-contents.72491/ )
Well this lead into a bunch of errors which lead me into a completely wrong direction, until in my desperation I removed the entire /etc/pve and rebooted
At least I had a working web-Interface now, but was nowhere close to my goal of restoring the old system.
Since I have the old /var which contains /var/lib/pve-cluster/config.db from the time of the crash, I tried the other suggestion that I found
( https://forum.proxmox.com/threads/w...-proxmox-os-crash-due-to-power-failure.74000/ )
Note that again copying /etc/pve is mentioned - I find this very misleading, because it appears clearly wrong.
So I restored all files mentioned in that post, generated an empty /etc/pve again and put the old config.db in the correct location on the new system, then rebooted.
It looks promising - however the entire network config (although networking appears to function) is not visible anymore in the web interface.
===> How can that be corrected? /etc/network/interfaces and /etc/network/interfaces.d have been restored and as mentioned networking seems to work (I can reach all containers/VMs from the outside via ssh)
===> Also what *is* the correct and also fastest solution to restore the machines.
I feel uneasy to rely on a config.db file which I cannot easily read/check for correct information.
Is there at least a description of the format, so that it can be edited and if need be corrected?
kind regards,
z.
after my root disk broke and needed to be replaced (containers kept working, only VMs went down as well btw.) I did some researching on how to do it.
Since I have an identical system that was cloned from the original system (using dd and then adjusting hostnames/ip afterwards) I though this ought to be an easy job.
Also I have all important files backed up, including the vm-images and container-images
So far it has been a nightmare:
I installed Debian bookworm from scratch and then used apt-clone to clone all packages from the back-up system to the new install.
This went well after some hick-ups with package management due to /var being on a separate disk.
The first thing I did was restore all images back to the respective locations (VM, containers, templates, iso...).
Now I found some posts claiming that it would be sufficient to replace /etc/pve with the backed-up version and all should be fine
(see https://forum.proxmox.com/threads/how-to-restore-config-db-or-list-contents.72491/ )
Well this lead into a bunch of errors which lead me into a completely wrong direction, until in my desperation I removed the entire /etc/pve and rebooted
At least I had a working web-Interface now, but was nowhere close to my goal of restoring the old system.
Since I have the old /var which contains /var/lib/pve-cluster/config.db from the time of the crash, I tried the other suggestion that I found
( https://forum.proxmox.com/threads/w...-proxmox-os-crash-due-to-power-failure.74000/ )
Note that again copying /etc/pve is mentioned - I find this very misleading, because it appears clearly wrong.
So I restored all files mentioned in that post, generated an empty /etc/pve again and put the old config.db in the correct location on the new system, then rebooted.
It looks promising - however the entire network config (although networking appears to function) is not visible anymore in the web interface.
===> How can that be corrected? /etc/network/interfaces and /etc/network/interfaces.d have been restored and as mentioned networking seems to work (I can reach all containers/VMs from the outside via ssh)
===> Also what *is* the correct and also fastest solution to restore the machines.
I feel uneasy to rely on a config.db file which I cannot easily read/check for correct information.
Is there at least a description of the format, so that it can be edited and if need be corrected?
kind regards,
z.
Last edited: