linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: VMs are pausing with ENOSPC
       [not found] <1383912032.27016.4.camel@pc.interlinx.bc.ca>
@ 2013-11-11  9:43 ` Stefan Hajnoczi
  2013-11-11 12:17   ` Lukáš Czerner
  2013-11-11 12:22   ` Jan Kara
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2013-11-11  9:43 UTC (permalink / raw)
  To: linux-ext4; +Cc: kvm, Brian J. Murrell

On Fri, Nov 08, 2013 at 07:00:32AM -0500, Brian J. Murrell wrote:
> On RHEL 6.4 I have a number of kvms using qemu raw disks.  They are all
> on a filesystem which has reached 500G (of 1TB) of usage.  None of the
> qemu images are full as reported by qemu-img info.  Yet my VMs are all
> pausing with:
> 
> block I/O error in device 'drive-virtio-disk0': No space left on device (28)
> 
> in their logs
> i.e.: # qemu-img info /var/lib/libvirt/images/mgmt1-disk0 
> image: /var/lib/libvirt/images/mgmt1-disk0
> file format: raw
> virtual size: 120G (128849018880 bytes)
> disk size: 52G
> 
> and:
> 
> # df -h /var/lib/libvirt/images/
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/vg_00-virt--images 1.0T 500G 473G 52% /var/lib/libvirt/images

Added linux-ext4 mailing list and more info from an IRC debugging
session with Brian:

The image file is on an ext4 file system.  The QEMU userspace process is
performing a pwritev() system call that fails with ENOSPC.

The particular pwritev() that failed had ~600 iovecs covering about 2.4
MB of data.  The file is opened O_DIRECT.

The VMs are all hitting ENOSPC when they write to the file system but
df(1) shows there should still be 48% (~473 GB) available.

Any ideas why writes produce ENOSPC on an ext4 file system with
sufficient space free?

Stefan

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

* Re: VMs are pausing with ENOSPC
  2013-11-11  9:43 ` VMs are pausing with ENOSPC Stefan Hajnoczi
@ 2013-11-11 12:17   ` Lukáš Czerner
  2013-11-11 12:22   ` Jan Kara
  1 sibling, 0 replies; 3+ messages in thread
From: Lukáš Czerner @ 2013-11-11 12:17 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: linux-ext4, kvm, Brian J. Murrell

Hi,

I think that you should consider filing a ticket with your Red Hat
support for this issue to make sure it gets fixed quickly.

Thanks!
-Lukas

On Mon, 11 Nov 2013, Stefan Hajnoczi wrote:

> Date: Mon, 11 Nov 2013 10:43:29 +0100
> From: Stefan Hajnoczi <stefanha@gmail.com>
> To: linux-ext4@vger.kernel.org
> Cc: kvm@vger.kernel.org, Brian J. Murrell <brian@interlinx.bc.ca>
> Subject: Re: VMs are pausing with ENOSPC
> 
> On Fri, Nov 08, 2013 at 07:00:32AM -0500, Brian J. Murrell wrote:
> > On RHEL 6.4 I have a number of kvms using qemu raw disks.  They are all
> > on a filesystem which has reached 500G (of 1TB) of usage.  None of the
> > qemu images are full as reported by qemu-img info.  Yet my VMs are all
> > pausing with:
> > 
> > block I/O error in device 'drive-virtio-disk0': No space left on device (28)
> > 
> > in their logs
> > i.e.: # qemu-img info /var/lib/libvirt/images/mgmt1-disk0 
> > image: /var/lib/libvirt/images/mgmt1-disk0
> > file format: raw
> > virtual size: 120G (128849018880 bytes)
> > disk size: 52G
> > 
> > and:
> > 
> > # df -h /var/lib/libvirt/images/
> > Filesystem Size Used Avail Use% Mounted on
> > /dev/mapper/vg_00-virt--images 1.0T 500G 473G 52% /var/lib/libvirt/images
> 
> Added linux-ext4 mailing list and more info from an IRC debugging
> session with Brian:
> 
> The image file is on an ext4 file system.  The QEMU userspace process is
> performing a pwritev() system call that fails with ENOSPC.
> 
> The particular pwritev() that failed had ~600 iovecs covering about 2.4
> MB of data.  The file is opened O_DIRECT.
> 
> The VMs are all hitting ENOSPC when they write to the file system but
> df(1) shows there should still be 48% (~473 GB) available.
> 
> Any ideas why writes produce ENOSPC on an ext4 file system with
> sufficient space free?
> 
> Stefan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: VMs are pausing with ENOSPC
  2013-11-11  9:43 ` VMs are pausing with ENOSPC Stefan Hajnoczi
  2013-11-11 12:17   ` Lukáš Czerner
@ 2013-11-11 12:22   ` Jan Kara
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Kara @ 2013-11-11 12:22 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: linux-ext4, kvm, Brian J. Murrell

On Mon 11-11-13 10:43:29, Stefan Hajnoczi wrote:
> On Fri, Nov 08, 2013 at 07:00:32AM -0500, Brian J. Murrell wrote:
> > On RHEL 6.4 I have a number of kvms using qemu raw disks.  They are all
> > on a filesystem which has reached 500G (of 1TB) of usage.  None of the
> > qemu images are full as reported by qemu-img info.  Yet my VMs are all
> > pausing with:
> > 
> > block I/O error in device 'drive-virtio-disk0': No space left on device (28)
> > 
> > in their logs
> > i.e.: # qemu-img info /var/lib/libvirt/images/mgmt1-disk0 
> > image: /var/lib/libvirt/images/mgmt1-disk0
> > file format: raw
> > virtual size: 120G (128849018880 bytes)
> > disk size: 52G
> > 
> > and:
> > 
> > # df -h /var/lib/libvirt/images/
> > Filesystem Size Used Avail Use% Mounted on
> > /dev/mapper/vg_00-virt--images 1.0T 500G 473G 52% /var/lib/libvirt/images
> 
> Added linux-ext4 mailing list and more info from an IRC debugging
> session with Brian:
> 
> The image file is on an ext4 file system.  The QEMU userspace process is
> performing a pwritev() system call that fails with ENOSPC.
> 
> The particular pwritev() that failed had ~600 iovecs covering about 2.4
> MB of data.  The file is opened O_DIRECT.
> 
> The VMs are all hitting ENOSPC when they write to the file system but
> df(1) shows there should still be 48% (~473 GB) available.
> 
> Any ideas why writes produce ENOSPC on an ext4 file system with
> sufficient space free?
  OK, likely a bug in RHEL 6.4 kernel. But since that is 2.6.32 with lots
of patches, I suggest you contact RHEL support to debug that further.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

end of thread, other threads:[~2013-11-11 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1383912032.27016.4.camel@pc.interlinx.bc.ca>
2013-11-11  9:43 ` VMs are pausing with ENOSPC Stefan Hajnoczi
2013-11-11 12:17   ` Lukáš Czerner
2013-11-11 12:22   ` Jan Kara

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).