I just ran into an issue trying to live migrate a VM; source and target are zfs, version is 8.4.1
Error message: online migrate failure - block job (mirror) error: drive-scsi0: Source and target image have different sizes
The disk was created by importing from a Hyper-V vhd image, that turns out to have a size not rounded to the zfs block size of 128k.
Trying to migrate results in the above error; adjusting the size to the next GB boundary fixed the issue
The question is if this could be caught at an earlier point, i.e could/should qm importdisk round up the size to match target blocksize?
Error message: online migrate failure - block job (mirror) error: drive-scsi0: Source and target image have different sizes
The disk was created by importing from a Hyper-V vhd image, that turns out to have a size not rounded to the zfs block size of 128k.
Bash:
qm importdisk 103 /mnt/pve/hv1-d/vm/virtual1/Virtual\ Hard\ Disks/virtual1.vhd zfs -format raw
zfs get volsize zfs/vm-103-disk-0 -p
NAME PROPERTY VALUE SOURCE
zfs/vm-103-disk-0 volsize 68719493120 local
Trying to migrate results in the above error; adjusting the size to the next GB boundary fixed the issue
Bash:
zfs set volsize=69793218560 zfs/vm-103-disk-0
The question is if this could be caught at an earlier point, i.e could/should qm importdisk round up the size to match target blocksize?