Continuous Replication fails with VDI_IO_ERROR(Device I/O errors) on fresh XOA install after XenServer 7.2 -> XCP-ng 8.0 upgrade
-
Hi,
I had noticed a similar problem. I have upgraded from XCP-NG 7.4 to 8.0 via the ISO. Upgrade was painless. Only issue was with a single VM not starting that was resolved with "xe vm-cd-eject --multiple".
I have also upgraded to the latest Xen Orchestra from sources:
:xo-server 5.46.0
:xo-web 5.46.0I have 2 xenservers with local storage defined like this:
https://i.imgur.com/XCCyzS2.pngI have defined a simple Continous Replication task like this to backup a very small VM from xenserver1 to xenserver2:
https://i.imgur.com/d8nuDAN.pngAnd started the task manually, however it eventually fails like this:
https://i.imgur.com/B5IS5lB.pngAttached log:
https://pastebin.com/raw/gS9SYXggChanging the setting in config.toml of xo-server to: 'guessVhdSizeOnImport: true' seems to have fixed the problem (the backup task completes succesfully).
Thanks.
-
Same problem here after upgrade xcp-ng 7.6 to 8.0
-
And same solution worked?
-
@olivierlambert I've just tried and yes, 'guessVhdSizeOnImport: true' solved the problem.
-
Okay I'm pinging @julien-f so we can include this as default (because it seems to not break for older XS)
-
We run this config now for a week and didn't have any problems. So it looks good from our site.
-
same problem, same solution. works fine
-
'guessVhdSizeOnImport: true' looks like solved the problem 9 day ago. But I'm getting same error sometimes and randomly since that day.
Daily CR job have 31 VMs. Some day successful 31/31. But some days one or two VM replication fail with tis message: VDI_IO_ERROR(Device I/O errors).
I think my problem still related with this topic. -
@rizaemet-0
Ever since I have changed to guessVhdSizeOnImport: true I have not had any problems. However I only backup 5 VMs which is not much.In the past I noticed that if I didn't change the default "Concurrency" setting to 1 in the Backup NGs advanced settings (I assume that it tries to parallelize backups by default) then my tasks would fail randomly once in a while with VDI_IO_ERROR(Device I/O errors). I figured that perhaps my servers are not fast enough; they have about 40MB/s write speed to the disks only. Setting to 1 solved it, but I can imagine this may not be desirable if there is lots of VMs to backup since it would slow down the process considerably.
-
@olivierlambert Yep, I think it's safe enough to turn on by default in the next release
-
Great, so let's do that!
-
@olivierlambert said in Continuous Replication fails with VDI_IO_ERROR(Device I/O errors) on fresh XOA install after XenServer 7.2 -> XCP-ng 8.0 upgrade:
Xen Orchestra configuration
should I add "guessVhdSizeOnImport: true" to /opt/xen-orchestra/packages/xo-server/config.toml
-
To your config file, yes. Where this config file is depends on where do you installed Xen Orchestra (I suppose from the sources, so I can't guess where do you installed, could be anyware )
edit: I think it's fixed now and integrated by default in the config
-
@olivierlambert said in Continuous Replication fails with VDI_IO_ERROR(Device I/O errors) on fresh XOA install after XenServer 7.2 -> XCP-ng 8.0 upgrade:
To your config file, yes. Where this config file is depends on where do you installed Xen Orchestra (I suppose from the sources, so I can't guess where do you installed, could be anyware )
edit: I think it's fixed now and integrated by default in the config
Great, this fix already is in the new version.
I was having this problem (Error: VDI_IO_ERROR(Device I/O errors)) and was not be able to do CR of my VMs but now CR works.
Thank youPS: BTW that was my config file