All of lore.kernel.org
 help / color / mirror / Atom feed
* kvm bug, guest I/O blk device errors when qcow2 backing file is on Btrfs
@ 2015-03-23 20:01 Chris Murphy
  2015-03-23 21:13 ` Chris Mason
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Murphy @ 2015-03-23 20:01 UTC (permalink / raw)
  To: Btrfs BTRFS

I can't tell if this is a kvm virtio blk device regression, with
cache=none and cache=directsync, or if it's a Btrfs regression.

The summary is that on a host using (Fedora) kernel 3.18.9, 3.19.2, or
any 4.0.0 kernel, with qcow2 on Btrfs, and either cache=none or
directsync, the guest Linux OS experiences many I/O blk device errors.

https://bugzilla.redhat.com/show_bug.cgi?id=1204569

If I put the qcow2 on XFS, the problem doesn't happen.

If I keep the qcow2 on Btrfs, and change the cache= to writeback,
writethrough, or unsafe, the problem doesn't happen.

It happens with either qcow2 compat 0.10 or 1.1. Raw files were not
tested. And block devices other than virtio were not tested.

In the guest, all file systems experience this and complain, some more
than others. Btrfs is most tolerant mainly reporting write errors but
completes an OS installation; ext4 complains a lot but also completes
an OS installation; XFS complains and eventually gives up with a
hardware I/O error and the OS installation fails.

I did this test maybe two years ago and this combination was safe at that time.


-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-30 22:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23 20:01 kvm bug, guest I/O blk device errors when qcow2 backing file is on Btrfs Chris Murphy
2015-03-23 21:13 ` Chris Mason
2015-03-24 16:10   ` Chris Murphy
2015-03-26 10:00     ` Paul Jones
2015-03-30 22:47       ` Chris Murphy
2015-03-25  5:25   ` Chris Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.