Why PVE move/clone disk using qemu-img instead of dd on raw disk?

CoiaPrant

New Member
Feb 24, 2024
3
0
1
I'm using PVE with lvm storage, when I move or clone disk, it's using qemu-img. but qemu-img convert is too slow.

I move disk from ssd to hdd (both lvm). 20G disk spend at least 2 hours.
When I using dd. its spend about 10min.

Why qemu-img convert so slow? Should pve using dd to replace qemu-img on raw?
 
qemu-img is probably used because it is the tool that can do all conversions, is therefore the only necessary code path and it has a progress bar. Maybe qemu-img uses per default a sync write and dd not and that could accomodate for the different speeds? I have not experienced any slowliness with this on my lvm-based systems