<?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[Incremental backup fails on a 3 TB qcow2 disk: value is out of range ... <= 4294967295 in computeVhdBatAndFileSize]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">An incremental (delta) backup job fails on a VM that has a 3 TB qcow2 disk. The run is a “full” (base) export, and the transfer fails after about 4 minutes.</p>
<p dir="auto">Environment</p>
<p dir="auto">XCP-ng 8.3.0, sm-3.2.12-25.1.xcpng8.3<br />
Xen Orchestra built from sources (ronivay installer), commit 3923756ff (2026-10-22, latest master at the time of testing)<br />
Backup type: incremental / delta (this run: Type: full)<br />
Remote: SMB share on a Synology NAS<br />
VM: 1 VDI of 3 TB in qcow2 format</p>
<p dir="auto">What happens</p>
<p dir="auto">The snapshot succeeds.<br />
The transfer to the remote fails after about 4 minutes. The same error is reported at the transfer, remote and job levels:<br />
Error: The value of "value" is out of range. It must be &gt;= 0 and &lt;= 4294967295. Received 4_294_971_137</p>
<p dir="auto">Stack trace (xo-server)</p>
<p dir="auto">xo:backups:AbstractVmRunner WARN writer step failed {<br />
error: RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be &gt;= 0 and &lt;= 4294967295. Received 4_294_971_137<br />
at checkInt (node:internal/buffer:78:11)<br />
at writeU_Int32BE (node:internal/buffer:808:3)<br />
at Buffer.writeUInt32BE (node:internal/buffer:821:10)<br />
at DiskConsumerVhdStream.computeVhdBatAndFileSize (packages/vhd-lib/disk-consumer/BaseVhd.mjs:73:11)<br />
at DiskConsumerVhdStream.toStream (packages/vhd-lib/disk-consumer/DiskConsumerVhdStream.mjs:62:36)<br />
at toVhdStream (packages/vhd-lib/disk-consumer/index.mjs:31:19)<br />
at RemoteAdapter.writeVhd (<a class="plugin-mentions-category plugin-mentions-a" href="/forum/category/12/xen-orchestra" aria-label="Profile: xen-orchestra">@<bdi>xen-orchestra</bdi></a>/backups/RemoteAdapter.mjs:695:28)<br />
at asyncEach.concurrency (<a class="plugin-mentions-category plugin-mentions-a" href="/forum/category/12/xen-orchestra" aria-label="Profile: xen-orchestra">@<bdi>xen-orchestra</bdi></a>/backups/_runners/_writers/IncrementalRemoteWriter.mjs:284:45)<br />
at next (<a class="plugin-mentions-group plugin-mentions-a" href="/forum/groups/vates" aria-label="Profile: vates">@<bdi>vates</bdi></a>/async-each/index.js:90:37) {<br />
code: 'ERR_OUT_OF_RANGE'<br />
},<br />
step: 'writer.transfer()',<br />
writer: 'IncrementalRemoteWriter'<br />
}</p>
<p dir="auto">This is followed by VDI_IN_USE (destroy) retries on the snapshot cleanup, which look like a side effect of the failed transfer.</p>
<p dir="auto">Analysis<br />
The crash happens while computing the VHD BAT. The BAT stores block offsets as 32-bit sector numbers (512-byte units), so a VHD cannot address data beyond ~2 TiB. The qcow2 disk is 3 TB, and the stream’s block offsets go past that limit (4,294,971,137 sectors ≈ 2 TiB + 1.9 MiB).</p>
<p dir="auto">In the meantime, I’m protecting this VM’s data with a file-level backup agent, but I’d like to go back to XO for the whole VM.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://xcp-ng.org/forum/topic/12549/incremental-backup-fails-on-a-3-tb-qcow2-disk-value-is-out-of-range-...-4294967295-in-computevhdbatandfilesize</link><generator>RSS for Node</generator><lastBuildDate>Fri, 23 Oct 2026 05:10:40 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12549.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Oct 2026 03:20:32 GMT</pubDate><ttl>60</ttl></channel></rss>