From: Guido Winkelmann Subject: Virtual disks with SCSI or virtio hang after some time Date: Tue, 1 Jun 2010 17:59:28 +0200 Message-ID: <201006011759.28340.guido-kvml@unknownsite.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from [62.48.69.106] ([62.48.69.106]:58919 "EHLO hartes-hannover.de" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756677Ab0FAQJT (ORCPT ); Tue, 1 Jun 2010 12:09:19 -0400 Received: from pc10.localnet (pc10.asys-h.de [193.98.1.90]) by hartes-hannover.de (Postfix) with ESMTPSA id 064FF10C866 for ; Tue, 1 Jun 2010 17:59:33 +0200 (CEST) Sender: kvm-owner@vger.kernel.org List-ID: Hi, When using KVM machines with virtual disks that are hooked up to the guest via either virtio or SCSI, the virtual disk will often hang completely after a short time of operation. When this happens, the network connectivity of the machine will usually go down, too. (I.e. it stops responding to pings.) When this happens when using SCSI, the following messages will appear in syslog (in the guest): sd 0:0:0:0: [sda] ABORT operation started sd 0:0:0:0: ABORT operation timed out sd 0:0:0:0: [sda] DEVICE RESET operation started When using virtio, no log messages appear at the time the hang occurs, but some time before, these messages appear: JBD: barrier-based sync failed on vda1-8 JBD: barrier-based sync failed on vda3-8 JBD: barrier-based sync failed on vda5-8 The hang seems to happen faster with virtio, usually within one minute after bootup, while with SCSI, it can take a few more minutes In the host, no interesting messages appear in syslog. The host OS is Fedora Core 12, with qemu-kvm 0.11.0, Kernel 2.6.32.11-99.fc12.x86_64 and libvirt 0.8.1. The guest kernel is 2.6.32-gentoo-r7. Other, non-linux, guest operating systems seem to have problems with the virtualised scsi disks, too. (I've tried OpenBSD.) Does anyone have an idea what is happening here and what can be done about it? Regards, Guido -- Too much multitasking isn't good for you.