<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results for 'app:weblogs' matching tags 'troubleshooting', 'tip', and 'VSS'</title><link>http://msmvps.com/search/SearchResults.aspx?q=app:weblogs&amp;tag=troubleshooting,tip,VSS&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:weblogs' matching tags 'troubleshooting', 'tip', and 'VSS'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Unable to Compact a VHD Due to a File System Limitation</title><link>http://msmvps.com/blogs/expta/archive/2010/06/24/unable-to-compact-a-vhd-due-to-a-file-system-limitation.aspx</link><pubDate>Thu, 24 Jun 2010 05:00:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1772627</guid><dc:creator>Anonymous</dc:creator><description>&lt;div class="separator" style="clear:both;text-align:center;"&gt;&lt;a href="http://4.bp.blogspot.com/_IsItvsG4t0k/TCQsxZOjhaI/AAAAAAAAFzk/xYPrJX6VOWo/s1600/VHD+Failed+to+Compact.png" style="margin-left:1em;margin-right:1em;"&gt;&lt;img border="0" height="211" src="http://4.bp.blogspot.com/_IsItvsG4t0k/TCQsxZOjhaI/AAAAAAAAFzk/xYPrJX6VOWo/s400/VHD+Failed+to+Compact.png" width="400" alt="" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;You may get the following error when attempting to compact a Hyper-V virtual hard disk (VHD):&lt;br /&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;span style="background-color:#f3f3f3;font-family:&amp;#39;Trebuchet MS&amp;#39;, sans-serif;"&gt;The system failed to compact &lt;em&gt;disk.vhd&lt;/em&gt;. Error Code: The requested operation could not be completed due to a file system limitation&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;This can be happen for several of reasons.&amp;nbsp; &lt;br /&gt;&lt;ol&gt;&lt;li&gt;Windows Server 2008 R2 does not support hosting VHDs on compressed NTFS volumes. See the article, &lt;a href="http://blogs.technet.com/b/ranjanajain/archive/2010/03/23/virtual-hard-disk-vhd-architecture-explained.aspx" target="_blank"&gt;&lt;strong&gt;Virtual Hard Disk (VHD) Architecture Explained&lt;/strong&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The NTFS volume where the VHD resides is&amp;nbsp;very heavily fragmented.&amp;nbsp; See Microsoft&amp;nbsp;&lt;a href="http://support.microsoft.com/kb/967351" target="_blank"&gt;KB967351&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;Both of these scenarios are fairly well explained, but I also came across another reason this can happen.&amp;nbsp; You cannot compact a VHD where the VHD contains a VSS backup.&lt;br /&gt;&lt;br /&gt;The VHD in question was an Exchange 2010 data volume where I had run an Exchange-aware VSS backup using the native Windows Server Backup utility.&amp;nbsp; See my article, &lt;strong&gt;&lt;a href="http://www.expta.com/2009/10/how-to-backup-exchange-2010-rtm-at.html"&gt;How to Backup Exchange 2010 RTM at Release Timeframe&lt;/a&gt;&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;In order to compact the VHD, all VSS shadows must be deleted from the VHD volume within the VM.&amp;nbsp; This can be done by running the vssadmin utility, as such:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="background-color:#f3f3f3;font-family:&amp;#39;Trebuchet MS&amp;#39;, sans-serif;"&gt;&lt;strong&gt;vssadmin delete shadows /all&lt;/strong&gt;&lt;/span&gt;&lt;/blockquote&gt;Now you can compact the VHD to reduce the physical size of the VHD file and regain space on the Hyper-V host.&lt;div class="blogger-post-footer"&gt;Did you find this information useful? Post a comment and share it with others!&lt;img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/798194812750898417-5158500379122145786?l=www.expta.com" alt="" /&gt;&lt;/div&gt;</description></item></channel></rss>