From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I91RH-0004Dj-HY for qemu-devel@nongnu.org; Thu, 12 Jul 2007 12:22:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I91RF-0004CG-W0 for qemu-devel@nongnu.org; Thu, 12 Jul 2007 12:22:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I91RF-0004CD-Ti for qemu-devel@nongnu.org; Thu, 12 Jul 2007 12:22:45 -0400 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I91RE-0002nc-NN for qemu-devel@nongnu.org; Thu, 12 Jul 2007 12:22:45 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l6CGMbps010936 for ; Thu, 12 Jul 2007 12:22:37 -0400 Received: from file.surrey.redhat.com (file.fab.redhat.com [10.33.63.6]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l6CGMapc032430 for ; Thu, 12 Jul 2007 12:22:36 -0400 Received: (from berrange@localhost) by file.surrey.redhat.com (8.13.1/8.13.1/Submit) id l6CGMamN011496 for qemu-devel@nongnu.org; Thu, 12 Jul 2007 17:22:36 +0100 Date: Thu, 12 Jul 2007 17:22:36 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] Crash: When Host HDD is full Message-ID: <20070712162236.GE20008@redhat.com> References: <7fac565a0707110819k635d398fl273d8d5a0afd2d3f@mail.gmail.com> <200707120807.41162.mikeonthecomputer@gmail.com> <4696530A.2010000@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4696530A.2010000@qumranet.com> Reply-To: "Daniel P. Berrange" , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, Jul 12, 2007 at 07:12:58PM +0300, Avi Kivity wrote: > Mike Swanson wrote: > >On Wednesday 11 July 2007 08:19:48 Alexey Eremenko wrote: > > > >>Problem 1: > >>When Host HDD is full, all guests simply crash. Tried with dynamically > >>growing .VMDK hard disk. > >> > >>It shouldn't happen. For example, both VirtualPC and VirtualBox pause > >>all VMs, and gray their displays when something like that happens. > >> > > > >IMO, it's a non-issue; you probably shouldn't be letting your filesystems > >to become full in the first place, much less running VMs on it. > > Well, he shouldn't, but neither should qemu crash or corrupt data. It should be propagating any IO errors in the host back up to the guest OS as IDE errors. The guest OS will see these and (in the case of Linux) take the filesystem offline. There should be no crash or data corruption. While any outstanding writes will not have been flushed with any reasonable filesystem it will recover upon reboot, either by fsck, or trivially recovering the journal & maintaining filesystem integrity. Potentially ENOSPC could be handled as a special case by pausing the guest, but in general I/O errors can be propagated back to guest for handling (even if the guest merely takes things ofline). Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|