From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Morrissey Subject: Re: qcow2 corruption? Date: Thu, 8 Jan 2009 22:42:18 -0500 Message-ID: <20090109034218.GA5921@boost.horde.net> References: <20081226210028.GA25127@boost.horde.net> <20090108192422.GA32052@boost.horde.net> <49666318.3050706@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from boost.horde.net ([69.55.65.181]:44576 "EHLO boost.horde.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751916AbZAIDmT (ORCPT ); Thu, 8 Jan 2009 22:42:19 -0500 Content-Disposition: inline In-Reply-To: <49666318.3050706@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jan 08, 2009 at 02:33:28PM -0600, Anthony Liguori wrote: > John Morrissey wrote: > >I'm encountering what seems like disk corruption when using qcow2 images, > >created with 'kvm-img create -f qcow2 image.qcow2 15G'. > > > >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. > > There are patches that touch the block layer. Please try to reproduce > on vanilla kvm. I don't trust the debian patches. Couldn't reproduce this with Debian packaging minus its patch for CVE-2008-0928 (taken from Fedora FWIW), which is the only one touching the block layer. Upon further scrutiny, I realized I pooched updating the patch for KVM 82. The value for the BDRV_O_AUTOGROW constant introduced in that patch collides with a new BDRV_ constant introduced between KVM 79 and 82. Changing the constant's value (Fedora project has an updated patch, too) fixes this. Ryan, this seems to fix the SCSI BUGging, too. I figure you won't want to pursue that further? Sorry for the bother, guys. john -- John Morrissey _o /\ ---- __o jwm@horde.net _-< \_ / \ ---- < \, www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__