<?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[Migrating an offline VM disk between two local SRs is slow]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I had to migrate a VM from one local SR (SSD) to another SR (4x HDD HW-RAID0 with cache) and it is very slow. It is not often I do this, but I think that in the past this migration was a lot faster.</p>
<p dir="auto">When I look in <code>iotop</code> I can see roughly 80-100MiB/s.<br />
<img src="/forum/assets/uploads/files/1734448865360-3c770d7a-1cd6-41ac-805d-138d8b52ffaa-image.png" alt="3c770d7a-1cd6-41ac-805d-138d8b52ffaa-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I think that the issue is the sparse_dd connecting to localhost (10.12.9.2) over NBD/IP that makes it slow?</p>
<pre><code>/usr/libexec/xapi/sparse_dd -machine -src /dev/sm/backend/55dd0f16-4caf-xxxxx2/46e447a5-xxxx -dest http://10.12.9.2/services/SM/nbd/a761cf8a-c3aa-6431-7fee-xxxx -size 64424509440 -good-ciphersuites ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384:AES256-SHA256:AES128-SHA256 -prezeroed
</code></pre>
<p dir="auto">I know I have migrated disks before on this server with multiple hundreds of MB/s, so I am curious to what is the difference.</p>
<p dir="auto">This is XOA stable channel on XCP-ng 8.2.</p>
]]></description><link>https://xcp-ng.org/forum/topic/10131/migrating-an-offline-vm-disk-between-two-local-srs-is-slow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 23:50:32 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10131.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Dec 2024 15:27:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Thu, 20 Feb 2025 10:43:49 GMT]]></title><description><![CDATA[<p dir="auto">Maybe the IO scheduler is not the right one?</p>
]]></description><link>https://xcp-ng.org/forum/post/89933</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89933</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 20 Feb 2025 10:43:49 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Thu, 20 Feb 2025 10:43:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/davidj-0" aria-label="Profile: Davidj-0">@<bdi>Davidj-0</bdi></a> in my case there CPU activity is minimal.  I think something is wrong with the software raid 10 setup.  On an identical setup warm migration between to the raid 10 array between hosts is showing horrible iowait similar to the sr to sr transfer on the other host</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1740048056966-bb40264a-7678-4906-aca5-788bc217c7f4-image-resized.png" alt="bb40264a-7678-4906-aca5-788bc217c7f4-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/post/89931</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89931</guid><dc:creator><![CDATA[magicker]]></dc:creator><pubDate>Thu, 20 Feb 2025 10:43:15 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Thu, 20 Feb 2025 10:08:08 GMT]]></title><description><![CDATA[<p dir="auto">I can't really tell, gut feeling is the sending host, but I have no numbers to confirm.</p>
]]></description><link>https://xcp-ng.org/forum/post/89925</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89925</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 20 Feb 2025 10:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Thu, 20 Feb 2025 01:41:38 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><br />
Is the CPU on the sending host or the receiving host the limiting factor for single disk migrations?</p>
]]></description><link>https://xcp-ng.org/forum/post/89909</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89909</guid><dc:creator><![CDATA[Davidj 0]]></dc:creator><pubDate>Thu, 20 Feb 2025 01:41:38 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Wed, 19 Feb 2025 09:45:35 GMT]]></title><description><![CDATA[<p dir="auto">I think I am seeing a similar issue. Raid1 NVME copy to raid 10 4x2tb HDD on same host</p>
<p dir="auto">a 300gb transfer is estimated at 7 hours.  (11% done in 50 mins)</p>
<p dir="auto">the vm is live.</p>
<p dir="auto">according to the stats almost nothing is happening on this server or the 2 storage</p>
]]></description><link>https://xcp-ng.org/forum/post/89848</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89848</guid><dc:creator><![CDATA[magicker]]></dc:creator><pubDate>Wed, 19 Feb 2025 09:45:35 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 19:25:28 GMT]]></title><description><![CDATA[<p dir="auto">Using XOA "Disaster Recovery" backup method can be a lot faster than normal offline migration.</p>
<p dir="auto">One time I did it, it took approx 10 minutes instead of 2 hours...</p>
]]></description><link>https://xcp-ng.org/forum/post/88402</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88402</guid><dc:creator><![CDATA[Forza]]></dc:creator><pubDate>Fri, 17 Jan 2025 19:25:28 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 15:44:51 GMT]]></title><description><![CDATA[<p dir="auto">You can also try warm migration, which can go a lot faster.</p>
]]></description><link>https://xcp-ng.org/forum/post/88359</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88359</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 15:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 15:43:22 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> This is all offline. Unfortunately I can't describe exactly what was done, since someone else was doing the work and they were trying a bunch of different things all in a row. I suspect that the apparently fast migration is a red herring (maybe a previous attempt left a copy of the disk on the destination SR, and the system noticed that and avoided the actual I/O?) but if there turned out to be a magical fast path, I wouldn't complain!</p>
]]></description><link>https://xcp-ng.org/forum/post/88358</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88358</guid><dc:creator><![CDATA[pkgw]]></dc:creator><pubDate>Fri, 17 Jan 2025 15:43:22 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 15:29:43 GMT]]></title><description><![CDATA[<p dir="auto">Can you describe exactly the steps that were done so we can double check/compare and understand the why?</p>
<p dir="auto">edit: also, are you comparing a live migration vs an offline copy? It's very different, since in live you have to replicate the blocks while the VM on top is running.</p>
]]></description><link>https://xcp-ng.org/forum/post/88356</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88356</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 15:29:43 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 15:28:24 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, that's good to know. I appreciate your taking the time to discuss. I don't suppose there are any settings we can fiddle with that would speed up the single-disk scenario? Or some workaround approach that might get closer to the hardware's native speed? (In one experiment, someone did something that caused the system to transfer the OS disk with the log message <a href="https://github.com/xapi-project/xen-api/blob/master/ocaml/xapi/storage_migrate.ml#L679" target="_blank" rel="noopener noreferrer nofollow ugc">"Cloning VDI"</a> rather than <a href="https://github.com/xapi-project/xen-api/blob/master/ocaml/xapi/storage_migrate.ml#L692" target="_blank" rel="noopener noreferrer nofollow ugc">"Creating a blank remote VDI"</a>, and the effective throughput was higher by a factor of 20 ...)</p>
]]></description><link>https://xcp-ng.org/forum/post/88355</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88355</guid><dc:creator><![CDATA[pkgw]]></dc:creator><pubDate>Fri, 17 Jan 2025 15:28:24 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 15:09:22 GMT]]></title><description><![CDATA[<p dir="auto">Mostly CPU bound (single disk migration isn't multithreaded). Higher your CPU frequency, faster the migration.</p>
]]></description><link>https://xcp-ng.org/forum/post/88348</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88348</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 15:09:22 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 15:04:09 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> Ah, yes, that is true. We are migrating one extremely large VM, so there isn't much to parallize for us, unfortunately. But it is true that someone tried something that caused the system to migrate two disks at once, and the total throughput did double.</p>
<p dir="auto">(Specifics: the machine is 4 TiB spread across 2 big disks and 1 small OS disk, and the way that we're attempting to migrate right now it all goes serially, so the task is taking multiple days and hitting various timeouts. We think we can solve the timeouts, and we don't expect to need to do this kind of migration at all frequently, but I'd still like to understand why the single-disk throughput is so much lower than what we believe the hardware is capable of.)</p>
]]></description><link>https://xcp-ng.org/forum/post/88345</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88345</guid><dc:creator><![CDATA[pkgw]]></dc:creator><pubDate>Fri, 17 Jan 2025 15:04:09 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 14:31:10 GMT]]></title><description><![CDATA[<p dir="auto">I meant one virtual disk per one virtual disk. If you migrate more VMs/disks at once, you should see it scaling.</p>
]]></description><link>https://xcp-ng.org/forum/post/88343</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88343</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 14:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 14:30:07 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> No, this is an array of SSDs on a PowerVault, and we have evidence that the raw thoughput that we can get out of the system is much, much higher. I'm not 100% sure, but it seems that some software aspect of the migration framework is really bottlenecking things, although I've poked around and don't see anything that appears to be CPU-bound either.</p>
]]></description><link>https://xcp-ng.org/forum/post/88342</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88342</guid><dc:creator><![CDATA[pkgw]]></dc:creator><pubDate>Fri, 17 Jan 2025 14:30:07 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Fri, 17 Jan 2025 09:27:12 GMT]]></title><description><![CDATA[<p dir="auto">20 MiB/s is rather slow, are you migrating one disk per one disk?</p>
]]></description><link>https://xcp-ng.org/forum/post/88307</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88307</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 09:27:12 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Thu, 16 Jan 2025 21:56:46 GMT]]></title><description><![CDATA[<p dir="auto">What generally limits the migration speed? My installation is seeing a phenomenon that might be similar — when migrating between SRs we're only getting about 20 MB/s, while everything is wired together with 10 Gbps links.</p>
]]></description><link>https://xcp-ng.org/forum/post/88294</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88294</guid><dc:creator><![CDATA[pkgw]]></dc:creator><pubDate>Thu, 16 Jan 2025 21:56:46 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Tue, 17 Dec 2024 16:12:02 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/87041">Migrating an offline VM disk between two local SRs is slow</a>:</p>
<blockquote>
<p dir="auto">80/100MiB/s for one storage migration is already pretty decent. You might go faster by migrating more disks at once.</p>
<p dir="auto">I'm not sure to understand what difference are you referring too? It's always has been in that ballpark, per disk.</p>
</blockquote>
<p dir="auto">This is not over a Network, only between local ext4 SRs on the same server. I tried the same migration using XCP-ng center and it is at the moment double as fast:<br />
<img src="/forum/assets/uploads/files/1734451623909-bdde4643-4733-43ca-b685-560e0b54b02e-image.png" alt="bdde4643-4733-43ca-b685-560e0b54b02e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Can't really see any difference though. It is the same sparse_dd and nbd connection <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f937.png?v=a78c449d9ac" class="not-responsive emoji emoji-android emoji--shrug" style="height:23px;width:auto;vertical-align:middle" title=":shrug:" alt="🤷" />  Perhaps it's a fragmentation issue. Though, doing a copy of the same VHD file gives close to 500MB/s.</p>
]]></description><link>https://xcp-ng.org/forum/post/87055</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/87055</guid><dc:creator><![CDATA[Forza]]></dc:creator><pubDate>Tue, 17 Dec 2024 16:12:02 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Tue, 17 Dec 2024 15:58:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dustinb" aria-label="Profile: DustinB">@<bdi>DustinB</bdi></a> said in <a href="/forum/post/87047">Migrating an offline VM disk between two local SRs is slow</a>:</p>
<blockquote>
<p dir="auto">Separate question, why are you opting to use RAID 0, purely for the performance gain?</p>
</blockquote>
<p dir="auto">Yes, performance for bulk/temp data stuff.</p>
]]></description><link>https://xcp-ng.org/forum/post/87052</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/87052</guid><dc:creator><![CDATA[Forza]]></dc:creator><pubDate>Tue, 17 Dec 2024 15:58:31 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Tue, 17 Dec 2024 15:57:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dustinb" aria-label="Profile: DustinB">@<bdi>DustinB</bdi></a>, no these are local disks not networked disks. I used to get around 400-500MB/s or so for plain migration between the two SRs.</p>
]]></description><link>https://xcp-ng.org/forum/post/87050</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/87050</guid><dc:creator><![CDATA[Forza]]></dc:creator><pubDate>Tue, 17 Dec 2024 15:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Tue, 17 Dec 2024 15:46:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/forza" aria-label="Profile: Forza">@<bdi>Forza</bdi></a> you're getting .8 GBps, which doesn't seem unreasonable. Are the SR's attached to 1GB networking?</p>
<p dir="auto">Separate question, why are you opting to use RAID 0, purely for the performance gain?</p>
]]></description><link>https://xcp-ng.org/forum/post/87047</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/87047</guid><dc:creator><![CDATA[DustinB]]></dc:creator><pubDate>Tue, 17 Dec 2024 15:46:43 GMT</pubDate></item><item><title><![CDATA[Reply to Migrating an offline VM disk between two local SRs is slow on Tue, 17 Dec 2024 15:29:27 GMT]]></title><description><![CDATA[<p dir="auto">80/100MiB/s for one storage migration is already pretty decent. You might go faster by migrating more disks at once.</p>
<p dir="auto">I'm not sure to understand what difference are you referring too? It's always has been in that ballpark, per disk.</p>
]]></description><link>https://xcp-ng.org/forum/post/87041</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/87041</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 17 Dec 2024 15:29:27 GMT</pubDate></item></channel></rss>