From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] report read/write errors to IDE guest driver as ECC errors
Date: Mon, 11 Aug 2008 12:05:16 -0500 [thread overview]
Message-ID: <48A0714C.1040801@codemonkey.ws> (raw)
In-Reply-To: <18592.27928.201904.615457@mariner.uk.xensource.com>
Ian Jackson wrote:
> Daniel P. Berrange writes ("Re: [Qemu-devel] [PATCH] report read/write errors to IDE guest driver as ECC errors"):
>
>> Unless someone wants to implement the ENOSPC handling right now, I'd
>> like to see this patch just committed as is, so we at least get
>> incremental benefit over current behaviour, which definitely *does*
>> corrupt guest filesystems by silently pretending the write succeeed.
>>
>
> Absolutely.
>
>
>> Special ENOSPC handling can be added on top.
>> I agree that pausing the guest is probably best option in that scenario,
>>
>
> I disagree. Most reasonable guests will have special handling for
> write failures on their disks. For example, Linux will (in the
> default setup) remount the fs readonly precisely to prevent
> corruption.
>
But corruption isn't the issue. The issue is that you're out of disk
space. If using qcow, an attempt to remount the fs may result in even
more errors if the qcow file has to expand (due to CoW).
Consider the case of guest RAID. Once the ECC errors are detected, the
guest will start trying to rebuild the failed drive and since we're
already out of space, this is going to be catastrophic. This is why
ENOSPC should be handled differently than EIO.
> Pausing the guest denies the guest the ability to take whatever action
> it really wants to.
>
I agree for EIO, but a guest cannot take any actions when ENOSPC occurs
because it has no concept that such a thing can occur.
Regards,
Anthony Liguori
> Ian.
>
>
>
next prev parent reply other threads:[~2008-08-11 17:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 11:55 [Qemu-devel] [PATCH] report read/write errors to IDE guest driver as ECC errors Samuel Thibault
2008-08-06 2:26 ` Anthony Liguori
2008-08-06 9:28 ` Daniel P. Berrange
2008-08-06 12:22 ` Jamie Lokier
2008-08-11 16:47 ` Ian Jackson
2008-08-11 17:01 ` [Qemu-devel] [PATCH] report read/write errors to IDE guest driver as ECC errorsj Samuel Thibault
2008-08-11 17:56 ` Jamie Lokier
2008-08-11 17:05 ` Anthony Liguori [this message]
2008-08-06 16:21 ` [Qemu-devel] Re: [PATCH] report read/write errors to IDE guest driver as ECC errors Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48A0714C.1040801@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).