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

CoiaPrant

New Member
Feb 24, 2024
2
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
 
no slow here too.
qemu should faster because skip / writing zeroes where dd write zeroes ...

edit: correction
 
Last edited:

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!