<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup]]></title><description><![CDATA[<p dir="auto">Hi good day.<br />
I have an installation of XCP-ng 8.1, xo-server 5.57.3 and xo-web 5.57.1</p>
<p dir="auto">When I want to make delta backups of VMs of more than 500GB it gives me the following error:</p>
<p dir="auto">VDI_IO_ERROR (Device I / O errors)</p>
<p dir="auto">Look for the solution on the internet without success.</p>
<p dir="auto">I ran several tests and found that I had the Timeout = 1 option set to advanced options.</p>
<p dir="auto">This caused the backup to be canceled in one hour. But the information in the backup status was as follows:</p>
<pre><code> transfer
 Start: May 3, 2020, 4:15:46 PM
 End: May 3, 2020, 5:15:11 PM
 Duration: an hour
 Error: VDI_IO_ERROR (Device I / O errors)
</code></pre>
<p dir="auto">The error makes no mention of timeout cancellation. What disorients the search for the problem.</p>
<p dir="auto">The solution, put extend the value in timeout or set it to zero and the backup worked correctly.</p>
<p dir="auto">(Sorry for the translation, it is done with google translation) <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2bdbead4301" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/topic/2991/vdi_io_error-device-i-o-errors-when-you-run-scheduled-backup</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 20:05:12 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/2991.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 May 2020 12:27:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Wed, 05 Jul 2023 15:06:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rauly94" aria-label="Profile: rauly94">@<bdi>rauly94</bdi></a>  Hello everyone.<br />
Anyone can help me on this issue. Now it started happening on 2 vm's instead of 1 vm. It is happening on the backup replication.</p>
<p dir="auto">Error: VDI_IO_ERROR(Device I/O errors)This is a XenServer/XCP-ng error<br />
Start: Jul 5, 2023, 09:03:18 AM<br />
End: Jul 5, 2023, 09:44:46 AM<br />
Duration: 41 minutes<br />
Error: VDI_IO_ERROR(Device I/O errors)This is a XenServer/XCP-ng error</p>
<p dir="auto">Start: Jul 5, 2023, 09:03:09 AM<br />
End: Jul 5, 2023, 09:45:12 AM<br />
Duration: 42 minutes<br />
Error: VDI_IO_ERROR(Device I/O errors)This is a XenServer/XCP-ng error<br />
Type: delta</p>
]]></description><link>https://xcp-ng.org/forum/post/63780</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/63780</guid><dc:creator><![CDATA[rauly94]]></dc:creator><pubDate>Wed, 05 Jul 2023 15:06:11 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Wed, 22 Mar 2023 20:24:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rauly94" aria-label="Profile: rauly94">@<bdi>rauly94</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a></p>
]]></description><link>https://xcp-ng.org/forum/post/60184</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/60184</guid><dc:creator><![CDATA[rauly94]]></dc:creator><pubDate>Wed, 22 Mar 2023 20:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Wed, 22 Mar 2023 19:25:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> said in <a href="/forum/post/60172">VDI_IO_ERROR(Device I/O errors) when you run scheduled backup</a>:</p>
<blockquote>
<p dir="auto">dmesg</p>
</blockquote>
<p dir="auto"><img src="/forum/assets/uploads/files/1679513075680-44519eed-ccdd-4d79-91f1-deea1c1d5013-image.png" alt="44519eed-ccdd-4d79-91f1-deea1c1d5013-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">that's what i got. I'm I doing it correctly.</p>
<p dir="auto">The issue is happening on 1 VM. i tried doing a copy of the same vm and same error. just FYI</p>
]]></description><link>https://xcp-ng.org/forum/post/60183</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/60183</guid><dc:creator><![CDATA[rauly94]]></dc:creator><pubDate>Wed, 22 Mar 2023 19:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Wed, 22 Mar 2023 17:40:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rauly94" aria-label="Profile: rauly94">@<bdi>rauly94</bdi></a> Hi !</p>
<p dir="auto">You can type "dmesg" directly in your host.<br />
You can check your disk's health with the command "smartctl", directly on the host too</p>
]]></description><link>https://xcp-ng.org/forum/post/60181</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/60181</guid><dc:creator><![CDATA[AtaxyaNetwork]]></dc:creator><pubDate>Wed, 22 Mar 2023 17:40:49 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Wed, 22 Mar 2023 14:51:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> sorry to ask, but where should I do this at?</p>
]]></description><link>https://xcp-ng.org/forum/post/60179</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/60179</guid><dc:creator><![CDATA[rauly94]]></dc:creator><pubDate>Wed, 22 Mar 2023 14:51:32 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Wed, 22 Mar 2023 13:20:14 GMT]]></title><description><![CDATA[<p dir="auto">Device I/O error isn't a good sign. Check <code>dmesg</code> and the disk health.</p>
]]></description><link>https://xcp-ng.org/forum/post/60172</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/60172</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 22 Mar 2023 13:20:14 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Wed, 22 Mar 2023 13:07:02 GMT]]></title><description><![CDATA[<p dir="auto">Good Morning guys,</p>
<p dir="auto">it looks like I'm having the same issue on a host that I'm doing replications. On the normal Delta Backups I'm not getting this error. But I'm getting it on the schedule Replication for only 1 of the vm's. Here is what comes on the log for that VM.</p>
<pre><code>"id": "1679486747187",
              "message": "transfer",
              "start": 1679486747187,
              "status": "failure",
              "end": 1679487904889,
              "result": {
                "code": "VDI_IO_ERROR",
                "params": [
                  "Device I/O errors"
                ],
                "url": "https://192.168.2.11/import_raw_vdi/?format=vhd&amp;vdi=OpaqueRef%3Aa5f60c35-64c2-497e-ae15-77aa63d14274&amp;session_id=OpaqueRef%3A1593dbd0-4347-4dee-ad02-58ed84f6dbf6&amp;task_id=OpaqueRef%3Aced050e9-1f49-4bbe-8b74-ef787d536d62",
                "task": {
                  "uuid": "a7e3ba73-9d02-c211-48be-6a246828211c",
                  "name_label": "[XO] Importing content into VDI HEALmycroft 0",
                  "name_description": "",
                  "allowed_operations": [],
                  "current_operations": {},
                  "created": "20230322T12:05:52Z",
                  "finished": "20230322T12:25:03Z",
                  "status": "failure",
                  "resident_on": "OpaqueRef:259273e3-6fe1-4f9a-b688-ab0847cb81f8",
                  "progress": 1,
                  "type": "&lt;none/&gt;",
                  "result": "",
                  "error_info": [
                    "VDI_IO_ERROR",
                    "Device I/O errors"
                  ],
                  "other_config": {},
                  "subtask_of": "OpaqueRef:NULL",
                  "subtasks": [],
                  "backtrace": "(((process xapi)(filename ocaml/xapi/vhd_tool_wrapper.ml)(line 77))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/import_raw_vdi.ml)(line 170)))"
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/60168</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/60168</guid><dc:creator><![CDATA[rauly94]]></dc:creator><pubDate>Wed, 22 Mar 2023 13:07:02 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sun, 18 Dec 2022 01:39:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> Thanks Corrected. I'm so happy for XCP-NG. I'm one of the early backers in Kickstarter. Hang the shirt up in our office.</p>
]]></description><link>https://xcp-ng.org/forum/post/56291</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56291</guid><dc:creator><![CDATA[EddieCh08666741]]></dc:creator><pubDate>Sun, 18 Dec 2022 01:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sat, 17 Dec 2022 20:06:48 GMT]]></title><description><![CDATA[<p dir="auto">Note: XOA is only the version distributed by Vates. Everything else is "Xen Orchestra from the sources" <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=2bdbead4301" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://xcp-ng.org/forum/post/56289</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56289</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sat, 17 Dec 2022 20:06:48 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sun, 18 Dec 2022 01:37:36 GMT]]></title><description><![CDATA[<p dir="auto">I just tried installing Xen Orchestra from the sources on Debian 11. The same CR works well.</p>
<p dir="auto">My previous Xen Orchestra from the sources ubuntu 18 having issue with VDI ERROR. Will do more testing.</p>
]]></description><link>https://xcp-ng.org/forum/post/56285</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56285</guid><dc:creator><![CDATA[EddieCh08666741]]></dc:creator><pubDate>Sun, 18 Dec 2022 01:37:36 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sat, 17 Dec 2022 01:45:37 GMT]]></title><description><![CDATA[<p dir="auto">i have similar issue like this too. I'm using ext4 and it was perfectly fine when i'm using 7.6. After upgrading to ext4 and 8.2 fresh install. The CR dont work anymore.</p>
]]></description><link>https://xcp-ng.org/forum/post/56280</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56280</guid><dc:creator><![CDATA[EddieCh08666741]]></dc:creator><pubDate>Sat, 17 Dec 2022 01:45:37 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Tue, 16 Feb 2021 08:17:46 GMT]]></title><description><![CDATA[<p dir="auto">Interesting. It's like the data stream is interrupted somehow for a bit and that's enough to trigger the issue.</p>
]]></description><link>https://xcp-ng.org/forum/post/36624</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36624</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 16 Feb 2021 08:17:46 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Tue, 16 Feb 2021 05:07:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tuxen" aria-label="Profile: tuxen">@<bdi>tuxen</bdi></a> Target has plenty of space, over 5Tb free or about 20x the cumulative VM sizes. No NFS involved, it’s a locally mounted ext4 raid 1 array on the target box.</p>
<p dir="auto">If same backup takes place behind the firewall it runs successfully 95% of the time, across the WAN it fails 95% of the time. Both over a 1gbps link.</p>
<p dir="auto">Sometimes the failures clean themselves up, sometimes end up with a VM/disk marked [importing.....&lt;backup name&gt;&lt;VM name&gt;] that need to be manually removed.</p>
<p dir="auto">Any help hugely appreciated.</p>
]]></description><link>https://xcp-ng.org/forum/post/36620</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36620</guid><dc:creator><![CDATA[shorian]]></dc:creator><pubDate>Tue, 16 Feb 2021 05:07:36 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Mon, 15 Feb 2021 22:40:26 GMT]]></title><description><![CDATA[<p dir="auto">This got my attention:</p>
<pre><code>Jan 15 19:17:40 xcp-ng-xen12-lon2 xapi: [error||623653 INET :::80||import] Caught exception in import handler: VDI_IO_ERROR: [ Device I/O errors ]
Jan 15 19:17:40 xcp-ng-xen12-lon2 xapi: [error||623653 INET :::80||backtrace] VDI.import D:378e6880299b failed with exception Unix.Unix_error(Unix.EPIPE, "single_write", "")
Jan 15 19:17:40 xcp-ng-xen12-lon2 xapi: [error||623653 INET :::80||backtrace] Raised Unix.Unix_error(Unix.EPIPE, "single_write", "")
</code></pre>
<p dir="auto">This <strong>Unix.EPIPE</strong> error on the remote target means that the pipe stream is being closed before <em>VDI.Import</em> receives all the data. The outcome is a VDI I/O error due to a broken, partial sent/received VDI.</p>
<p dir="auto">Since a remote-over-the-internet link can be more prone to latency/intermittency issues, it might be needed to adjust the remote NFS soft timeout/retries or mounting the target with hard option.</p>
<p dir="auto">I would also check if the remote target is running out-of-space during the backup process.</p>
]]></description><link>https://xcp-ng.org/forum/post/36615</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36615</guid><dc:creator><![CDATA[tuxen]]></dc:creator><pubDate>Mon, 15 Feb 2021 22:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Mon, 15 Feb 2021 10:55:49 GMT]]></title><description><![CDATA[<p dir="auto">Hmm nothing obvious here…</p>
]]></description><link>https://xcp-ng.org/forum/post/36583</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36583</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 15 Feb 2021 10:55:49 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sun, 14 Feb 2021 23:49:04 GMT]]></title><description><![CDATA[<p dir="auto">Source:</p>
<pre><code># dmesg | grep -i cut -C10
[    0.000000] Xen: [mem 0x0000000079a66000-0x0000000079f6efff] ACPI NVS
[    0.000000] Xen: [mem 0x0000000079f6f000-0x000000008fffffff] reserved
[    0.000000] Xen: [mem 0x00000000c7ffc000-0x00000000c7ffcfff] reserved
[    0.000000] Xen: [mem 0x00000000fbffc000-0x00000000fbffcfff] reserved
[    0.000000] Xen: [mem 0x00000000fec00000-0x00000000fec01fff] reserved
[    0.000000] Xen: [mem 0x00000000fec40000-0x00000000fec40fff] reserved
[    0.000000] Xen: [mem 0x00000000fed1c000-0x00000000fed44fff] reserved
[    0.000000] Xen: [mem 0x00000000fee00000-0x00000000feefffff] reserved
[    0.000000] Xen: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[    0.000000] Xen: [mem 0x0000000100000000-0x0000000270f0efff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 3.0 present.
[    0.000000] DMI: Supermicro X10DRi/X10DRi, BIOS 2.1 09/13/2016
[    0.000000] Hypervisor detected: Xen PV
[    0.047663] tsc: Fast TSC calibration using PIT
[    0.047664] tsc: Detected 2399.968 MHz processor
[    0.047665] tsc: Detected 2400.010 MHz TSC
[    0.049570] e820: update [mem 0x00000000-0x00000fff] usable ==&gt; reserved
[    0.049572] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.049578] last_pfn = 0x270f0f max_arch_pfn = 0x400000000
[    0.049579] Disabled
</code></pre>
<p dir="auto">Target:</p>
<pre><code>dmesg | grep -i cut -C10
[    0.000000] Xen: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
[    0.000000] Xen: [mem 0x00000000fec18000-0x00000000fec18fff] reserved
[    0.000000] Xen: [mem 0x00000000fec20000-0x00000000fec20fff] reserved
[    0.000000] Xen: [mem 0x00000000fec28000-0x00000000fec28fff] reserved
[    0.000000] Xen: [mem 0x00000000fec30000-0x00000000fec30fff] reserved
[    0.000000] Xen: [mem 0x00000000fec38000-0x00000000fec38fff] reserved
[    0.000000] Xen: [mem 0x00000000fed20000-0x00000000fed44fff] reserved
[    0.000000] Xen: [mem 0x00000000fee00000-0x00000000feefffff] reserved
[    0.000000] Xen: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[    0.000000] Xen: [mem 0x0000000100000000-0x00000004a52a5fff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] efi: EFI v2.50 by American Megatrends
[    0.000000] efi:  SMBIOS=0x6f0bc000  SMBIOS 3.0=0x6f0bb000  ACPI 2.0=0x6ca22000  ACPI=0x6ca22000  ESRT=0x64ba8f18
[    0.000000] SMBIOS 3.1.1 present.
[    0.000000] DMI: Supermicro SYS-6029P-TR/X11DPi-N, BIOS 2.0b 02/28/2018
[    0.000000] Hypervisor detected: Xen PV
[    0.000480] tsc: Detected 2200.030 MHz processor
[    0.002610] e820: update [mem 0x00000000-0x00000fff] usable ==&gt; reserved
[    0.002613] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.002624] last_pfn = 0x4a52a6 max_arch_pfn = 0x400000000
[    0.002625] Disabled
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/36579</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36579</guid><dc:creator><![CDATA[shorian]]></dc:creator><pubDate>Sun, 14 Feb 2021 23:49:04 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sun, 14 Feb 2021 21:29:12 GMT]]></title><description><![CDATA[<p dir="auto">Try both.</p>
]]></description><link>https://xcp-ng.org/forum/post/36578</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36578</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sun, 14 Feb 2021 21:29:12 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sun, 14 Feb 2021 20:29:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> Target or source?</p>
]]></description><link>https://xcp-ng.org/forum/post/36577</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36577</guid><dc:creator><![CDATA[shorian]]></dc:creator><pubDate>Sun, 14 Feb 2021 20:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sun, 14 Feb 2021 18:08:35 GMT]]></title><description><![CDATA[<p dir="auto">Out of curiosity, can you do a: <code>dmesg | grep -i cut -C10</code> (on your master host)</p>
]]></description><link>https://xcp-ng.org/forum/post/36576</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36576</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sun, 14 Feb 2021 18:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Sun, 14 Feb 2021 17:58:28 GMT]]></title><description><![CDATA[<p dir="auto">Some more insight - for past couple of weeks I've been running a CR backup simultaneously to two SRs on different boxes. One consistently fails (remote to an identical XCP-ng box, but over the web on a 1gbps link) with the usual error, but the other succeeds (inside the firewall, 1gbps link, identical XCP-ng box), which would point to the problem not being at the source but the use of a wide area transit.</p>
<p dir="auto">So...here is SMlog at the time of the failure on the target:</p>
<pre><code>SM: [24325] vdi_detach {'sr_uuid': 'cf2dbaa3-21f3-903b-0fd1-fbe68539f897', 'subtask_of': 'DummyRef:|b73e41cc-a667-4ac0-b0f9-545dcd88b08a|VDI.detach', 'vdi_ref': 'OpaqueRef:3c20a324-2c22-4977-a63e-5baee37f9372', 'vdi_on_boot': 'persist', 'args': [], 'o_direct': False, 'vdi_location': '923acf0b-03bf-44ba-a846-f468141910f3', 'host_ref': 'OpaqueRef:d1eeb523-7938-4d80-a465-68ba2f149846', 'session_ref': 'OpaqueRef:a73dd5d5-2115-4bff-9d56-5cec26e267d8', 'device_config': {'device': '/dev/disk/by-id/scsi-3600605b010276170276bb1850660dd94-part3', 'SRmaster': 'true'}, 'command': 'vdi_detach', 'vdi_allow_caching': 'false', 'sr_ref': 'OpaqueRef:0cb18a22-646b-4dab-b08e-21ca36628f62', 'local_cache_sr': 'cf2dbaa3-21f3-903b-0fd1-fbe68539f897', 'vdi_uuid': '923acf0b-03bf-44ba-a846-f468141910f3'}
SM: [24325] lock: opening lock file /var/lock/sm/923acf0b-03bf-44ba-a846-f468141910f3/vdi
SM: [24325] lock: released /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/sr
SM: [24380] lock: opening lock file /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/sr
SM: [24380] lock: acquired /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/sr
SM: [24380] ['/usr/sbin/td-util', 'query', 'vhd', '-vpfb', '/var/run/sr-mount/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/923acf0b-03bf-44ba-a846-f468141910f3.vhd']
SM: [24380]   pread SUCCESS
SM: [24380] vdi_delete {'sr_uuid': 'cf2dbaa3-21f3-903b-0fd1-fbe68539f897', 'subtask_of': 'DummyRef:|6236329b-d253-4da6-bc9b-d5498fd02069|VDI.destroy', 'vdi_ref': 'OpaqueRef:3c20a324-2c22-4977-a63e-5baee37f9372', 'vdi_on_boot': 'persist', 'args': [], 'o_direct': False, 'vdi_location': '923acf0b-03bf-44ba-a846-f468141910f3', 'host_ref': 'OpaqueRef:d1eeb523-7938-4d80-a465-68ba2f149846', 'session_ref': 'OpaqueRef:b8fbaaeb-221f-4956-9088-f8565ba34d0a', 'device_config': {'device': '/dev/disk/by-id/scsi-3600605b010276170276bb1850660dd94-part3', 'SRmaster': 'true'}, 'command': 'vdi_delete', 'vdi_allow_caching': 'false', 'sr_ref': 'OpaqueRef:0cb18a22-646b-4dab-b08e-21ca36628f62', 'local_cache_sr': 'cf2dbaa3-21f3-903b-0fd1-fbe68539f897', 'vdi_uuid': '923acf0b-03bf-44ba-a846-f468141910f3'}
SM: [24380] lock: unlinking lock file /var/lock/sm/923acf0b-03bf-44ba-a846-f468141910f3/vdi
SM: [24380] lock: removing lock dir /var/lock/sm/923acf0b-03bf-44ba-a846-f468141910f3
SM: [24380] lock: opening lock file /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/running
SM: [24380] lock: tried lock /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/running, acquired: True (exists: True)
SM: [24380] lock: released /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/running
SM: [24380] Kicking GC
SMGC: [24380] === SR cf2dbaa3-21f3-903b-0fd1-fbe68539f897: gc ===
SMGC: [24405] Will finish as PID [24406]
SMGC: [24380] New PID [24405]
SM: [24406] lock: opening lock file /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/running
SM: [24406] lock: opening lock file /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/gc_active
SM: [24406] lock: opening lock file /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/sr
SM: [24380] lock: released /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/sr
SMGC: [24406] Found 0 cache files
SM: [24406] lock: tried lock /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/gc_active, acquired: True (exists: True)
SM: [24406] lock: tried lock /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/sr, acquired: True (exists: True)
SM: [24406] ['/usr/bin/vhd-util', 'scan', '-f', '-m', '/var/run/sr-mount/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/*.vhd']
SM: [24406]   pread SUCCESS
SMGC: [24406] SR cf2d ('Xen12 SATA') (18 VDIs in 16 VHD trees):
SMGC: [24406]         b1392757(5.000G/1.589G)
SMGC: [24406]         *d1789c22(150.000G/87.188G)
SMGC: [24406]             71e7c935(150.000G/313.500K)
SMGC: [24406]             aae21e12(150.000G/1.218G)
SMGC: [24406]         7b458e2e(10.000G/3.106G)
SMGC: [24406]         0fd9483c(25.000G/15.661G)
SMGC: [24406]         ae6739bf(10.000G/4.730G)
SMGC: [24406]         d25b8134(20.000G/3.759G)
SMGC: [24406]         265ed8d8(150.000G/16.609G)
SMGC: [24406]         32474df8(100.000G/98.434G)
SMGC: [24406]         5ae3d2e6(50.000G/46.990G)
SMGC: [24406]         7fc5f335(250.000G/16.885G)
SMGC: [24406]         ba7c92a3(25.000G/15.661G)
SMGC: [24406]         d6de6348(20.000G/9.978G)
SMGC: [24406]         24c6b7e8(20.000G/9.978G)
SMGC: [24406]         ab433fff(50.000G/49.595G)
SMGC: [24406]         6750bf45(10.000G/3.704G)
SMGC: [24406]         f9e3cd7e(10.000G/5.949G)
SMGC: [24406]
SM: [24406] lock: released /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/sr
SMGC: [24406] Got sm-config for *d1789c22(150.000G/87.188G): {'vhd-blocks': 'eJzt1kESgiAUBmC5QTfgqB2Fq9QJOsKzCzTjqlooFakjkwjiQ5jm/xculHkf0MPUesil0zeNIAiCzOaa0T7rrhKBY4ld76pP3H7LLjr8Z2LI6Yv67cvEDLl9s/7UvjP9+nPx3v4L7PnoNk2x/7TKF13Z++8+mhzvhr7/FEOpSN+//rkQmy+ifK4M65fZfPEoYf35fHEqYv1NZj8wxOQOdYrZ/3/xxz5SrH7s5+Hd65vfX64qqszVPaVvNQopFbv/x9m7/ZSUDp6A5TcU+xZQv7fkdEZh/ups/wLZ//zZW5z//z+lT/4hpbz/1HCHFka7joc0V7sbl+qY58ryJ1FzVmCry7BhY3z9b8+iPVSsEb2/uU5mPzbw4cOHDx8+fPjw4cOHD38vv05U+QVg667e'}
SMGC: [24406] No work, exiting
SMGC: [24406] GC process exiting, no work left
SM: [24406] lock: released /var/lock/sm/cf2dbaa3-21f3-903b-0fd1-fbe68539f897/gc_active
SMGC: [24406] In cleanup
SMGC: [24406] SR cf2d ('Xen12 SATA') (18 VDIs in 16 VHD trees): no changes
</code></pre>
<p dir="auto">The only thing I can see in there is the garbage collection.</p>
<p dir="auto">Given that the issue seems to be something to do with the wide area network (same speed as inside the firewall, but obviously more hops), I wonder if this may be a similar problem as we're seeing in the S3 backups over the WAN?  Could it be that some packets are being delayed in transit, or that there is an internal time limit on a backup chunk completing? Would also explain why backing up smaller VMs has a higher chance of success than the larger ones, since the % chance of a temporary timeout increases the longer a backup runs?</p>
<p dir="auto">I've kept the set up as (finally) I now have 100% repeatability on the CR backup to the remote SR failure, so if someone wants to come in and have a look around it can be arranged. Others seem to have the same problem so hopefully this can help get to the root cause, as this the first time I've managed to get it to consistently fail every time.  Appreciate that this doesn't sound like a success, but it beats an intermittent failure!</p>
]]></description><link>https://xcp-ng.org/forum/post/36575</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36575</guid><dc:creator><![CDATA[shorian]]></dc:creator><pubDate>Sun, 14 Feb 2021 17:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Thu, 28 Jan 2021 15:10:33 GMT]]></title><description><![CDATA[<p dir="auto">Well, if you spot something or able to reproduce it easily with some protocol other people could try and also reproduce, that would increase the chances a lot <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2bdbead4301" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/36005</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36005</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 28 Jan 2021 15:10:33 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Thu, 28 Jan 2021 15:05:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> So chances of resolving are minimal to none.  Ugh.  I'll keep digging around, it's proving a right pain in the @£$%</p>
]]></description><link>https://xcp-ng.org/forum/post/36004</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36004</guid><dc:creator><![CDATA[shorian]]></dc:creator><pubDate>Thu, 28 Jan 2021 15:05:53 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Thu, 28 Jan 2021 14:32:32 GMT]]></title><description><![CDATA[<p dir="auto">It's really hard to track those random issues.</p>
<p dir="auto">Sounds like a kind of race condition happening on your hardware/setup.</p>
]]></description><link>https://xcp-ng.org/forum/post/36003</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36003</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 28 Jan 2021 14:32:32 GMT</pubDate></item><item><title><![CDATA[Reply to VDI_IO_ERROR(Device I/O errors)  when you run scheduled backup on Thu, 28 Jan 2021 13:46:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> Update after 20+ iterations - writing to lvm (ext4 -&gt; lvm) between remote hosts has only failed 1/20 times which for me is more than acceptable, compared with writing ext4 -&gt; ext4 which fails 80%.</p>
<p dir="auto">Given when it did fail on lvm it was the same error, I think it's less likely to be the driver as the root cause, but instead a timing or back pressure issue?  All the more so given that the issue only arose when writing to a remote (outside the firewall) host, but writing to a host inside the firewall has not had a single issue.</p>
<p dir="auto">Also I think it's interesting that the issue was (largely) resolved by making the change at the target end, not the source, despite there not being much in the way of error logs at the point of failure on the target.</p>
<p dir="auto">So....where to look next? Do you any tools that can simulate the above so we can enable / disable and therefore isolate the problem?</p>
<p dir="auto">(Happy to allow you in via XOA if it makes life easier)</p>
]]></description><link>https://xcp-ng.org/forum/post/36002</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/36002</guid><dc:creator><![CDATA[shorian]]></dc:creator><pubDate>Thu, 28 Jan 2021 13:46:32 GMT</pubDate></item></channel></rss>