From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNlaf-00022J-G2 for qemu-devel@nongnu.org; Mon, 15 Oct 2012 10:24:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNlab-0001us-GW for qemu-devel@nongnu.org; Mon, 15 Oct 2012 10:24:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNlab-0001ul-8a for qemu-devel@nongnu.org; Mon, 15 Oct 2012 10:24:17 -0400 Message-ID: <507C1C8B.2060205@redhat.com> Date: Mon, 15 Oct 2012 16:24:11 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <20121015.183337.17413021.k.suzaki@aist.go.jp> <507C0EBC.3030805@redhat.com> In-Reply-To: <507C0EBC.3030805@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] delvm does not reduce the qcow2 file size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Am 15.10.2012 15:25, schrieb Paolo Bonzini: > Il 15/10/2012 11:33, Kuniyasu Suzaki ha scritto: >> Hello, >> >> "delvm" is a command to delete a snapshot image in a qcow2 file. >> However it does not reduce the qcow2 file size. > > Note that the file will not grow when new allocations are performed in > the future. > > QEMU should also convert the unused clusters to "holes" in the file > system, but it doesn't do that yet. > >> Is there any method to reduce the qcow2 file size when I delete a snapshot image? >> should I "convert" the qcow2 file? > > I'm not sure what convert does if you have internal snapshots. It loses the snapshots. Kevin