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

daemonix

Member
Dec 12, 2021
32
3
13
42
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
 

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!