Migrate between two nodes with zfs (node1) and lvm (node2)

SnejPro

New Member
Feb 28, 2022
15
3
3
Olching, Germany
Hi,
is it possible to migrate a VM from node1 (zfs with direct disk access) to node 2 (lvm with hardware raid)?
When i add the zfs storage (node 1) to both nodes, it is unkown on node 2.
1677617264399.png
Greetings
Jens
 
Hi,

You migrate the VM using qm command line e.g.:

Bash:
qm migrate <VMID> <Target-Node-Name> --targetstorage <Target-Storage-Name> --with-local-disks --online

If the node hv2 have a zfs storage, you can do zpool export && zpool import
 
The migration from zfs --> lvm (thin) works but the other way around failed. Is this supposed work?
 
for a live migration with no snapshots involved and no volumes which are migrated offline all storage combinations should be supported (since in this case, the migration happens via NBD and block-mirror in Qemu). for offline migrations the combination of source and target storage must have a common transfer format, and ZFS only supports ZFS which is not supported by other storage types.

please post the full task log it should contain an indication of what's going wrong!
 
for a live migration with no snapshots involved and no volumes which are migrated offline all storage combinations should be supported (since in this case, the migration happens via NBD and block-mirror in Qemu). for offline migrations the combination of source and target storage must have a common transfer format, and ZFS only supports ZFS which is not supported by other storage types.

please post the full task log it should contain an indication of what's going wrong!
Hi fabian,

thanks for the information. It solved now by setting the local storage as storage for vm-disks aswell. Now i can migrate the VM from zfs to directory to directory on the target.

Online Migration is not an option because hv1 has amd cpus and hv2 intel cpus.

But it would be easier if i cloud migrate directly between different storage types.

Greetings

Jens
 
raw export/import for ZFS zvols (without snapshot support) is definitely something that should be implemented and shouldn't be too hard.
 

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!