<?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[XCP-ng Shutdown Hangs When an SR Is Unavailable]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I’m using NUT on a Raspberry Pi to automatically shut down my infrastructure in the event of a power outage. The Raspberry Pi connects to my XCP-ng hosts via SSH and shuts it down via a SSH Command Restriction.</p>
<p dir="auto">While testing this setup, I noticed that XCP-ng can hang during shutdown if an SR is no longer available.</p>
<p dir="auto">For example, let’s say I have a VM running a Samba server that hosts ISO files. The XCP-ng host has an SR/repository configured to access those ISOs via the SMB share.</p>
<p dir="auto">When a shutdown is triggered, the VM hosting the Samba share is shut down first. As a result, the SMB share is no longer available. However, when the XCP-ng host itself tries to shut down, it appears to wait for the SMB repository instead of continuing with the shutdown.</p>
<p dir="auto">At the moment, I work around this by manually unplugging the SMB repositories when not in use.</p>
<p dir="auto">Is there a way to prevent XCP-ng from hanging when an SR becomes unavailable during shutdown or is there an alternative shutdown command or option that forces the host to shut down without waiting for the unavailable SR?</p>
<p dir="auto">Any help or suggestions would be greatly appreciated!</p>
<p dir="auto">Thank you in advance!</p>
]]></description><link>https://xcp-ng.org/forum/topic/12513/xcp-ng-shutdown-hangs-when-an-sr-is-unavailable</link><generator>RSS for Node</generator><lastBuildDate>Sun, 04 Oct 2026 23:03:03 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12513.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Oct 2026 21:07:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XCP-ng Shutdown Hangs When an SR Is Unavailable on Sun, 04 Oct 2026 22:10:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/divo" aria-label="Profile: Divo">@<bdi>Divo</bdi></a></p>
<p dir="auto">You would want to adjust your script to disable the smb share or put it in maintenance mode prior to shutting down.</p>
<p dir="auto">I ran into an issues for when I was shutting down a Remote just to save power - <a href="https://xcp-ng.org/forum/topic/12339/xo-unresponsive-when-remote-storage-is-offline.?_=1791151494204">https://xcp-ng.org/forum/topic/12339/xo-unresponsive-when-remote-storage-is-offline.?_=1791151494204</a></p>
<p dir="auto">It still didnt help with the unresponsivenes.  This was with a Backup Remote not a SR but enabled maintenance mode before shutdown and disable when back online.</p>
]]></description><link>https://xcp-ng.org/forum/post/108872</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108872</guid><dc:creator><![CDATA[acebmxer]]></dc:creator><pubDate>Sun, 04 Oct 2026 22:10:19 GMT</pubDate></item></channel></rss>