<?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[SR Garbage Collection running permanently]]></title><description><![CDATA[<p dir="auto">It takes few min, but i see that task runing almost non stop for only one storage.<br />
At VDI list i see something weird:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1737106082538-4687a0b4-5448-44c4-880f-f87f4bda8428-image.png" alt="4687a0b4-5448-44c4-880f-f87f4bda8428-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Nothing similar at other pools\sr.</p>
]]></description><link>https://xcp-ng.org/forum/topic/10271/sr-garbage-collection-running-permanently</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 00:26:28 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10271.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Jan 2025 09:29:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 11 Jul 2025 13:59:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/razor_648" aria-label="Profile: Razor_648">@<bdi>Razor_648</bdi></a> While I was writing my previous message, I have been reminded that there are also issues with LVHDoISCSI SR and CBT, you should disable CBT on your backup job and on all VDI on the SR. It might help with the issue.</p>
]]></description><link>https://xcp-ng.org/forum/post/95284</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/95284</guid><dc:creator><![CDATA[dthenot]]></dc:creator><pubDate>Fri, 11 Jul 2025 13:59:04 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 11 Jul 2025 13:56:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/razor_648" aria-label="Profile: Razor_648">@<bdi>Razor_648</bdi></a> Hi,</p>
<p dir="auto">The log you showed only mean that it couldn't compare two VDI together using their CBT.<br />
It sometimes happen that a CBT chain become disconnected.</p>
<p dir="auto">Disabling leaf-coalesce mean it won't run on leaf, VHD chain will always be 2 depths deep.</p>
<p dir="auto">You migrated 200 VMs, every disks of those VMs had snapshot made that then need to be coalesced, it can take a while.<br />
Your backup then also do a snapshot each time while running that need to be coalesced.</p>
<p dir="auto">There are GC in both version of XCP-ng 8.2 and 8.3.<br />
The GC is run independently of auto-scan, if you really want to disable it you can do it temporarily using <code>/opt/xensource/sm/cleanup.py -x -u &lt;SR UUID&gt;</code> it will stop the GC until you press enter. I guess you could run it in a tmux to make it stop until next reboot. But it would be better to find the problem or if there really is no problem let the GC work until it's finished.<br />
It's a bit weird to need 15 minutes to take a snapshot, it would point to a problem though.<br />
Do you have any other error than the CBT one in your SMlog?</p>
]]></description><link>https://xcp-ng.org/forum/post/95282</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/95282</guid><dc:creator><![CDATA[dthenot]]></dc:creator><pubDate>Fri, 11 Jul 2025 13:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 11 Jul 2025 13:32:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ronan-a" aria-label="Profile: ronan-a">@<bdi>ronan-a</bdi></a> Hello, do you have any news please ?<br />
I'd like to understand the difference between the 8.2 and 8.3 versions; why is there Garbage Collection in 8.3 and not in 8.2? On what criteria is GC triggered? We've forced autoscan=false, leaf-coalesce=false on the iSCSI SRs in our 8.3 cluster and the SRs are becoming full, I'd like to understand why too, considering my backup jobs have CBT enabled.</p>
]]></description><link>https://xcp-ng.org/forum/post/95281</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/95281</guid><dc:creator><![CDATA[Razor_648]]></dc:creator><pubDate>Fri, 11 Jul 2025 13:32:37 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Wed, 09 Jul 2025 09:55:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ronan-a" aria-label="Profile: ronan-a">@<bdi>ronan-a</bdi></a> for example, for ID 3407716 in SMlog for Dom0 master :</p>
<pre><code>Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] Setting LVM_DEVICE to /dev/disk/by-scsid/3624a93704071cc78f82b4df4000113ee
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] Setting LVM_DEVICE to /dev/disk/by-scsid/3624a93704071cc78f82b4df4000113ee
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] lock: opening lock file /var/lock/sm/5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/sr
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] LVMCache created for VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89
Jul  9 09:44:45 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893214.155789358'
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] ['/sbin/vgs', '--readonly', 'VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89']
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] lock: acquired /var/lock/sm/5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/sr
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] LVMCache: will initialize now
Jul  9 09:44:45 na-mut-xen-03 SM: [3407716] LVMCache: refreshing
Jul  9 09:44:46 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893215.105961535'
Jul  9 09:44:46 na-mut-xen-03 SM: [3407716] ['/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89']
Jul  9 09:44:46 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:46 na-mut-xen-03 SM: [3407716] lock: released /var/lock/sm/5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/sr
Jul  9 09:44:46 na-mut-xen-03 SM: [3407716] Entering _checkMetadataVolume
Jul  9 09:44:46 na-mut-xen-03 SM: [3407716] vdi_list_changed_blocks {'host_ref': 'OpaqueRef:8bb2bb09-1d56-cb47-6014-91c3eca78529', 'command': 'vdi_list_changed_blocks', 'args': ['OpaqueRef:3a4d6847-eb39-5a96-f2c2-ffcad3da4477'], 'device_config': {'SRmaster': 'true', 'port': '3260', 'SCSIid': '3624a93704071cc78f82b4df4000113ee', 'targetIQN': 'iqn.2010-06.com.purestorage:flasharray.2498b71d53b104d9', 'target': '10.20.0.21', 'multihomelist': '10.20.0.21:3260,10.20.0.22:3260,10.20.1.21:3260,10.20.1.22:3260'}, 'session_ref': '******', 'sr_ref': 'OpaqueRef:78f4538b-4c0b-531c-c523-fd92f8738fc5', 'sr_uuid': '5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89', 'vdi_ref': 'OpaqueRef:05e1857b-f39d-47da-9c06-d0d35ba97f00', 'vdi_location': '9fae176c-2c5f-4fd1-91fd-9bdb32533795', 'vdi_uuid': '9fae176c-2c5f-4fd1-91fd-9bdb32533795', 'subtask_of': 'DummyRef:|dea7f1a8-9116-8be0-6ba8-c3ecac77b442|VDI.list_changed_blocks', 'vdi_on_boot': 'persist', 'vdi_allow_caching': 'false'}
Jul  9 09:44:47 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893215.990307086'
Jul  9 09:44:47 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893216.783648117'
Jul  9 09:44:48 na-mut-xen-03 SM: [3407716] lock: opening lock file /var/lock/sm/9fae176c-2c5f-4fd1-91fd-9bdb32533795/cbtlog
Jul  9 09:44:48 na-mut-xen-03 SM: [3407716] lock: acquired /var/lock/sm/9fae176c-2c5f-4fd1-91fd-9bdb32533795/cbtlog
Jul  9 09:44:48 na-mut-xen-03 SM: [3407716] LVMCache: refreshing
Jul  9 09:44:48 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893217.178993739'
Jul  9 09:44:48 na-mut-xen-03 SM: [3407716] ['/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89']
Jul  9 09:44:48 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:49 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893218.029420281'
Jul  9 09:44:49 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-ay', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/9fae176c-2c5f-4fd1-91fd-9bdb32533795.cbtlog']
Jul  9 09:44:49 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:49 na-mut-xen-03 SM: [3407716] ['/usr/sbin/cbt-util', 'get', '-n', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/9fae176c-2c5f-4fd1-91fd-9bdb32533795.cbtlog', '-c']
Jul  9 09:44:49 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:49 na-mut-xen-03 SM: [3407716] fuser /dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/9fae176c-2c5f-4fd1-91fd-9bdb32533795.cbtlog =&gt; 1 / '' / ''
Jul  9 09:44:50 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893219.268237038'
Jul  9 09:44:50 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-an', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/9fae176c-2c5f-4fd1-91fd-9bdb32533795.cbtlog']
Jul  9 09:44:50 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:51 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893220.721225461'
Jul  9 09:44:51 na-mut-xen-03 SM: [3407716] ['/sbin/dmsetup', 'status', 'VG_XenStorage--5301ae76--31fd--9ff0--7d4c--65c8b1ed8f89-9fae176c--2c5f--4fd1--91fd--9bdb32533795.cbtlog']
Jul  9 09:44:51 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:51 na-mut-xen-03 SM: [3407716] lock: released /var/lock/sm/9fae176c-2c5f-4fd1-91fd-9bdb32533795/cbtlog
Jul  9 09:44:51 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893220.765534349'
Jul  9 09:44:52 na-mut-xen-03 SM: [3407716] lock: opening lock file /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:44:52 na-mut-xen-03 SM: [3407716] lock: acquired /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:44:52 na-mut-xen-03 SM: [3407716] LVMCache: refreshing
Jul  9 09:44:53 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893222.038114535'
Jul  9 09:44:53 na-mut-xen-03 SM: [3407716] ['/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89']
Jul  9 09:44:53 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:54 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893222.921315355'
Jul  9 09:44:54 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-ay', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog']
Jul  9 09:44:54 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:54 na-mut-xen-03 SM: [3407716] ['/usr/sbin/cbt-util', 'get', '-n', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog', '-s']
Jul  9 09:44:54 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:54 na-mut-xen-03 SM: [3407716] fuser /dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog =&gt; 1 / '' / ''
Jul  9 09:44:55 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893224.138058885'
Jul  9 09:44:55 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-an', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog']
Jul  9 09:44:55 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:56 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893225.053222085'
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716] ['/sbin/dmsetup', 'status', 'VG_XenStorage--5301ae76--31fd--9ff0--7d4c--65c8b1ed8f89-54bc2594--5228--411a--a4b2--cc1a7502d9a4.cbtlog']
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716] lock: released /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716] DEBUG: Processing VDI 54bc2594-5228-411a-a4b2-cc1a7502d9a4 of size 107374182400
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716] lock: acquired /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716] LVMCache: refreshing
Jul  9 09:44:56 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893225.076140954'
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716] ['/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89']
Jul  9 09:44:56 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:57 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893225.934427314'
Jul  9 09:44:57 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-ay', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog']
Jul  9 09:44:57 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:57 na-mut-xen-03 SM: [3407716] ['/usr/sbin/cbt-util', 'get', '-n', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog', '-b']
Jul  9 09:44:57 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:44:57 na-mut-xen-03 SM: [3407716] fuser /dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog =&gt; 1 / '' / ''
Jul  9 09:44:59 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893227.790063374'
Jul  9 09:44:59 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-an', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog']
Jul  9 09:44:59 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:45:00 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893228.82935698'
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716] ['/sbin/dmsetup', 'status', 'VG_XenStorage--5301ae76--31fd--9ff0--7d4c--65c8b1ed8f89-54bc2594--5228--411a--a4b2--cc1a7502d9a4.cbtlog']
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716] lock: released /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716] Size of bitmap: 1638400
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716] lock: acquired /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716] LVMCache: refreshing
Jul  9 09:45:00 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893229.259729804'
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716] ['/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89']
Jul  9 09:45:00 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:45:01 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893230.644242194'
Jul  9 09:45:01 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-ay', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog']
Jul  9 09:45:02 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:45:02 na-mut-xen-03 SM: [3407716] ['/usr/sbin/cbt-util', 'get', '-n', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog', '-c']
Jul  9 09:45:02 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:45:02 na-mut-xen-03 SM: [3407716] fuser /dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog =&gt; 1 / '' / ''
Jul  9 09:45:02 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893231.488289557'
Jul  9 09:45:02 na-mut-xen-03 SM: [3407716] ['/sbin/lvchange', '-an', '/dev/VG_XenStorage-5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/54bc2594-5228-411a-a4b2-cc1a7502d9a4.cbtlog']
Jul  9 09:45:03 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:45:04 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893233.069490829'
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] ['/sbin/dmsetup', 'status', 'VG_XenStorage--5301ae76--31fd--9ff0--7d4c--65c8b1ed8f89-54bc2594--5228--411a--a4b2--cc1a7502d9a4.cbtlog']
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   pread SUCCESS
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] lock: released /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:45:04 na-mut-xen-03 fairlock[3949]: /run/fairlock/devicemapper sent '3407716 - 1893233.110222368'
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] Raising exception [460, Failed to calculate changed blocks for given VDIs. [opterr=Source and target VDI are unrelated]]
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] ***** generic exception: vdi_list_changed_blocks: EXCEPTION &lt;class 'xs_errors.SROSError'&gt;, Failed to calculate changed blocks for given VDIs. [opterr=Source and target VDI are unrelated]
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/SRCommand.py", line 113, in run
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     return self._run_locked(sr)
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/SRCommand.py", line 163, in _run_locked
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     rv = self._run(sr, target)
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/SRCommand.py", line 333, in _run
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     return target.list_changed_blocks()
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/VDI.py", line 761, in list_changed_blocks
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     "Source and target VDI are unrelated")
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] ***** LVHD over iSCSI: EXCEPTION &lt;class 'xs_errors.SROSError'&gt;, Failed to calculate changed blocks for given VDIs. [opterr=Source and target VDI are unrelated]
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/SRCommand.py", line 392, in run
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     ret = cmd.run(sr)
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/SRCommand.py", line 113, in run
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     return self._run_locked(sr)
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/SRCommand.py", line 163, in _run_locked
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     rv = self._run(sr, target)
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/SRCommand.py", line 333, in _run
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     return target.list_changed_blocks()
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]   File "/opt/xensource/sm/VDI.py", line 761, in list_changed_blocks
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]     "Source and target VDI are unrelated")
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716]
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] lock: closed /var/lock/sm/9fae176c-2c5f-4fd1-91fd-9bdb32533795/cbtlog
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] lock: closed /var/lock/sm/54bc2594-5228-411a-a4b2-cc1a7502d9a4/cbtlog
Jul  9 09:45:04 na-mut-xen-03 SM: [3407716] lock: closed /var/lock/sm/5301ae76-31fd-9ff0-7d4c-65c8b1ed8f89/sr
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/95110</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/95110</guid><dc:creator><![CDATA[Razor_648]]></dc:creator><pubDate>Wed, 09 Jul 2025 09:55:28 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Wed, 09 Jul 2025 09:47:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/razor_648" aria-label="Profile: Razor_648">@<bdi>Razor_648</bdi></a> Do you have any exceptions in your /var/log/SMlog files?</p>
]]></description><link>https://xcp-ng.org/forum/post/95109</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/95109</guid><dc:creator><![CDATA[ronan-a]]></dc:creator><pubDate>Wed, 09 Jul 2025 09:47:53 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Wed, 09 Jul 2025 09:38:44 GMT]]></title><description><![CDATA[<p dir="auto">Pinging <a class="plugin-mentions-group plugin-mentions-a" href="/forum/groups/team-storage" aria-label="Profile: Team-Storage">@<bdi>Team-Storage</bdi></a></p>
]]></description><link>https://xcp-ng.org/forum/post/95108</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/95108</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 09 Jul 2025 09:38:44 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Wed, 09 Jul 2025 09:35:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello, I've migrated 200 VMs from an XCP-NG 8.2 cluster to 8.3 on new iSCSi SRs and I'm encountering quite a few VDIs to coalesce in my various SRs. As a result, I constantly have garbage collection tasks running in the background, taking several hours and restarting each time because there are always VDIs to coalesce. This also has a negative impact on my Vinchin backup jobs, which take a very long time (over 15 minutes to do a snapshot, for example).<br />
I've set the SR autoscan to false too to prevent this problem but nothing helps.</p>
<p dir="auto">I don't have this issue at all with my other 8.2 clusters, is it normal?</p>
]]></description><link>https://xcp-ng.org/forum/post/95105</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/95105</guid><dc:creator><![CDATA[Razor_648]]></dc:creator><pubDate>Wed, 09 Jul 2025 09:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Tue, 21 Jan 2025 22:42:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tristis-oris" aria-label="Profile: Tristis-Oris">@<bdi>Tristis-Oris</bdi></a> Do first verify you have good backups before considering deleting snapshots. You could also just export the snapshots associated with the VMs..<br />
As to the GUI vs. CLI, it should do the same thing, but if it runs, it should show up in the task list.</p>
]]></description><link>https://xcp-ng.org/forum/post/88630</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88630</guid><dc:creator><![CDATA[tjkreidl]]></dc:creator><pubDate>Tue, 21 Jan 2025 22:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Tue, 21 Jan 2025 07:25:52 GMT]]></title><description><![CDATA[<p dir="auto">I guess I'm a little confused.<br />
Probably, after fix all bad snapshots been removed, and now they are exist only for hatled (archive) VMs. They got backup only once with such job:<br />
<img src="/forum/assets/uploads/files/1737443857128-46bcdd5e-9eed-4fda-8a3c-ff5fe1be5842-image.png" alt="46bcdd5e-9eed-4fda-8a3c-ff5fe1be5842-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">so without backup tasks, GC for vdi chains not running. Is it safe to remove them manually, or better to run backup task again? (that very long and not required).</p>
]]></description><link>https://xcp-ng.org/forum/post/88557</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88557</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Tue, 21 Jan 2025 07:25:52 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Mon, 20 Jan 2025 18:13:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tjkreidl" aria-label="Profile: tjkreidl">@<bdi>tjkreidl</bdi></a> but that same scan as <img src="/forum/assets/uploads/files/1737396795203-ff71c9ec-d825-4f3b-8256-43299e950545-image.png" alt="ff71c9ec-d825-4f3b-8256-43299e950545-image.png" class="img-markdown  img-fluid" />  ?</p>
]]></description><link>https://xcp-ng.org/forum/post/88526</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88526</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Mon, 20 Jan 2025 18:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Mon, 20 Jan 2025 18:09:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tristis-oris" aria-label="Profile: Tristis-Oris">@<bdi>Tristis-Oris</bdi></a> By manually, do you mean from the CLI vs. from the GUI? If so, then:<br />
xe sr-scan sr-uuid=sr_uuid<br />
Check your logs (probably /var/log/SMlog) and run "xe task-list" to see what, if anything, is active.</p>
]]></description><link>https://xcp-ng.org/forum/post/88525</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88525</guid><dc:creator><![CDATA[tjkreidl]]></dc:creator><pubDate>Mon, 20 Jan 2025 18:09:03 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Mon, 20 Jan 2025 13:13:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tjkreidl" aria-label="Profile: tjkreidl">@<bdi>tjkreidl</bdi></a> nothing unusual.<br />
I found same issue on another 8.3 pool, another SR, but never seen related GC tasks. No exceptions at log.<br />
But no problems with 3rd 8.3 pool.</p>
<p dir="auto">SR scan don't trigger GC, can i run it manually?</p>
]]></description><link>https://xcp-ng.org/forum/post/88492</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88492</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Mon, 20 Jan 2025 13:13:09 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Mon, 20 Jan 2025 12:32:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tristis-oris" aria-label="Profile: Tristis-Oris">@<bdi>Tristis-Oris</bdi></a> It wouldn't hurt to do a manual cleanup. Not sure if a reboot might help, but strange that no task is showing as active. Do you have other SRs on which you can try a scan/coalesce?<br />
Are there any VMs in a weird power state?</p>
]]></description><link>https://xcp-ng.org/forum/post/88491</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88491</guid><dc:creator><![CDATA[tjkreidl]]></dc:creator><pubDate>Mon, 20 Jan 2025 12:32:25 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Mon, 20 Jan 2025 06:04:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/danp" aria-label="Profile: Danp">@<bdi>Danp</bdi></a> No, can't find any exceptions.<br />
that typical log for now, it repeating a lot of times:</p>
<pre><code>Jan 20 00:02:00 host SM: [2736362] Kicking GC
Jan 20 00:02:00 host SM: [2736362] Kicking SMGC@93d53646-e895-52cf-7c8e-df1d5e84f5e4...
Jan 20 00:02:00 host SM: [2736362] utilisation 40394752 &lt;&gt; 34451456
*
Jan 20 00:02:00 host SM: [2736362] VDIs changed on disk: ['34fa9f2d-95fa-468e-986c-ade22b92b1f3', '56b94e20-01ae-4da1-99f8-03aa901da64f', 'a75c6e7b-7f8d-4a4b-99$
Jan 20 00:02:00 host SM: [2736362] Updating VDI with location=34fa9f2d-95fa-468e-986c-ade22b92b1f3 uuid=34fa9f2d-95fa-468e-986c-ade22b92b1f3
*
Jan 20 00:02:00 host SM: [2736362] lock: released /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/sr
Jan 20 00:02:00 host SMGC: [2736466] === SR 93d53646-e895-52cf-7c8e-df1d5e84f5e4: gc ===
Jan 20 00:02:00 host SM: [2736466] lock: opening lock file /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/running
*
Jan 20 00:02:00 host SMGC: [2736466] Found 0 cache files
Jan 20 00:02:00 host SM: [2736466] lock: tried lock /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/sr, acquired: True (exists: True)
Jan 20 00:02:00 host SM: [2736466] ['/usr/bin/vhd-util', 'scan', '-f', '-m', '/var/run/sr-mount/93d53646-e895-52cf-7c8e-df1d5e84f5e4/*.vhd']
Jan 20 00:02:00 host SM: [2736614] lock: opening lock file /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/sr
Jan 20 00:02:00 host SM: [2736614] sr_update {'host_ref': 'OpaqueRef:3570b538-189d-6a16-fe61-f6d73cc545dc', 'command': 'sr_update', 'args': [], 'device_config':$
Jan 20 00:02:00 host SM: [2736614] lock: closed /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/sr
Jan 20 00:02:01 host SM: [2736466]   pread SUCCESS
*
Jan 20 00:02:01 host SMGC: [2736466] SR 93d5 ('VM Sol flash') (73 VDIs in 39 VHD trees):
Jan 20 00:02:01 host SMGC: [2736466]         *70119dcb(50.000G/45.497G?)
Jan 20 00:02:01 host SMGC: [2736466]             e6a3e53a(50.000G/107.500K?)
*
Jan 20 00:02:01 host SM: [2736466] lock: released /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/sr
Jan 20 00:02:01 host SMGC: [2736466] Got sm-config for *70119dcb(50.000G/45.497G?): {'vhd-blocks': 'eJzFlrFuwjAQhk/Kg5R36Ngq5EGQyJSsHTtUPj8WA4M3GDrwBvEEDB2yEaQQ$
*
Jan 20 00:02:01 host SMGC: [2736466] No work, exiting
Jan 20 00:02:01 host SMGC: [2736466] GC process exiting, no work left
Jan 20 00:02:01 host SM: [2736466] lock: released /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/gc_active
Jan 20 00:02:01 host SMGC: [2736466] In cleanup
Jan 20 00:02:01 host SMGC: [2736466] SR 93d5 ('VM Sol flash') (73 VDIs in 39 VHD trees): no changes
Jan 20 00:02:01 host SM: [2736466] lock: closed /var/lock/sm/93d53646-e895-52cf-7c8e-df1d5e84f5e4/running
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tjkreidl" aria-label="Profile: tjkreidl">@<bdi>tjkreidl</bdi></a> Free space is enough. I never see GC job running for a long, so never see it at other pools or after fix. Have no any coalesce in queue.<br />
<code>xe task-list</code> show nothing.</p>
<p dir="auto">Maybe i need to cleanup bad VDIs manually for first time?</p>
]]></description><link>https://xcp-ng.org/forum/post/88486</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88486</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Mon, 20 Jan 2025 06:04:15 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Sun, 19 Jan 2025 23:05:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tristis-oris" aria-label="Profile: Tristis-Oris">@<bdi>Tristis-Oris</bdi></a> Note that if the SR storage device is around 90% or more full, a coalesce may not work. You have to either delete or move then enough storage so that there is adequate free space.<br />
How full is the SR? That said, a coalesce process can take up to 24 hours to complete. I wonder if this shows up and with what progress when you run "xe task-list" ?</p>
]]></description><link>https://xcp-ng.org/forum/post/88480</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88480</guid><dc:creator><![CDATA[tjkreidl]]></dc:creator><pubDate>Sun, 19 Jan 2025 23:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Sun, 19 Jan 2025 20:42:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tristis-oris" aria-label="Profile: Tristis-Oris">@<bdi>Tristis-Oris</bdi></a> Check <code>SMlog</code> for further exceptions.</p>
]]></description><link>https://xcp-ng.org/forum/post/88479</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88479</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Sun, 19 Jan 2025 20:42:10 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Sun, 19 Jan 2025 19:07:38 GMT]]></title><description><![CDATA[<p dir="auto">2 days, few backup cycles, snapshots amount won't descrease.</p>
]]></description><link>https://xcp-ng.org/forum/post/88478</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88478</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Sun, 19 Jan 2025 19:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 17 Jan 2025 20:11:05 GMT]]></title><description><![CDATA[<p dir="auto">It will accelerate. First merges are the slowest ones, but then it's going faster and faster.</p>
]]></description><link>https://xcp-ng.org/forum/post/88420</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88420</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 20:11:05 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 17 Jan 2025 20:09:52 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> got it. Will see what happens in few days.</p>
]]></description><link>https://xcp-ng.org/forum/post/88419</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88419</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Fri, 17 Jan 2025 20:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 17 Jan 2025 20:08:49 GMT]]></title><description><![CDATA[<p dir="auto">The GC is doing one chain after another. We told XenServer team back in 2016 that it could probably merge multiple chains at once, but they told us it was too risky. So we did not focus on that. Patience is key there. Clearly, we'll do better in the future.</p>
]]></description><link>https://xcp-ng.org/forum/post/88418</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88418</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 20:08:49 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 17 Jan 2025 20:07:11 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> is it some limit for items removal per run?</p>
]]></description><link>https://xcp-ng.org/forum/post/88415</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88415</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Fri, 17 Jan 2025 20:07:11 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 17 Jan 2025 19:59:53 GMT]]></title><description><![CDATA[<p dir="auto">Good, so it is working <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/88413</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88413</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 19:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to SR Garbage Collection running permanently on Fri, 17 Jan 2025 18:47:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tristis-oris" aria-label="Profile: Tristis-Oris">@<bdi>Tristis-Oris</bdi></a> GC done, ~5 items removed, ~20 left.</p>
]]></description><link>https://xcp-ng.org/forum/post/88391</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88391</guid><dc:creator><![CDATA[Tristis Oris]]></dc:creator><pubDate>Fri, 17 Jan 2025 18:47:17 GMT</pubDate></item></channel></rss>