From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdZib-00030t-6y for qemu-devel@nongnu.org; Mon, 13 Oct 2014 03:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdZiS-000057-2X for qemu-devel@nongnu.org; Mon, 13 Oct 2014 03:06:57 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:47922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdZiR-00004r-SD for qemu-devel@nongnu.org; Mon, 13 Oct 2014 03:06:47 -0400 Received: by mail-wi0-f182.google.com with SMTP id n3so6537519wiv.9 for ; Mon, 13 Oct 2014 00:06:47 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <543B79D9.2000806@redhat.com> Date: Mon, 13 Oct 2014 09:06:01 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <9fe0fedc-802d-4838-b738-c3d0932eeeda@mailpro> In-Reply-To: <9fe0fedc-802d-4838-b738-c3d0932eeeda@mailpro> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] qemu drive-mirror to rbd storage : no sparse rbd image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre DERUMIER Cc: Ceph Devel , qemu-devel Il 13/10/2014 08:06, Alexandre DERUMIER ha scritto: > > Also, about drive-mirror, I had tried with detect-zeroes with simple qcow2 file, > and It don't seem to help. > I'm not sure that detect-zeroes is implement in drive-mirror. > > also, the target mirrored volume don't seem to have the detect-zeroes option > > > # info block > drive-virtio1: /source.qcow2 (qcow2) > Detect zeroes: on > > #du -sh source.qcow2 : 2M > > drive-mirror source.qcow2 -> target.qcow2 > > # info block > drive-virtio1: /target.qcow2 (qcow2) > > #du -sh target.qcow2 : 11G > Ah, you're right. We need to add an options field, or use a new blockdev-mirror command. Paolo