<?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 PowerShell Toolkit 4.6: Encounter errors trying to clone volumes across SVMs New-NcVolClone in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140555#M5771</link>
    <description>&lt;P&gt;According to the new Syntax&amp;nbsp; "&amp;nbsp;&amp;nbsp;&amp;nbsp; New-NcVolClone [-CloneVolume] &amp;lt;String&amp;gt; [-ParentVolume] &amp;lt;String&amp;gt; [-SpaceReserve &amp;lt;String&amp;gt;] [-JunctionPath &amp;lt;String&amp;gt;] [-JunctionActive &amp;lt;Boolean&amp;gt;] [-VolumeType &amp;lt;String&amp;gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-QosPolicyGroup &amp;lt;String&amp;gt;] [-CachingPolicy &amp;lt;String&amp;gt;] [-Option &amp;lt;String[]&amp;gt;] [-Comment &amp;lt;String&amp;gt;] [-Vserver &amp;lt;String&amp;gt;] [-ParentVserver &amp;lt;String&amp;gt;] [-VserverDrProtection &amp;lt;String&amp;gt;] [-Uid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Int64&amp;gt;] [-Gid &amp;lt;Int64&amp;gt;] [-VserverContext &amp;lt;String&amp;gt;] [-Controller &amp;lt;NcController[]&amp;gt;] [[-ParentSnapshot] &amp;lt;String&amp;gt;] [-ZapiRetryCount &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following commmand should be working&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; New-NcVolClone -VserverContext devnas -ParentVolume clone_test -ParentVserver stgnas -ParentSnapshot pad -CloneVolume clone_test_version46 -JunctionPath "/clone_test_version46" -JunctionActive $true -Vserver devnas -SpaceReserve none&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But It does not,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have encountered an error "New-NcVolClone : Extra input: junction-active; Extra input: junction-path&lt;/P&gt;
&lt;P&gt;At line:1 char:1&lt;/P&gt;
&lt;P&gt;+ New-NcVolClone -VserverContext devnas -ParentVolume clone_test -Paren ...&lt;/P&gt;
&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (dc1nas-mgmt:NcController) [New-NcVolClone], EINVALIDINPUTERROR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.NewNcVolClone".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if we take off&amp;nbsp; two parametters "-JunctionActive $true &lt;SPAN&gt;-JunctionPath "/clone_test_version46"&lt;/SPAN&gt;&amp;nbsp;from the command then it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you guys please advise the New-NcVolClone command works with its full parametters. if so, what will be the correct order to get everything in line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Mon, 28 May 2018 21:43:38 GMT</pubDate>
    <dc:creator>booroo</dc:creator>
    <dc:date>2018-05-28T21:43:38Z</dc:date>
    <item>
      <title>PowerShell Toolkit 4.6: Encounter errors trying to clone volumes across SVMs New-NcVolClone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140555#M5771</link>
      <description>&lt;P&gt;According to the new Syntax&amp;nbsp; "&amp;nbsp;&amp;nbsp;&amp;nbsp; New-NcVolClone [-CloneVolume] &amp;lt;String&amp;gt; [-ParentVolume] &amp;lt;String&amp;gt; [-SpaceReserve &amp;lt;String&amp;gt;] [-JunctionPath &amp;lt;String&amp;gt;] [-JunctionActive &amp;lt;Boolean&amp;gt;] [-VolumeType &amp;lt;String&amp;gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-QosPolicyGroup &amp;lt;String&amp;gt;] [-CachingPolicy &amp;lt;String&amp;gt;] [-Option &amp;lt;String[]&amp;gt;] [-Comment &amp;lt;String&amp;gt;] [-Vserver &amp;lt;String&amp;gt;] [-ParentVserver &amp;lt;String&amp;gt;] [-VserverDrProtection &amp;lt;String&amp;gt;] [-Uid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Int64&amp;gt;] [-Gid &amp;lt;Int64&amp;gt;] [-VserverContext &amp;lt;String&amp;gt;] [-Controller &amp;lt;NcController[]&amp;gt;] [[-ParentSnapshot] &amp;lt;String&amp;gt;] [-ZapiRetryCount &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following commmand should be working&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; New-NcVolClone -VserverContext devnas -ParentVolume clone_test -ParentVserver stgnas -ParentSnapshot pad -CloneVolume clone_test_version46 -JunctionPath "/clone_test_version46" -JunctionActive $true -Vserver devnas -SpaceReserve none&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But It does not,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have encountered an error "New-NcVolClone : Extra input: junction-active; Extra input: junction-path&lt;/P&gt;
&lt;P&gt;At line:1 char:1&lt;/P&gt;
&lt;P&gt;+ New-NcVolClone -VserverContext devnas -ParentVolume clone_test -Paren ...&lt;/P&gt;
&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (dc1nas-mgmt:NcController) [New-NcVolClone], EINVALIDINPUTERROR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.NewNcVolClone".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if we take off&amp;nbsp; two parametters "-JunctionActive $true &lt;SPAN&gt;-JunctionPath "/clone_test_version46"&lt;/SPAN&gt;&amp;nbsp;from the command then it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you guys please advise the New-NcVolClone command works with its full parametters. if so, what will be the correct order to get everything in line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 21:43:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140555#M5771</guid>
      <dc:creator>booroo</dc:creator>
      <dc:date>2018-05-28T21:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Toolkit 4.6: Encounter errors trying to clone volumes across SVMs New-NcVolClone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140576#M5774</link>
      <description>&lt;P&gt;Simplest solution would be to just leave off the two parameters, then junction the volume using the Mount-NcVol cmdlet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 14:00:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140576#M5774</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-29T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Toolkit 4.6: Encounter errors trying to clone volumes across SVMs New-NcVolClone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140608#M5780</link>
      <description>&lt;P&gt;I was thinking of that, but the point is why I was just following the New-NcVolClone syntax but it does not work? If so, NetApp should fix it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 09:25:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140608#M5780</guid>
      <dc:creator>booroo</dc:creator>
      <dc:date>2018-05-31T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Toolkit 4.6: Encounter errors trying to clone volumes across SVMs New-NcVolClone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140619#M5783</link>
      <description>&lt;P&gt;I believe this is a result of a documentation "bug".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are two different versions of the API which the New-NcVolClone cmdlet consumes, one at the cluster level and one at the SVM level.&amp;nbsp; The SVM level API uses the two parameters you're specifying (JunctionActive and JunctionPath), however the cluster level API does not.&amp;nbsp; When doing a cross-SVM volume clone the cluster level API must be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is how I believe the parameter sets for the two versions of the API should work...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# intra-SVM volume clone
New-NcVolClone 
    [-CloneVolume] &amp;lt;String&amp;gt; 
    [-ParentVolume] &amp;lt;String&amp;gt; 
    [[-ParentSnapshot] &amp;lt;String&amp;gt;] 
    [-SpaceReserve &amp;lt;String&amp;gt;] 
    [-JunctionPath &amp;lt;String&amp;gt;] 
    [-JunctionActive [&amp;lt;Boolean&amp;gt;]] 
    [-VolumeType &amp;lt;String&amp;gt;] 
    [-QosPolicyGroup &amp;lt;String&amp;gt;] 
    [-Comment &amp;lt;String&amp;gt;] 
    [-VserverDrProtection  &amp;lt;String&amp;gt;] 
    [-Uid &amp;lt;Int64&amp;gt;] 
    [-Gid &amp;lt;Int64&amp;gt;] 
    [-VserverContext &amp;lt;String&amp;gt;] 
    [-Controller &amp;lt;NcController[]&amp;gt;] 
    [-ZapiRetryCount &amp;lt;Int32&amp;gt;] 
    [&amp;lt;CommonParameters&amp;gt;]

# cross-SVM volume clone
New-NcVolClone 
    [-SpaceReserve &amp;lt;String&amp;gt;] 
    [-VolumeType &amp;lt;String&amp;gt;] 
    [-QosPolicyGroup &amp;lt;String&amp;gt;] 
    [-Vserver &amp;lt;String&amp;gt;] 
    [-CloneVolume] &amp;lt;String&amp;gt; 
    [-ParentVserver &amp;lt;String&amp;gt;] 
    [-ParentVolume] &amp;lt;String&amp;gt; 
    [[-ParentSnapshot] &amp;lt;String&amp;gt;] 
    [-Controller &amp;lt;NcController[]&amp;gt;] 
    [-ZapiRetryCount &amp;lt;Int32&amp;gt;] 
    [&amp;lt;CommonParameters&amp;gt;]&lt;/PRE&gt;
&lt;P&gt;The documentation for the New-NcVolClone cmdlet also includes two parameters, CachingPolicy and Option, which have no equivelant in the ONTAP 9.3 ZAPI docs.&amp;nbsp; This could mean a few things, the most likely is that those options existed in earlier versions of ZAPI and are still there&amp;nbsp;for legacy reasons, but could also be some "magic" happening in the cmdlet to apply additional options to the volume after it's cloned for convenience.&amp;nbsp; It could also simply be a(nother) documentation bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to create a bug for this issue.&amp;nbsp; If you are willing to PM me your mailing address, I'm happy to send you some stickers as a "bug bounty" : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 14:00:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140619#M5783</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-31T14:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Toolkit 4.6: Encounter errors trying to clone volumes across SVMs New-NcVolClone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140621#M5784</link>
      <description>&lt;P&gt;FYI, bug id is 1165240.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 14:09:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/140621#M5784</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-31T14:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Toolkit 4.6: Encounter errors trying to clone volumes across SVMs New-NcVolClone</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/430643#M6494</link>
      <description>&lt;P&gt;Gah, ran into this exact problem today, means I need an extra step to mount the vol&amp;nbsp; and specify the junction path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;grumble grumble&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for posting the explanation!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 00:19:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-Toolkit-4-6-Encounter-errors-trying-to-clone-volumes-across-SVMs-New/m-p/430643#M6494</guid>
      <dc:creator>OzStuV2</dc:creator>
      <dc:date>2022-01-06T00:19:02Z</dc:date>
    </item>
  </channel>
</rss>

