<?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: ConvertTo-NcVhd not working in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVhd-not-working/m-p/62096#M3078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, so nobody ?&lt;/P&gt;&lt;P&gt;ps : using the latest toolkit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 09:17:07 GMT</pubDate>
    <dc:creator>jeromerichard</dc:creator>
    <dc:date>2014-03-17T09:17:07Z</dc:date>
    <item>
      <title>ConvertTo-NcVhd not working</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVhd-not-working/m-p/62092#M3077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we are realigning all our VHD from a HyperV R2 cluster. 6 Windows 2008 r2 cluster farm connected to 6 NetApp Luns and using CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our NetApp system consist of 4 2240 installed with Data Ontap cluster mode 8.1.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I succeed into connecting to the Cluster using this powershell command :&lt;/P&gt;&lt;P&gt;$vserver=Connect-NcController myNetappcluster -Credential admin -Vserver myVserver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I succeed into seeing if VHD is aligned or not using this command :&lt;/P&gt;&lt;P&gt;Get-NcVirtualDiskAlignment C:\ClusterStorage\VolumeX\MyVM\fixed_c.vhd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I succeed into realigning the VHD using this command :&lt;/P&gt;&lt;P&gt;Repair-NcVirtualDiskAlignment -VirtualDisk C:\ClusterStorage\VolumeX\MyVM\fixed_c.vhd -Controller $vserver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i DONT succeed using powershell to convert Dynamic VHD into Fixed VHD using this command :&lt;/P&gt;&lt;P&gt;ConvertTo-NcVhd -SourceVhd C:\ClusterStorage\VolumeX\MyVM\dynamic_c.vhd -DestinationVhd C:\ClusterStorage\VolumeX\MyVM\fixed_c.vhd -Controller $vserver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got an error message :&lt;/P&gt;&lt;P&gt;ConvertTo-NaVhd : Source and destination files must reside on the same controller.&lt;/P&gt;&lt;P&gt;Au niveau de ligne : 1 Caractère : 16&lt;/P&gt;&lt;P&gt;+ ConvertTo-NcVhd &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; -DestinationVhd "C:\ClusterStorage\VolumeX\MyVM\fixed_c.vhd" -SourceVhd "C:\ClusterStorage\VolumeX\MyVM\dynamic_c.vhd" -ForceHostCopy&lt;/P&gt;&lt;P&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; : InvalidArgument: (:) [ConvertTo-NaVhd], ArgumentException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : Could not set up sis clone operation,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.ConvertToNaVhd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried many other parameters, resulting the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot : we are using Data ONTAP PowerShell Toolkit, version 3.0.1.101&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:41:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVhd-not-working/m-p/62092#M3077</guid>
      <dc:creator>jeromerichard</dc:creator>
      <dc:date>2025-06-05T05:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertTo-NcVhd not working</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVhd-not-working/m-p/62096#M3078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, so nobody ?&lt;/P&gt;&lt;P&gt;ps : using the latest toolkit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 09:17:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVhd-not-working/m-p/62096#M3078</guid>
      <dc:creator>jeromerichard</dc:creator>
      <dc:date>2014-03-17T09:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertTo-NcVhd not working</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVhd-not-working/m-p/62101#M3079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, i finally sorted out my case with the help of Beam in private messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, since my hypervisor cluster farm doesnt have access to the Netapp Cluster Management interface, but only to iSCSI LIFs i use a Linux machine as a "gateway" with SOCAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was that when i made the following :&lt;/P&gt;&lt;P&gt;$vserver=Connect-NcController mycluster -Credential admin -Vserver myvserver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the $vserver.Address was an IP address going to the gateway and not the IP Address of the real vServer or Netapp Cluster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, setting $verver.Address='my Netapp Cluster management IP' made the &lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;ConvertTo-NcVhd&lt;/SPAN&gt; cmdlet to work fine.&lt;/P&gt;&lt;P&gt;I think Beam is looking to modify the cmdlet for next version for taking care of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main goal was to realign all my VHDs, so my final script may look like that (for information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# connect&lt;/P&gt;&lt;P&gt;$vserver=Connect-NcController mycluster -Credential admin -Vserver myvserver&lt;/P&gt;&lt;P&gt;$verver.Address='my Netapp Cluster management IP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# convert to fixed&lt;/P&gt;&lt;P&gt;ConvertTo-NcVhd -SourceVhd C:\ClusterStorage\VolumeX\MyVM\dynamic_c.vhd -DestinationVhd C:\ClusterStorage\VolumeX\MyVM\fixed_c.vhd -Controller $vserver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# eventually resize&lt;BR /&gt;# Set-NcVirtualDiskSize C:\ClusterStorage\VolumeX\MyVM\fixed_c.vhd 50g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# fix alignment&lt;/P&gt;&lt;P&gt;Repair-NcVirtualDiskAlignment -VirtualDisk C:\ClusterStorage\VolumeX\MyVM\fixed_c.vhd -Controller $vserver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# dont forget to delete the fixed_c.bkup file if the VM is working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:39:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/ConvertTo-NcVhd-not-working/m-p/62101#M3079</guid>
      <dc:creator>jeromerichard</dc:creator>
      <dc:date>2014-03-21T13:39:54Z</dc:date>
    </item>
  </channel>
</rss>

