<?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[Cleanup orphans backups]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have a backup plan which backups all vms with a tag: backup=yes ( exemple ) to a NFS remote.</p>
<p dir="auto">The backups appear in the Health section, and then, i click on delete ( to cleanup the space ).</p>
<p dir="auto">But ... nothing is deleted on the remote.</p>
<p dir="auto">the only things i can found a list of directory to clean in the xen-orchestra logs</p>
<pre><code>xen-orchestra  | 2026-09-26T15:32:05.190Z xo:backup-archive INFO you could delete orphan VDI directory {
xen-orchestra  |   path: '/xo-vm-backups/e92f154d-0b9d-2c69-fb04-d8bf58b6e8f0/vdis/756c7d04-3b06-4b5d-b66d-b6ef6c4d53b1/e9228694-76f1-43e9-9e2e-18a1c91f5a01'
xen-orchestra  | }
</code></pre>
<p dir="auto">Why XO doesn't clean the data in the remote ?</p>
<p dir="auto">And now, how to make it clean ? ( i upgraded the xo, and then, i don't have my previous logs which mentions the list of directory to clean )</p>
<p dir="auto">Thanks !</p>
]]></description><link>https://xcp-ng.org/forum/topic/12495/cleanup-orphans-backups</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 08:34:35 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12495.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Sep 2026 15:46:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cleanup orphans backups on Mon, 05 Oct 2026 07:53:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/johnnezero" aria-label="Profile: johnnezero">@<bdi>johnnezero</bdi></a> You can use the docs directly in /rest/v0/docs. You just have to connect and fill in the uuid you need. It will work <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/108876</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108876</guid><dc:creator><![CDATA[pierrebrunet]]></dc:creator><pubDate>Mon, 05 Oct 2026 07:53:22 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Fri, 02 Oct 2026 18:40:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/pierrebrunet" aria-label="Profile: pierrebrunet">@<bdi>pierrebrunet</bdi></a> Thanks for the update.<br />
So is there any way to run the reclaimSpace function (i.e from the XO CLI or something, without having to build a whole REST API application or whatever that involves)?</p>
]]></description><link>https://xcp-ng.org/forum/post/108865</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108865</guid><dc:creator><![CDATA[johnnezero]]></dc:creator><pubDate>Fri, 02 Oct 2026 18:40:17 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Thu, 01 Oct 2026 11:59:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/johnnezero" aria-label="Profile: johnnezero">@<bdi>johnnezero</bdi></a> Hi,<br />
Sorry, it seems it is only in Rest API for now:<br />
You can check it here:</p>
<pre><code>&lt;xoa-url&gt;/rest/v0/docs/#/backup-repositories/ReclaimSpaceBackupRepository
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/108801</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108801</guid><dc:creator><![CDATA[pierrebrunet]]></dc:creator><pubDate>Thu, 01 Oct 2026 11:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Thu, 01 Oct 2026 11:18:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/pierrebrunet" aria-label="Profile: pierrebrunet">@<bdi>pierrebrunet</bdi></a> FYI: I ran the XOA upgrade to v6.8.2, but not seeing anything named "reclaimSpace" anywhere (other than the Backup &gt; Health &gt; Detached backups" section which doesn't really seem to recover much space).  Am I missing something?</p>
]]></description><link>https://xcp-ng.org/forum/post/108797</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108797</guid><dc:creator><![CDATA[johnnezero]]></dc:creator><pubDate>Thu, 01 Oct 2026 11:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Thu, 01 Oct 2026 08:31:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/johnnezero" aria-label="Profile: johnnezero">@<bdi>johnnezero</bdi></a> It just came out with the release... now <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /><br />
Just one thing, you may have empty directories even after the reclaimSpace task but they should be empty</p>
]]></description><link>https://xcp-ng.org/forum/post/108783</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108783</guid><dc:creator><![CDATA[pierrebrunet]]></dc:creator><pubDate>Thu, 01 Oct 2026 08:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Wed, 30 Sep 2026 18:33:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/pierrebrunet" aria-label="Profile: pierrebrunet">@<bdi>pierrebrunet</bdi></a> Just wondering if you know how soon the "reclaimSpace" option should be available,  and where exactly can you find it when it is ready?<br />
Thank you in advance for any information...</p>
]]></description><link>https://xcp-ng.org/forum/post/108776</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108776</guid><dc:creator><![CDATA[johnnezero]]></dc:creator><pubDate>Wed, 30 Sep 2026 18:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Tue, 29 Sep 2026 07:03:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/henri9813" aria-label="Profile: henri9813">@<bdi>henri9813</bdi></a> Hi,<br />
There should be a new "reclaimSpace" in next release which help you to clean repositories.</p>
<p dir="auto">Just to let you know, we prefer to not remove orphan backups in case a VM removal is accidental and you want to bring back it from a backup repository</p>
]]></description><link>https://xcp-ng.org/forum/post/108736</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108736</guid><dc:creator><![CDATA[pierrebrunet]]></dc:creator><pubDate>Tue, 29 Sep 2026 07:03:31 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Mon, 28 Sep 2026 14:54:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/poddingue" aria-label="Profile: poddingue">@<bdi>poddingue</bdi></a></p>
<p dir="auto">Thanks for your investigation, this confirm my guess.</p>
<p dir="auto">I removed them manually to reclaim disk space.</p>
<p dir="auto">But in my opinion, the health should detect "useless directory". in the vdi directories. But this is "required" only if the backup metadata was clean without the directory cleaned.</p>
]]></description><link>https://xcp-ng.org/forum/post/108724</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108724</guid><dc:creator><![CDATA[henri9813]]></dc:creator><pubDate>Mon, 28 Sep 2026 14:54:43 GMT</pubDate></item><item><title><![CDATA[Reply to Cleanup orphans backups on Mon, 28 Sep 2026 12:46:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/henri9813" aria-label="Profile: henri9813">@<bdi>henri9813</bdi></a>, from what I can read in the XO source, that log line is only informational right now. <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f937.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--shrug" style="height:1.4em;width:auto;vertical-align:middle" title=":shrug:" alt="🤷" /></p>
<p dir="auto">The code that finds those folders logs "you could delete orphan VDI directory", but the actual removal is still a TODO, so nothing gets cleaned on the remote automatically (<a href="https://github.com/vatesfr/xen-orchestra/blob/master/@xen-orchestra/backup-archive/src/disks/index.mjs#L96-L99" target="_blank" rel="noopener noreferrer nofollow ugc">here's the spot</a>).</p>
<p dir="auto">My guess, and I haven't checked what the Health delete button calls exactly, is that it removes the backup metadata and counts on that same cleanup to take the disk folders away.<br />
That would explain why the space never comes back.<br />
I don't know whether it's safe to remove those <code>vdis/...</code> folders by hand, so I'd rather not tell you to <code>rm</code> anything.</p>
<p dir="auto">Might be worth a mention to <a class="plugin-mentions-group plugin-mentions-a" href="/forum/groups/team-xo-backend" aria-label="Profile: Team-XO-Backend">@<bdi>Team-XO-Backend</bdi></a>, they'll know if there's a supported way to clear them.</p>
]]></description><link>https://xcp-ng.org/forum/post/108710</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108710</guid><dc:creator><![CDATA[poddingue]]></dc:creator><pubDate>Mon, 28 Sep 2026 12:46:28 GMT</pubDate></item></channel></rss>