[pve-devel] [PATCH] migrate : add nocheck for resume

Alexandre DERUMIER aderumier at odiso.com
Wed Oct 14 13:24:45 CEST 2015


Don't help :(

I'll try to launch inotifywatch on /etc/pve  source and target,

and check the date of file move, and maybe if they are other file writes at the same time.




----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "dietmar" <dietmar at proxmox.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mercredi 14 Octobre 2015 12:10:31
Objet: Re: [pve-devel] [PATCH] migrate : add nocheck for resume

>>I would really like to understand what happens. 

Yes, me too ! 

>>I wonder if it may help 
>>if we use 'direct_io' flag for fuse. Would you mind to test? 

Sure, I'll try this afternoon 

----- Mail original ----- 
De: "dietmar" <dietmar at proxmox.com> 
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mercredi 14 Octobre 2015 11:30:35 
Objet: Re: [pve-devel] [PATCH] migrate : add nocheck for resume 

> Users have reported resume bug when HA is used. 
> 
> They seem to have a little race (bench show >0s < 1s) between the vm conf file 
> move on source node and replication to, 
> and resume on target node. 
> 
> I don't known why this is only with HA, maybe this occur will standard 
> migration too. 

I would really like to understand what happens. I wonder if it may help 
if we use 'direct_io' flag for fuse. Would you mind to test? 

diff --git a/data/src/pmxcfs.c b/data/src/pmxcfs.c 
index 26cbc30..2c34df2 100644 
--- a/data/src/pmxcfs.c 
+++ b/data/src/pmxcfs.c 
@@ -897,7 +897,7 @@ int main(int argc, char *argv[]) 

mkdir(CFSDIR, 0755); 

- char *fa[] = { "-f", "-odefault_permissions", "-oallow_other", NULL}; 
+ char *fa[] = { "-f", "-odirect_io", "-odefault_permissions", 
"-oallow_other", NULL}; 

struct fuse_args fuse_args = FUSE_ARGS_INIT(sizeof (fa)/sizeof(gpointer) 
- 1, fa); 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 




More information about the pve-devel mailing list