<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error using Invoke-NaVirtualDiskSpaceReclaim on Server 2012 VHD &amp;amp; VHDX OS file in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-using-Invoke-NaVirtualDiskSpaceReclaim-on-Server-2012-VHD-amp-VHDX-OS-file/m-p/1032#M41</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed my problem thanks to your help! What had happen was the VHDX was located in a windows mount point to another drive which i found by using Get-NaHostDisk. After i found this, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I then found the original VHD attached and online as well as a few other copies attached but offline on the host. I removed the attached VHD's and deleted the temporary VHD / VHDX files the cmdlet had created previously. I then re-run the &lt;SPAN style="color: #454545; font-family: 'courier new', courier; background-color: #ffffff;"&gt;Invoke-NaVirtualDiskSpaceReclaim&lt;/SPAN&gt; cmdlet and pointed directly to the drive presented by netapp and all worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help Steven, if you should ever find yourself Down Under in Sydney, there is beer or two waiting for you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 06:49:45 GMT</pubDate>
    <dc:creator>PADMANTECH</dc:creator>
    <dc:date>2013-08-21T06:49:45Z</dc:date>
    <item>
      <title>Error using Invoke-NaVirtualDiskSpaceReclaim on Server 2012 VHD &amp; VHDX OS file</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-using-Invoke-NaVirtualDiskSpaceReclaim-on-Server-2012-VHD-amp-VHDX-OS-file/m-p/1021#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello good people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping someone could help me with an error i'm seeing when using the Invoke-NaVirtualDiskSpaceReclaim on a Server 2012 VHD &amp;amp; VHDX. The cmdlet works on other VHD / VHDX files and this is the first time i've come across this error after using it on many servers and connecting to the controller as root with toolkit version 3.0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PS D:\&amp;gt; Invoke-NaVirtualDiskSpaceReclaim "D:\HardDisk-01.vhd" -Verbose&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Reclaiming free space on virtual disk&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Are you sure you want to reclaim free space on virtual disk D:\HardDisk-01.vhd?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [?] Help (default is "Y"): y&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;VERBOSE: Making a copy of the virtual disk.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;VERBOSE: Attaching the virtual disk to the host&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;VERBOSE: Connecting to VDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;VERBOSE: Getting VHD provider&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;VERBOSE: Attaching VHD&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;VERBOSE: Getting volume details&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;VERBOSE: Getting user privileges&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;Invoke-NaVirtualDiskSpaceReclaim : CreateFile (open existing) failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (:) [Invoke-NaVirtualDiskSpaceReclaim], Exception&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : VhdDeleteFailed,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.InvokeNaVirtualDiskSpaceReclaim&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;VDisk successfully attached, but cannot be located&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (:) [Invoke-NaVirtualDiskSpaceReclaim], Exception&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : VdiskAttachFailed,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.InvokeNaVirtualDiskSpaceReclaim&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result from running the get alignment:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[PS D:\ &amp;gt; Get-NaVirtualDiskAlignment "D:\HardDisk-01.vhd"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; VirtualDisk: D:\HardDisk-01.vhd&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IsBootable&amp;nbsp;&amp;nbsp;&amp;nbsp; AbsoluteStartingLba&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsExtendedBootRecord&amp;nbsp; IsAligned&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;----------&amp;nbsp;&amp;nbsp;&amp;nbsp; -------------------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --------------------&amp;nbsp; ---------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 350 MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;False&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 718848&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40 GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has seen this before or has any suggestions on how i can diagnose this further i'd really appreciate your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:55:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-using-Invoke-NaVirtualDiskSpaceReclaim-on-Server-2012-VHD-amp-VHDX-OS-file/m-p/1021#M39</guid>
      <dc:creator>PADMANTECH</dc:creator>
      <dc:date>2025-06-05T05:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error using Invoke-NaVirtualDiskSpaceReclaim on Server 2012 VHD &amp; VHDX OS file</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-using-Invoke-NaVirtualDiskSpaceReclaim-on-Server-2012-VHD-amp-VHDX-OS-file/m-p/1026#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is interesting.&amp;nbsp; It looks like the cmdlet is unable to find the mounted VHD copy, then fails when trying to clean up (because the VHD copy actually is mounted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would check the following things:&amp;nbsp; Is the VHD copy (filename [GUID].vhd) still present in the D:\ directory?&amp;nbsp; If so, is it mounted?&amp;nbsp; Check if there is anything suspicious about the mounted VHD (ex: it's offline, not assigned a drive letter/mount point, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you find!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 15:02:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-using-Invoke-NaVirtualDiskSpaceReclaim-on-Server-2012-VHD-amp-VHDX-OS-file/m-p/1026#M40</guid>
      <dc:creator>beam</dc:creator>
      <dc:date>2013-08-20T15:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error using Invoke-NaVirtualDiskSpaceReclaim on Server 2012 VHD &amp; VHDX OS file</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-using-Invoke-NaVirtualDiskSpaceReclaim-on-Server-2012-VHD-amp-VHDX-OS-file/m-p/1032#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed my problem thanks to your help! What had happen was the VHDX was located in a windows mount point to another drive which i found by using Get-NaHostDisk. After i found this, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I then found the original VHD attached and online as well as a few other copies attached but offline on the host. I removed the attached VHD's and deleted the temporary VHD / VHDX files the cmdlet had created previously. I then re-run the &lt;SPAN style="color: #454545; font-family: 'courier new', courier; background-color: #ffffff;"&gt;Invoke-NaVirtualDiskSpaceReclaim&lt;/SPAN&gt; cmdlet and pointed directly to the drive presented by netapp and all worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help Steven, if you should ever find yourself Down Under in Sydney, there is beer or two waiting for you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 06:49:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-using-Invoke-NaVirtualDiskSpaceReclaim-on-Server-2012-VHD-amp-VHDX-OS-file/m-p/1032#M41</guid>
      <dc:creator>PADMANTECH</dc:creator>
      <dc:date>2013-08-21T06:49:45Z</dc:date>
    </item>
  </channel>
</rss>

