[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] question about live migration with storage
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] question about live migration with storage |
Date: |
Wed, 25 Mar 2015 14:07:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 10/03/2015 03:01, Zhang Haoyu wrote:
> My test results show that when using thin-provisioning qcow2
> image(created by qemu-img create -f qcow2 preallocation=metadata),
> even the unallocated sectors will be transferred to destination, so
> much data is transferred, so the qcow2 image in destination is full
> allocated.
Yes, metadata preallocation actually allocates all sectors. Only, the
qcow2 image is sparse so the sectors do not consume space on the source.
I think you can avoid the problem by passing file.detect-zeroes=unmap in
the -drive option of the destination QEMU. Kevin/Peter, can you confirm
this should work?
Paolo