<?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[Large QCOW2 VDI on LVM SR fails to activate with make_chain_rw / Input/output error]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying to understand whether I am hitting a bug, a known limitation, or a configuration issue when using a large QCOW2 VDI on an LVM SR.</p>
<p dir="auto">Environment</p>
<p dir="auto">I have an existing VM with several virtual disks.</p>
<p dir="auto">Most of the data disks are approximately 2 TiB and were created as VHD VDIs. They have been working correctly for a long time.</p>
<p dir="auto">Example:</p>
<pre><code>virtual-size: ~2 TiB
image-format: vhd
vdi_type: vhd
</code></pre>
<p dir="auto">Inside the guest, several of these disks are combined using LVM to provide a larger filesystem.</p>
<p dir="auto">The Xen Orchestra instance is built directly from source and kept up to date from the upstream source tree.</p>
<p dir="auto">The storage repository involved is an existing local LVM SR that has been in production for several years. It was not newly created for this test and has been used successfully with VHD VDIs over that period.</p>
<p dir="auto">I now need to add significantly more storage and would prefer to avoid continuing to add multiple ~2 TiB VHD disks.</p>
<p dir="auto">I therefore created a new 15 TiB virtual disk using the current Xen Orchestra build.</p>
<p dir="auto">The disk was automatically created as QCOW2:</p>
<pre><code>virtual-size: 16492674416640
image-format: qcow2
vdi_type: qcow2
Storage Repository
</code></pre>
<p dir="auto">The VDI is stored on the existing local LVM SR.</p>
<p dir="auto">The SR has approximately:</p>
<p dir="auto">Total size: ~44 TiB<br />
Free after creating the new VDI: ~4 TiB</p>
<p dir="auto">There was sufficient free space before creating the new 15 TiB VDI.</p>
<p dir="auto">At the LVM level, the QCOW2 LV is present and has the expected size:</p>
<p dir="auto">QCOW2-&lt;uuid&gt;    ~15.00 TiB<br />
Problem</p>
<p dir="auto">When the 15 TiB QCOW2 disk is attached to the VM, the VM fails to start.</p>
<p dir="auto">Xen Orchestra reports:</p>
<p dir="auto">SR_BACKEND_FAILURE_46</p>
<p dir="auto">The VDI is not available<br />
[opterr=['XENAPI_PLUGIN_FAILURE',<br />
'make_chain_rw',<br />
'CommandException',<br />
'Input/output error']]</p>
<p dir="auto">The same VM starts normally when this QCOW2 VDI is removed or detached.</p>
<p dir="auto">All the existing VHD disks on the same SR continue to work normally.</p>
<p dir="auto">Relevant SMlog output</p>
<p dir="auto">The Storage Manager detects the QCOW2 LV and can query its size.</p>
<p dir="auto">For example:</p>
<p dir="auto">blockdev --getsize64 /dev/&lt;VG&gt;/QCOW2-&lt;uuid&gt;</p>
<p dir="auto">succeeds.</p>
<p dir="auto">It also executes:</p>
<pre><code>qemu-img measure \
-O qcow2 \
--output json \
-o cluster_size=65536 \
--size 16492674416640
</code></pre>
<p dir="auto">successfully.</p>
<p dir="auto">The failure happens during VDI activation:</p>
<p dir="auto">BLKTAP2:&lt;function VDI._activate_locked ...&gt;:<br />
EXCEPTION &lt;class 'XenAPI.Failure'&gt;,</p>
<p dir="auto">['XENAPI_PLUGIN_FAILURE',<br />
'make_chain_rw',<br />
'CommandException',<br />
'Input/output error']</p>
<p dir="auto">self._make_chain_rw()</p>
<p dir="auto">File "/opt/xensource/sm/LVMSR.py", line ..., in _make_chain_rw<br />
raise Failure(result['ErrorDescription'])<br />
Current VM disk layout</p>
<p dir="auto">Simplified layout:</p>
<p dir="auto">System disk       VHD<br />
Home disk         VHD</p>
<p dir="auto">~2 TiB            VHD<br />
~2 TiB            VHD<br />
~2 TiB            VHD<br />
~2 TiB            VHD<br />
~2 TiB            VHD<br />
~2 TiB            VHD<br />
~2 TiB            VHD<br />
~2 TiB            VHD</p>
<p dir="auto">15 TiB            QCOW2   &lt;-- new disk causing the failure</p>
<p dir="auto">The existing VHD disks work correctly.</p>
<p dir="auto">The problem only appeared after adding the large QCOW2 VDI.</p>
<p dir="auto">Questions</p>
<p dir="auto">Is a 15 TiB QCOW2 VDI on an existing local LVM SR expected to work reliably on current XCP-ng 8.3?</p>
<p dir="auto">Is mixing VHD and QCOW2 VDIs on the same VM and on the same SR fully supported?</p>
<p dir="auto">Could the fact that this is an older LVM SR created several years ago make any difference with the newer QCOW2 support?</p>
<p dir="auto">Does the following error correspond to any known QCOW2/LVM issue?</p>
<p dir="auto">make_chain_rw<br />
CommandException<br />
Input/output error</p>
<p dir="auto">Are there specific minimum versions of xapi, sm, blktap, or other storage components required for large QCOW2 VDIs?</p>
<p dir="auto">Would a different SR type be recommended for VDIs of this size, or should this configuration work normally?</p>
<p dir="auto">The Xen Orchestra instance is built from source and kept current, so I am mainly trying to determine whether the issue is on the XCP-ng/storage side rather than the XO side.</p>
<p dir="auto">I can provide additional anonymized SMlog, package versions, qemu-img output and LVM diagnostics if required.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://xcp-ng.org/forum/topic/12485/large-qcow2-vdi-on-lvm-sr-fails-to-activate-with-make_chain_rw-input-output-error</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 16:29:08 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12485.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Sep 2026 14:47:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Large QCOW2 VDI on LVM SR fails to activate with make_chain_rw / Input/output error on Tue, 22 Sep 2026 16:20:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dthenot" aria-label="Profile: dthenot">@<bdi>dthenot</bdi></a><br />
Thanks. I checked this on the pool master.</p>
<p dir="auto">Interestingly, there is no <code>make_chain_rw</code> entry in <code>/var/log/SMlog</code> on the pool master itself.</p>
<p dir="auto">On the host where the VM and the storage reside, <code>/var/log/SMlog</code> shows the QCOW2 VDI activation reaching <code>make_chain_rw</code> and then failing with:</p>
<pre><code class="language-text">XENAPI_PLUGIN_FAILURE
make_chain_rw
CommandException
Input/output error
</code></pre>
<p dir="auto">One detail that may be relevant: <strong>this is a local LVM SR</strong>. The SR belongs to the host where the VM is running, and that host is <strong>not the pool master</strong>. The VG for this SR is therefore not present on the pool master.</p>
<p dir="auto">The existing VHD VDIs on the same local LVM SR continue to activate normally; the failure occurs with the new QCOW2 VDI.</p>
<p dir="auto">I also checked <code>dmesg</code> on the host owning the SR and I do not see any corresponding disk/RAID I/O errors at the time of the failure.</p>
<p dir="auto">For reference, Xen Orchestra is built from source and is currently at commit:</p>
<p dir="auto"><code>faf6745471d7b2a00d774d98428873455e9539dc</code></p>
<p dir="auto">Could the fact that this is a <strong>local LVM SR on a non-master host</strong> be relevant to how <code>make_chain_rw</code> is being handled?</p>
]]></description><link>https://xcp-ng.org/forum/post/108619</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108619</guid><dc:creator><![CDATA[samuelolavo]]></dc:creator><pubDate>Tue, 22 Sep 2026 16:20:36 GMT</pubDate></item><item><title><![CDATA[Reply to Large QCOW2 VDI on LVM SR fails to activate with make_chain_rw / Input/output error on Tue, 22 Sep 2026 15:27:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/samuelolavo" aria-label="Profile: samuelolavo">@<bdi>samuelolavo</bdi></a> Hello,</p>
<p dir="auto">It is indeed linked to QCOW2.</p>
<blockquote>
<p dir="auto">Is mixing VHD and QCOW2 VDIs on the same VM and on the same SR fully supported?</p>
</blockquote>
<p dir="auto">Yes, it's supposed to work.</p>
<blockquote>
<p dir="auto">Are there specific minimum versions of xapi, sm, blktap, or other storage components required for large QCOW2 VDIs?</p>
</blockquote>
<p dir="auto">Yes, but we would prefer for people to be uptodate, we have been fixing things.<br />
But I don't think it's a problem for you at the moment.</p>
<p dir="auto"><code>make_chain_rw</code> is necessary for the master to make the QCOW2 LV RW at the VDI activation time. So it's likely linked to this particular QCOW2.</p>
<p dir="auto"><code>make_chain_rw</code> is executed on the master host and is logging in <code>/var/log/SMlog</code>, could you take a look at what it's erroring on?</p>
]]></description><link>https://xcp-ng.org/forum/post/108616</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108616</guid><dc:creator><![CDATA[dthenot]]></dc:creator><pubDate>Tue, 22 Sep 2026 15:27:16 GMT</pubDate></item></channel></rss>