Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-08 Thread Kevin Wolf
Am 07.02.2014 um 13:47 hat Orit Wasserman geschrieben: > On 02/07/2014 02:10 PM, Alexey Kardashevskiy wrote: > >On 07.02.2014 18:46, Orit Wasserman wrote: > >>On 02/07/2014 06:35 AM, Alexey Kardashevskiy wrote: > >>>Hi! > >>> > >>>I have yet another problem with migration. Or NFS. > >>> > >>>There

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Orit Wasserman
On 02/07/2014 03:44 PM, Marcin Gibuła wrote: On 07.02.2014 14:36, Orit Wasserman wrote: Do you know if is applies to linux O_DIRECT writes as well? From the man of open: The behaviour of O_DIRECT with NFS will differ from local filesystems. Older kernels, or kernels configu

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Marcin Gibuła
On 07.02.2014 14:36, Orit Wasserman wrote: Do you know if is applies to linux O_DIRECT writes as well? From the man of open: The behaviour of O_DIRECT with NFS will differ from local filesystems. Older kernels, or kernels configured in certain ways, may not support t

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Orit Wasserman
On 02/07/2014 02:54 PM, Marcin Gibuła wrote: It is more a NFS issue, if you have a file in NFS that two users in two different host are accessing (one at least write to it) you will need to enforce the "sync" option. Even if you flush all the data and close the file the NFS client can still have

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Marcin Gibuła
It is more a NFS issue, if you have a file in NFS that two users in two different host are accessing (one at least write to it) you will need to enforce the "sync" option. Even if you flush all the data and close the file the NFS client can still have cached data that it didn't sync to the server.

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Orit Wasserman
On 02/07/2014 02:10 PM, Alexey Kardashevskiy wrote: On 07.02.2014 18:46, Orit Wasserman wrote: On 02/07/2014 06:35 AM, Alexey Kardashevskiy wrote: Hi! I have yet another problem with migration. Or NFS. There is one NFS server and 2 test POWER8 machines. There is a shared NFS folder on the ser

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Paolo Bonzini
Il 07/02/2014 10:41, Marcin Gibuła ha scritto: >> For NFS you need to use the sync mount option to force the NFS client to >> sync to >> server on writes. > > Isn't opening with O_DIRECT enough? (for linux nfs client at least) Yeah, the man page says: If neither sync nor async is specifie

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Alexey Kardashevskiy
On 07.02.2014 18:46, Orit Wasserman wrote: > On 02/07/2014 06:35 AM, Alexey Kardashevskiy wrote: >> Hi! >> >> I have yet another problem with migration. Or NFS. >> >> There is one NFS server and 2 test POWER8 machines. There is a shared NFS >> folder on the server, mounted to both test hosts. There

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-07 Thread Marcin Gibuła
For NFS you need to use the sync mount option to force the NFS client to sync to server on writes. Isn't opening with O_DIRECT enough? (for linux nfs client at least) -- mg

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-06 Thread Orit Wasserman
On 02/07/2014 06:35 AM, Alexey Kardashevskiy wrote: Hi! I have yet another problem with migration. Or NFS. There is one NFS server and 2 test POWER8 machines. There is a shared NFS folder on the server, mounted to both test hosts. There is an qcow2 image (abc.qcow2) in that shared folder. We s

[Qemu-devel] migration question: disk images on nfs server

2014-02-06 Thread Alexey Kardashevskiy
Hi! I have yet another problem with migration. Or NFS. There is one NFS server and 2 test POWER8 machines. There is a shared NFS folder on the server, mounted to both test hosts. There is an qcow2 image (abc.qcow2) in that shared folder. We start a guest with this abc.qcow2 on the test machine #