Microsoft Virtualization Discussions
We are seeing an issue with powershell not following the type specified for snapmirror. The cluster has this option to keep DP available:
options replication.create_data_protection_rels.enable on
Command: New-NcSnapmirror -Type DP
However, the type continues defaulting to XDP. Is this expected?
XDP replaces DP as the SnapMirror defaultStarting with ONTAP 9.3, SnapMirror extended data protection (XDP) mode replaces SnapMirror data protection (DP) mode as the SnapMirror default.
At the bottom of that page it states you can still invoke DP.
Explicit invocations of DP continue to default to DP mode if you set the following cluster-wide option:
This option is ignored if you do not explicitly invoke DP.
Which data Ontap version you running and Powershell as well?
Did you invoke the options on both source and destination cluster?
They are using the PowerShell Toolkit 9.8 version and ONTAP is 9.7P8. Here is the syntax of the command they are running.
New-NcSnapmirror -Source $dr_svm_src_path -Destination $dr_svm_dest_path -Schedule 4hours -Type dp -Policy "DPDefault" -PreserveIdentity | Out-Null
Both source and destination have the option set.