Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
cDOT Create new snapmirror relation using snapmirror-create API
2014-01-30
01:12 PM
3,184 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to create a perl script to create new snapmirror relations in clustered ONTAP 8.1.2
Below is the XML code i have built using "Zedi" tool.
I get an error while running this code:
results errno='13115' status='failed' reason='Element "source-cluster" within "snapmirror-create" has been excluded by another element.'/>
<snapmirror-create>
<destination-cluster>godzilla-mgmt</destination-cluster>
<destination-location>godzilla-mgmt://godzilla/voltron_voltron_0046r</destination-location>
<destination-volume>voltron_voltron_0046r</destination-volume>
<destination-vserver>godzilla</destination-vserver>
<relationship-type>data_protection</relationship-type>
<source-cluster>voltron-mgmt</source-cluster>
<source-location>voltron-mgmt://voltron/voltron_0046</source-location>
<source-volume>voltron_0046</source-volume>
<source-vserver>voltron</source-vserver>
<tries>8</tries>
<vserver>g</vserver>
</snapmirror-create>
Please guide what am i doing wrong above.
Solved! See The Solution
1 ACCEPTED SOLUTION
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The documentation for source-location states:
When specifying a source endpoint, you must use either the source location, or the source cluster, source Vserver, and source volume.
It's not worded very clearly, but you should either specify source-location (in the form of [cluster:]//vserver/volume), or specify source-cluster, source-vserver, and source-volume. Don't specify both groups.
The same is true for the destination-location element.
-Ben
1 REPLY 1
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The documentation for source-location states:
When specifying a source endpoint, you must use either the source location, or the source cluster, source Vserver, and source volume.
It's not worded very clearly, but you should either specify source-location (in the form of [cluster:]//vserver/volume), or specify source-cluster, source-vserver, and source-volume. Don't specify both groups.
The same is true for the destination-location element.
-Ben
