<?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 ConvertTo-NcVmdk inside LUN Errors in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVmdk-inside-LUN-Errors/m-p/142638#M5848</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to convert a Microsoft Hyper-V VHDX file residing inside a NetApp LUN to a VMWare vSphere VMDK file which should reside inside the same lun. I am connected directly to the SVM which owns the respective volumes/luns.&lt;/P&gt;
&lt;P&gt;ONTAP Toolkit Version is 4.4.0.0 and ONTAP Version is 9.4 GA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the official POSH Toolkit Help it should be possible to convert VHDX files directly inside a LUN:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"The source and destination files must reside inside of a Data ONTAP volume &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; (accessed using a path starting with /vol/&amp;lt;volname&amp;gt;), a Data ONTAP attached &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; LUN, or a Data ONTAP CIFS share (accessed using a mapped network drive or a &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; UNC path starting with \\hostname\&amp;lt;share&amp;gt;). The source and destination &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; files must reside on the same controller and volume."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the following commands and get the error messages "Failed to get file info" or "SCSI command failed: Illegal request, ASC = 21, ASCQ = 0" depending which path I choose:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;PS C:\&amp;gt; ConvertTo-NcVmdk -SourceVhdx '/vol/cbc_hyperv_cl03_csv04/cbc_hyperv_cl03_csv04.lun/CBC_SK_NANO_01/Virtual Hard Disks/CBC-SK-NANO-01.VHDX' -DestinationVmdk '/vol/cbc_hyperv_cl03_csv04/cbc_hyperv_cl03_csv04.lun/Conversion/CBC-SK-NANO-01.VMDK' -SnapshotName PROD_cbc-hyperv-cl03_07-23-2018_04.30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;ConvertTo-NcVmdk : Failed to get file info&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;At line:1 char:1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ConvertTo-NcVmdk -SourceVhdx '/vol/cbc_hyperv_cl03_csv04/cbc_hyperv_c ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + CategoryInfo : NotSpecified: (:)&amp;nbsp;[ConvertTo-NaVmdk], IOException&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + FullyQualifiedErrorId : System.IO.IOException,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.ConvertToNaVmdk&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;PS C:\&amp;gt; ConvertTo-NcVmdk -SourceVhdx 'C:\ClusterStorage\SVM_CUBA_SAN_CSV04\CBC_SK_NANO_01\Virtual Hard Disks\CBC-SK-NANO-01.VHDX' -DestinationVmdk 'C:\ClusterStorage\SVM_CUBA_SAN_CSV04\Conversion\CBC-SK-NANO-01.VMDK' -SnapshotName PROD_cbc-hyperv-cl03_07-23-2018_04.30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Mode LastWriteTime Length Name&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;---- ------------- ------ ----&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;-a---- 9/11/2018 8:58 AM 341 CBC-SK-NANO-01.VMDK&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;ConvertTo-NcVmdk : SCSI command failed: Illegal request, ASC = 21, ASCQ = 0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;At line:1 char:1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ConvertTo-NcVmdk -SourceVhdx 'C:\ClusterStorage\SVM_CUBA_SAN_CSV04\CB ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + CategoryInfo : NotSpecified: (:) [ConvertTo-NaVmdk], Exception&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + FullyQualifiedErrorId : System.Exception,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.ConvertToNaVmdk&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help finding the problem is appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Sascha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:19:53 GMT</pubDate>
    <dc:creator>skuebart</dc:creator>
    <dc:date>2025-06-04T13:19:53Z</dc:date>
    <item>
      <title>ConvertTo-NcVmdk inside LUN Errors</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVmdk-inside-LUN-Errors/m-p/142638#M5848</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to convert a Microsoft Hyper-V VHDX file residing inside a NetApp LUN to a VMWare vSphere VMDK file which should reside inside the same lun. I am connected directly to the SVM which owns the respective volumes/luns.&lt;/P&gt;
&lt;P&gt;ONTAP Toolkit Version is 4.4.0.0 and ONTAP Version is 9.4 GA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the official POSH Toolkit Help it should be possible to convert VHDX files directly inside a LUN:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"The source and destination files must reside inside of a Data ONTAP volume &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; (accessed using a path starting with /vol/&amp;lt;volname&amp;gt;), a Data ONTAP attached &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; LUN, or a Data ONTAP CIFS share (accessed using a mapped network drive or a &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; UNC path starting with \\hostname\&amp;lt;share&amp;gt;). The source and destination &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; files must reside on the same controller and volume."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the following commands and get the error messages "Failed to get file info" or "SCSI command failed: Illegal request, ASC = 21, ASCQ = 0" depending which path I choose:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;PS C:\&amp;gt; ConvertTo-NcVmdk -SourceVhdx '/vol/cbc_hyperv_cl03_csv04/cbc_hyperv_cl03_csv04.lun/CBC_SK_NANO_01/Virtual Hard Disks/CBC-SK-NANO-01.VHDX' -DestinationVmdk '/vol/cbc_hyperv_cl03_csv04/cbc_hyperv_cl03_csv04.lun/Conversion/CBC-SK-NANO-01.VMDK' -SnapshotName PROD_cbc-hyperv-cl03_07-23-2018_04.30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;ConvertTo-NcVmdk : Failed to get file info&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;At line:1 char:1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ConvertTo-NcVmdk -SourceVhdx '/vol/cbc_hyperv_cl03_csv04/cbc_hyperv_c ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + CategoryInfo : NotSpecified: (:)&amp;nbsp;[ConvertTo-NaVmdk], IOException&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + FullyQualifiedErrorId : System.IO.IOException,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.ConvertToNaVmdk&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;PS C:\&amp;gt; ConvertTo-NcVmdk -SourceVhdx 'C:\ClusterStorage\SVM_CUBA_SAN_CSV04\CBC_SK_NANO_01\Virtual Hard Disks\CBC-SK-NANO-01.VHDX' -DestinationVmdk 'C:\ClusterStorage\SVM_CUBA_SAN_CSV04\Conversion\CBC-SK-NANO-01.VMDK' -SnapshotName PROD_cbc-hyperv-cl03_07-23-2018_04.30.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Mode LastWriteTime Length Name&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;---- ------------- ------ ----&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;-a---- 9/11/2018 8:58 AM 341 CBC-SK-NANO-01.VMDK&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;ConvertTo-NcVmdk : SCSI command failed: Illegal request, ASC = 21, ASCQ = 0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;At line:1 char:1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ConvertTo-NcVmdk -SourceVhdx 'C:\ClusterStorage\SVM_CUBA_SAN_CSV04\CB ...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + CategoryInfo : NotSpecified: (:) [ConvertTo-NaVmdk], Exception&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt; + FullyQualifiedErrorId : System.Exception,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.ConvertToNaVmdk&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help finding the problem is appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Sascha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:19:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVmdk-inside-LUN-Errors/m-p/142638#M5848</guid>
      <dc:creator>skuebart</dc:creator>
      <dc:date>2025-06-04T13:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertTo-NcVmdk inside LUN Errors</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVmdk-inside-LUN-Errors/m-p/142641#M5849</link>
      <description>&lt;P&gt;Hi Sascha,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your LUN a CSV volume for you Hyper-V cluster? If so have you tried flex cloning the volume\lun and mounting it to a single host (just for testing). Also what OS are you running the CmdLet from? Have you tried the same command from different (older) operating systems? Reason i mention it is because i've encountered the error "&lt;EM&gt;&lt;STRONG&gt;SCSI command failed: Illegal request, ASC = 21, ASCQ = 0&lt;/STRONG&gt;&lt;/EM&gt;" before. It is a SCSI error and the cmdlet "ConvertTo-NcVmdk" doesn't invoke any NetApp ZAPI's from the NMSK. I've read through the CmdLet source code and it's using win32 and SCSI methods. I suspect that over time as Microsoft have updated their operating systems and API's that this cmdlet stopped working due to changes at an Windows OS layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 10:37:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVmdk-inside-LUN-Errors/m-p/142641#M5849</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-09-11T10:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertTo-NcVmdk inside LUN Errors</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVmdk-inside-LUN-Errors/m-p/142642#M5850</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your input! Sounds like the ConvertTo-CMDLETs are a bit outdated&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://community.netapp.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Yes, my LUN is a CSV attached to three Windows Server 2016 Hyper-V Hosts&lt;/LI&gt;
&lt;LI&gt;Windows Build is Version 10.0.14393&lt;/LI&gt;
&lt;LI&gt;No, I haven't tried FlexCloning and Re-Attaching the LUN&lt;/LI&gt;
&lt;LI&gt;No, I haven't tried the command from an older OS (e.g. Windows 2012 or 2012 R2)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sascha&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 10:57:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVmdk-inside-LUN-Errors/m-p/142642#M5850</guid>
      <dc:creator>skuebart</dc:creator>
      <dc:date>2018-09-11T10:57:46Z</dc:date>
    </item>
  </channel>
</rss>

