recover/copy VM/LXC by installing PVE on second disk?

daemonix

Member
Dec 12, 2021
33
3
13
43
My main NVME (ZFS) has messed up boot and I can't seem to find a way to fix it.
I installed a second PVE from scratch on an other NVME and Im trying to rescue/copy the VMs/LXCs from the first drive.

I can mount the "rpool" and "zfsdata" with "zpool import -R /mnt/firstrpool -f rpool" but "/mnt/firstrpool/etc/pve" is empty and the "zfsdata" is mounted a one 'volume' per vm/lxc due to being ZFS (This is my first PVE build with ZFS as boot.... and here are the results heheh).

What is the best way to rescue my files/VMs? Im probably doing something wrong here :)
 
/etc/pve is empty because that is a FUSE filesystem under normal circumstances, exposing the contents of the Proxmox database as filesystem.

You can find the config database in /var/lib/pve-cluster. It's an SQLite DB which should be readable with the usual command line tools.
 
/etc/pve is empty because that is a FUSE filesystem under normal circumstances, exposing the contents of the Proxmox database as filesystem.

You can find the config database in /var/lib/pve-cluster. It's an SQLite DB which should be readable with the usual command line tools.

Usual tools you mean for sqlite??

Any idea how to rescue the VMs and LXCs?

Thanks
 
The image files for the vHDDs are in the storage referenced in the configuration which would be somewhere in your "firstrpool" I assume.
Is this true for ZFS filesystems? (probably inside the ZFS-DATA partition)
Thanks