Setup NAS and open up the SVMs to NAS clients.
# The SVMs will get one ip-address each in subnet 192.168.4.0/24
# The v_dst_dr SVM will get its address from the source SVM v_src_dr
cl1::*> net int create -vserver v_src -lif nas_210 -role data -data-protocol nfs -home-node cl1-01 -home-port e0d -address 192.168.4.210 -netmask 255.255.255.0
cl1::*> net int create -vserver v_src_dr -lif nas_211 -role data -data-protocol nfs -home-node cl1-01 -home-port e0d -address 192.168.4.211 -netmask 255.255.255.0
cl2::*> net int create -vserver v_dst -lif nas_212 -role data -data-protocol nfs -home-node cl2-01 -home-port e0c -address 192.168.4.212 -netmask 255.255.255.0
cl2::*> net int create -vserver v_dst_dr -lif nas_213 -role data -data-protocol nfs -home-node cl2-01 -home-port e0c -address 192.168.4.213 -netmask 255.255.255.0
(NOTE: nas_213 will have status Oper down, because the SVM is stopped)
# create the export-policies on both clusters for the relevant SVMs
cl1::*> export-policy create -vserver v_src -policyname v_src_pol
cl1::*> export-policy rule create -vserver v_src -policyname v_src_pol -clientmatch 0.0.0.0/0 -rorule any -rwrule any -superuser any
cl1::*> export-policy create -vserver v_src_dr -policyname v_src_dr_pol
cl1::*> export-policy rule create -vserver v_src_dr -policyname v_src_dr_pol -clientmatch 0.0.0.0/0 -rorule any -rwrule any -superuser any
cl2::*> export-policy create -vserver v_dst -policyname v_dst_pol
cl2::*> export-policy rule create -vserver v_dst -policyname v_dst_pol -clientmatch 0.0.0.0/0 -rorule any -rwrule any -superuser any
cl1::*> vol modify -vserver v_src -volume rv -policy v_src_pol
cl1::*> vol modify -vserver v_src -volume src_dp -policy v_src_pol
cl1::*> vol modify -vserver v_src -volume src_xdp -policy v_src_pol
cl1::*> vol modify -vserver v_src_dr -volume rv -policy v_src_dr_pol
cl1::*> vol modify -vserver v_src_dr -volume src_dr_vol -policy v_src_dr_pol
# create nfs for the source SVMs
cl1::*> nfs on -vserver v_src
cl1::*> nfs on -vserver v_src_dr
cl1::*> vserver nfs modify -vserver v_src -showmount enabled
cl1::*> vserver nfs modify -vserver v_src_dr -showmount enabled
# create nfs for the destination v_dst and enable access
cl2::*> nfs on -vserver v_dst
cl2::*> vserver nfs modify -vserver v_dst -showmount enabled
cl2::*> vol modify -vserver v_dst -volume rv -policy v_dst_pol
cl2::*> vol modify -vserver v_dst -volume dst_dp -policy v_dst_pol
cl2::*> vol mount -vserver v_dst -volume dst_dp -junction-path /dst_dp
- back -