Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-28 Thread Stefan Hajnoczi
On Mon, Aug 25, 2014 at 01:13:09PM -0500, Andrew Martin wrote: I recently experienced UPS failure on several hosts which caused a hard shutdown. After restarting, 3 of the guests had corruption on their disks and required a fairly long fsck to fix. Afterwards, data that had

Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-27 Thread Andrew Martin
- Original Message - From: Paolo Bonzini pbonz...@redhat.com To: Andrew Martin amar...@xes-inc.com, Stefan Hajnoczi stefa...@gmail.com Cc: qemu-devel qemu-devel@nongnu.org Sent: Tuesday, August 26, 2014 2:03:18 AM Subject: Re: Using cache=writeback safely on qemu 1.4.0 and later

Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-27 Thread Paolo Bonzini
Il 27/08/2014 16:23, Andrew Martin ha scritto: Thanks for the info about this bug - I am using QEMU 1.4.0 (released on 02/15/13) and ef5bc96268 was added on 09/20/13, so the bug had not been fixed in the version of QEMU I am using. I have had trouble reproducing it on-demand - was there

Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-26 Thread Paolo Bonzini
Il 25/08/2014 20:13, Andrew Martin ha scritto: Even if the python daemon or apache2 did not fsync the modified files, isn't there some action that the OS takes periodically to flush dirty pages to disk? This seems to be implied in the SuSE documentation:

Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-25 Thread Andrew Martin
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Andrew Martin amar...@xes-inc.com Cc: qemu-devel qemu-devel@nongnu.org Sent: Thursday, August 21, 2014 7:59:50 AM Subject: Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later When the disk is set

Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-21 Thread Stefan Hajnoczi
=writeback safely on qemu 1.4.0 and later If you strace -f the QEMU process on the host, you will see fdatasync(2) system calls when the guest flushes the disk. You can find the file descriptor number by checking ls -l /proc/$PID_OF_QEMU/fd and looking for the disk image file. When the disk

Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-19 Thread Stefan Hajnoczi
On Fri, Aug 15, 2014 at 03:18:15PM -0500, Andrew Martin wrote: Hello, I am running several qemu-kvm VM servers on Ubuntu 12.04 with qemu-kvm 1.4.0. Most of the guests are also running Ubuntu 12.04. I am using qcow2 disk images with the virtio driver in almost all cases, and am storing the

Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-19 Thread Andrew Martin
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Andrew Martin amar...@xes-inc.com Cc: qemu-devel@nongnu.org Sent: Tuesday, August 19, 2014 9:59:25 AM Subject: Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later If you strace -f the QEMU process

[Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later

2014-08-15 Thread Andrew Martin
Hello, I am running several qemu-kvm VM servers on Ubuntu 12.04 with qemu-kvm 1.4.0. Most of the guests are also running Ubuntu 12.04. I am using qcow2 disk images with the virtio driver in almost all cases, and am storing the disks on two types of storage devices: * a shared NFS server mounted