<?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: Creating SVMDR snapmirror relationship with PowerShell in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160702#M6247</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running the command did you include the ":" after the SVM name as listed below based on your commnad; i can see based on the example you tried that by adding it on the destination side only:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;New-NcSnapmirror -Destination svm_nam-pdtst01: -Controller NA1-FAS01 -SourceVserver svm_nam-pdtst01_rep:&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;-SourceCluster NA2-FAS01 -Type XDP -schedule 5min -Policy $pol -PreserveIdentity&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 08:28:57 GMT</pubDate>
    <dc:creator>hmoubara</dc:creator>
    <dc:date>2020-10-27T08:28:57Z</dc:date>
    <item>
      <title>Creating SVMDR snapmirror relationship with PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160609#M6245</link>
      <description>&lt;P&gt;I am trying to create a script that will create a snapmirror relationship for an SVMDR environment I cannot seem to get the New-NcSnapmirror command to cooperate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This version keeps asking for the volumes.&lt;/P&gt;
&lt;P&gt;New-NcSnapmirror -DestinationVserver svm_nam-pdtst01 -Controller NA1-FAS01 -SourceVserver svm_nam-pdtst01_rep -SourceCluster NA2-FAS01 -Type XDP -schedule 5min -Policy $pol -PreserveIdentity&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This version just bombs no matter how I configure it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New-NcSnapmirror -Destination svm_nam-pdtst01: -Controller NA1-FAS01 -SourceVserver svm_nam-pdtst01_rep -SourceCluster NA2-FAS01 -Type XDP -schedule 5min -Policy $pol -PreserveIdentity&lt;BR /&gt;New-NcSnapmirror : Parameter set cannot be resolved using the specified named parameters.&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ New-NcSnapmirror -Destination svm_nam-pdtst01: -Controller NA1-FAS01 ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidArgument: (:) [New-NcSnapmirror], ParameterBindingException&lt;BR /&gt;+ FullyQualifiedErrorId : AmbiguousParameterSet,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapmirror.NewNcSnapmirror&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As always any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:47:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160609#M6245</guid>
      <dc:creator>Andrew7193</dc:creator>
      <dc:date>2025-06-04T10:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SVMDR snapmirror relationship with PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160702#M6247</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running the command did you include the ":" after the SVM name as listed below based on your commnad; i can see based on the example you tried that by adding it on the destination side only:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;New-NcSnapmirror -Destination svm_nam-pdtst01: -Controller NA1-FAS01 -SourceVserver svm_nam-pdtst01_rep:&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;-SourceCluster NA2-FAS01 -Type XDP -schedule 5min -Policy $pol -PreserveIdentity&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 08:28:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160702#M6247</guid>
      <dc:creator>hmoubara</dc:creator>
      <dc:date>2020-10-27T08:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SVMDR snapmirror relationship with PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160888#M6255</link>
      <description>&lt;P&gt;I am sorry about the delay. I thought I had added the ":" after the source SVM name but I tried it just now and I get the same error. It does not like the ":" and if you leave it off it asks for the volumes. The -SourceVolume parameter does not take wildcards either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 12:19:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160888#M6255</guid>
      <dc:creator>Andrew7193</dc:creator>
      <dc:date>2020-11-02T12:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SVMDR snapmirror relationship with PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160889#M6256</link>
      <description>&lt;P&gt;Another interesting thing. When you look at Get-Help for the command for the -source parameter it says:&lt;/P&gt;
&lt;P&gt;-Source &amp;lt;String&amp;gt;&lt;BR /&gt;Specifies the source endpoint of the SnapMirror relationship in the format: [cluster:]//vserver/volume. This format may change in the future. &lt;STRONG&gt;When specifying a source endpoint, you must use either the source location&lt;/STRONG&gt;, or the source cluster, source vserver, and source volume.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I look an an existing snapmirror SVMDR configuration I see this value:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SourceLocation&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;DestinationLocation&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status&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;MirrorState&lt;BR /&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; &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; -----------&lt;BR /&gt;svm_nam-pdtst01:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;svm_nam-pdtst01_rep:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; idle&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; snapmirrored&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then tried the command using -Source and -Destination but I still get the same error. Now I am trying to track down how to refer to the source location and if it is even the same in this command as the value return in the Get-Snapmirror command.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 02 Nov 2020 12:33:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160889#M6256</guid>
      <dc:creator>Andrew7193</dc:creator>
      <dc:date>2020-11-02T12:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SVMDR snapmirror relationship with PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160896#M6257</link>
      <description>&lt;P&gt;OK I figured it out. When I got the error using -Source and -Destination what the error was saying was "Who do I action this on" I had forgotten the controller parameter. So this works:&lt;/P&gt;
&lt;P&gt;New-NcSnapmirror -Controller $n1fas -Source svm_nam-pdtst01_rep: -Destination svm_nam-pdtst01: -type dp -Schedule 5min -Policy svm_nam-pdtst01_rep_policy -PreserveIdentity&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recap:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To script a snapmirror relationship using SVMDR you need to use the -Source and -Destination parameters and end the VSM names with a colon ":".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:36:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-SVMDR-snapmirror-relationship-with-PowerShell/m-p/160896#M6257</guid>
      <dc:creator>Andrew7193</dc:creator>
      <dc:date>2020-11-02T14:36:44Z</dc:date>
    </item>
  </channel>
</rss>

