Create an SMB server for an ONTAP SnapMirror destination SVM in a DR relationship
If the source SVM has an SMB configuration, and you chose to set identity-preserve to false, you must create an SMB server for the destination SVM. An SMB server is required for some SMB configurations, such as shares during initialization of the SnapMirror relationship.
-
Start the destination SVM by using the
vserver startcommand.destination_cluster::> vserver start -vserver dvs1 [Job 30] Job succeeded: DONE
Learn more about
vserver startin the ONTAP command reference. -
Verify that the destination SVM is in the
runningstate and subtype isdp-destinationby using thevserver showcommand.destination_cluster::> vserver show Admin Operational Root Vserver Type Subtype State State Volume Aggregate -------- ------- ---------- ---------- ----------- ---------- ---------- dvs1 data dp-destination running running - -Learn more about
vserver showin the ONTAP command reference. -
Create a LIF by using the
network interface createcommand.destination_cluster::>network interface create -vserver dvs1 -lif NAS1 -role data -data-protocol cifs -home-node destination_cluster-01 -home-port a0a-101 -address 192.0.2.128 -netmask 255.255.255.128
Learn more about
network interface createin the ONTAP command reference. -
Create a route by using the
network route createcommand.destination_cluster::>network route create -vserver dvs1 -destination 0.0.0.0/0 -gateway 192.0.2.1
Learn more about
network route createin the ONTAP command reference. -
Configure DNS by using the
vserver services dns createcommand.destination_cluster::>vserver services dns create -domains mydomain.example.com -vserver dvs1 -name-servers 192.0.2.128 -state enabled
Learn more about
vserver services dns createin the ONTAP command reference. -
Add the preferred domain controller by using the
vserver cifs domain preferred-dc addcommand.destination_cluster::>vserver cifs domain preferred-dc add -vserver dvs1 -preferred-dc 192.0.2.128 -domain mydomain.example.com
Learn more about
vserver cifs domain preferred-dc addin the ONTAP command reference. -
Create the SMB server by using the
vserver cifs createcommand.destination_cluster::>vserver cifs create -vserver dvs1 -domain mydomain.example.com -cifs-server CIFS1
Learn more about
vserver cifs createin the ONTAP command reference. -
Stop the destination SVM by using the
vserver stopcommand.destination_cluster::> vserver stop -vserver dvs1 [Job 46] Job succeeded: DONE
Learn more about
vserver stopin the ONTAP command reference.