From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Morrissey Subject: Re: qcow2 corruption? Date: Thu, 8 Jan 2009 15:16:16 -0500 Message-ID: <20090108201616.GA32392@boost.horde.net> References: <20081226210028.GA25127@boost.horde.net> <20090108192422.GA32052@boost.horde.net> <20090108201030.GH13481@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Ryan Harper Return-path: Received: from boost.horde.net ([69.55.65.181]:41767 "EHLO boost.horde.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753661AbZAHUQS (ORCPT ); Thu, 8 Jan 2009 15:16:18 -0500 Content-Disposition: inline In-Reply-To: <20090108201030.GH13481@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jan 08, 2009 at 02:10:31PM -0600, Ryan Harper wrote: > * John Morrissey [2009-01-08 13:28]: > > I'm encountering what seems like disk corruption when using qcow2 images, > > created with 'kvm-img create -f qcow2 image.qcow2 15G'. > > using ide or scsi as your block device? IDE. > > A simple test case is to use the Debian installer (I'm using the lenny > > rc1 images from http://www.debian.org/devel/debian-installer/) to > > install a new domain. The qcow2 file on disk grows due to the mkfs(8) > > activity, then the installer faults while trying to mount the root > > filesystem (Invalid argument). 'fdisk -l' shows that the partition table > > just created by the installer is gone. > > > > In a few cases, I've managed to finish an installation, but the resulting > > filesystem is strangely corrupt: > > > > # file /usr/bin/w.procps > > /usr/bin/w.procps: gzip compressed data, was "aptitude.8", from Unix, last modified: Wed Mar 14 14:11:18 2007, max compression > > If you are using ide and getting corruption, try again but with creating > a disk image with the raw format: > > qemu-img create -f raw > > That should help track down where the corruption is coming from. raw images are fine. (Sorry, should've mentioned that in the first place.) john -- John Morrissey _o /\ ---- __o jwm@horde.net _-< \_ / \ ---- < \, www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__