Hello together,
I just started to code with the Ontap Powershell Module. I want to know, is there a way, to automatically create the destination volume for the snapmirror relation?
I tried it with the following:
for($i=0; $i -le ($VolsToCreate).Count; $i++){
$vServerForSnapmirror = ($VolsToCreate).vServer[$i]
New-NcSnapmirror -SourceVserver ($VolsToCreate).Vserver[$i] -DestinationVserver $DestinationvServerName -SourceVolume ($VolsToCreate).Name[$i] -DestinationVolume ($SnapMirrorDestinatioNVols).Name[$i] -RelationshipType XDP -CreateDestination $true
}
But it seems that $true is not working and the error I receive is not helping either. The error says that I should write down a valid command of type DataONTAP.C.Types.Snapmirror.CreateDestination
I also tried to create the volumes manually but I cant create volume of type DP which is a problem.
Maybe some of you can help me.
Best regards
Kai