Microsoft Virtualization Discussions

How to create a Synchronous SnapMirror or StrictSync SnapMirror use new-snapmirror command?

AllenChang
1,745 Views

How to create a Synchronous Snapmirror or StrictSync Snapirror by using new-snapmirror command ?

is any example?

1 ACCEPTED SOLUTION

ansley_tj
1,694 Views

Try this...assuming the cluster, source and dest SVM and volume name variables are already created:

 


$smpolicy
= @{
"Source" = "$srcCluster://$srcSvmName/$srcVolumeName";  
"Destination" = "$dstCluster://$dstSvmName/$dstVolumeName";  
"Policy" = "StrictSync";
}  

New-NcSnapmirror @smpolicy

 

  

Thanks
Tony Ansley
I am a NetApp employee.

View solution in original post

2 REPLIES 2

Ontapforrum
1,693 Views

I don't know about the ps new-ncsnapmirror command, but here is the info for creating strict-sync via ontap CLI:

 

https://docs.netapp.com/us-en/ontap-cli-98//snapmirror-initialize.html#examples:

 

To create a strict SnapMirror Synchronous relationship between FlexVols vol_log and vol_log_sync_dp , to initialize it and bring it to InSync, type the following command:

 

vs2.example.com::> snapmirror initialize -destination-path vs2.example.com:vol_log_sync_dp -source-path vs1.example.com:vol_log -policy StrictSync

 

ansley_tj
1,695 Views

Try this...assuming the cluster, source and dest SVM and volume name variables are already created:

 


$smpolicy
= @{
"Source" = "$srcCluster://$srcSvmName/$srcVolumeName";  
"Destination" = "$dstCluster://$dstSvmName/$dstVolumeName";  
"Policy" = "StrictSync";
}  

New-NcSnapmirror @smpolicy

 

  

Thanks
Tony Ansley
I am a NetApp employee.
Public