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

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.