From: Lutz Vieweg <lvml@5t9.de>
To: qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org
Subject: Re: [Qemu-devel] I/O errors reported to guest for raw-image-file backed /dev/vda - but host sees no I/O errors
Date: Thu, 21 Apr 2016 17:54:48 +0200 [thread overview]
Message-ID: <nfat48$9u1$1@ger.gmane.org> (raw)
In-Reply-To: <nf848r$jfe$1@ger.gmane.org>
On 04/20/2016 04:38 PM, Lutz Vieweg wrote:
> I've now a
>> strace -f -p 10727 -e trace=pwrite,pwritev,fdatasync,file -t 2>&1 | gzip -1 -c >trace.gz
> attached to the qemu-process.
>
> If the incident rate stays the same, by tomorrow I should be able
> to correlate newly emitted I/O-errors in the guest with that log.
Ok, mystery solved:
> [pid 18241] 00:17:15 pwritev(16, [{..., 4096}, {..., 4096}], 2, 6585417728) = -1 ENOSPC (No space left on device)
> [pid 18241] 00:17:15 pwrite(16, ..., 4096, 6581915648) = -1 ENOSPC (No space left on device)
> [pid 18241] 00:17:15 pwrite(16, ..., 4096, 1048576) = -1 ENOSPC (No space left on device)
> [pid 18241] 00:17:15 pwrite(16, ..., 4096, 1048576) = -1 ENOSPC (No space left on device)
File descriptor fd=16 was associated with a raw image file that actually
resides on a btrfs filesystem, a constant-sized 16GB file with attributes
set to not use CopyOnWrite semantics.
Nevertheless, writes to such files can still yield ENOSPC due to a bug in btrfs:
> http://www.spinics.net/lists/linux-btrfs/msg52691.html
And indeed, the errors occured exactly at the time a backup procedure
was preparing a read-only snapshot with "btrfs subvolume snapshot -r" -
so until I can upgrade to a mainline kernel including the fix, I'll
pause the qemu process while the "btrfs subvolume snapshot -r" runs.
Thanks for the hints.
Sorry this turned out to be a btrfs rather than a qemu bug - I was
first misled to believe the image was on XFS.
Nevertheless, I think qemu could be somewhat more verbose, reporting
when and why it stops emulation. Something like a message to the monitor
or to standard out would be helpful to start with...
Regards,
Lutz Vieweg
next prev parent reply other threads:[~2016-04-21 15:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-19 17:47 [Qemu-devel] I/O errors reported to guest for raw-image-file backed /dev/vda - but host sees no I/O errors Lutz Vieweg
2016-04-20 2:11 ` Fam Zheng
2016-04-20 11:50 ` Kevin Wolf
2016-04-20 14:38 ` Lutz Vieweg
2016-04-21 15:54 ` Lutz Vieweg [this message]
2016-04-22 1:16 ` Fam Zheng
2016-04-22 10:47 ` Lutz Vieweg
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='nfat48$9u1$1@ger.gmane.org' \
--to=lvml@5t9.de \
--cc=qemu-block@nongnu.org \
--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).