How to create a Synchronous Snapmirror or StrictSync Snapirror by using new-snapmirror command ?
is any example?
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
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