Recover Container from failed Server

dukeap

New Member
Nov 17, 2023
3
0
1
Good Morning,

i'm triing to recover a failed server with pve installed.
PVE version 8.2.2
PVE si installed in a ZFS Mirror
I've prepared a new pve installation (same version 8.2.2) and correctly mount the zfs pool (rpool).
I've recovered a virtual machine with windows installed but i have a problem recovering linux container.
I cannot find the configuration file and the root folder in general.
I've tried mounting /rpool/ROOT/pve-1 in a different folder there is no file inside /etc/pve
I found the subvol-102-disk-0 and the other container files but i don't know how to recover them...
Anyone can help me please ?

Thank You
 
Do I understand you correctly, you want to restore VMs and CTs from a failed single node? But you don't have a backup on a Proxmox backup server or a vzdump on a NAS storage?

You want to restore everything from a mounted ZFS Rpool, but can't find the VM/CT configs?
You can use SQLITE to display things from the unmounted pmxcfs.

Code:
sqlite3  /var/lib/pve-cluster/config.db #use your path from mounted old zfs rpool
select * from tree;
 
Last edited:
Do I understand you correctly, you want to restore VMs and CTs from a failed single node? But you don't have a backup on a Proxmox backup server or a vzdump on a NAS storage?

Actually i have backups but i'de like to be able to restore the machine from the disks on the original sdd to recover all recent data.

You want to restore everything from a mounted ZFS Rpool, but can't find the VM/CT configs?
You can use SQLITE to display things from the unmounted pmxcfs.

I'm not able to find the root directory where /var is located....

thank You
 
Actually i have backups but i'de like to be able to restore the machine from the disks on the original sdd to recover all recent data.
Ok, clear.

I'm not able to find the root directory where /var is located....
Under which path did you mount the old pool?

If you have backups, you can also display the configuration directly in the WebUI with “Show Configuration”.
 
If you have backups, you can also display the configuration directly in the WebUI with “Show Configuration”.

Ah ok so i can create a new conf file changing only rootfs location... i'll try later.
Thank You very much !