From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Harper Subject: Re: qcow2 corruption? Date: Thu, 8 Jan 2009 14:10:31 -0600 Message-ID: <20090108201030.GH13481@us.ibm.com> References: <20081226210028.GA25127@boost.horde.net> <20090108192422.GA32052@boost.horde.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: John Morrissey Return-path: Received: from e31.co.us.ibm.com ([32.97.110.149]:54451 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752807AbZAHUKw (ORCPT ); Thu, 8 Jan 2009 15:10:52 -0500 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n08K95xx010755 for ; Thu, 8 Jan 2009 13:09:05 -0700 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n08KAWld075578 for ; Thu, 8 Jan 2009 13:10:45 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n08KAWZ3007685 for ; Thu, 8 Jan 2009 13:10:32 -0700 Content-Disposition: inline In-Reply-To: <20090108192422.GA32052@boost.horde.net> Sender: kvm-owner@vger.kernel.org List-ID: * 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? > 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. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx ryanh@us.ibm.com