Kernel 4.4.0 KVM guest on Btrfs locks up on snapshotting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm facing a strange issue:

Starting with the kernel 4.4.0, a KVM guest stored on a Btrfs filesystem,
if it's using the "virtio-scsi" disk backend, will hard lock-up instantly,
as soon as the Btrfs subvolume which contains its backing file is snapshotted.

There's nothing in dmesg neither on the guest, nor on the host;
the KVM process can be killed from the host just fine and then restarted,
so it doesn't seem to be a kernel-side deadlock of any sort.

KVM disk controller which exhibits the problem:

 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd \

The alternative which works fine:

 -device ide-hd,drive=hd,bus=ide.0 \

The disk device line is common to both cases:

 -drive if=none,id=hd,cache=writeback,aio=threads,format=raw,file=$NAME.img,discard=unmap,detect-zeroes=unmap \

Also tried aio=native with the problematic variant, no change.

Both variants work fine and unaffected by snapshotting on kernel 3.18.25.

Any ideas?

-- 
With respect,
Roman

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux