Hello,
I got a task to migrate our ancient PS script which "automates" the creation of volumes to Ansible.
I do understand the basics of the NetAPP but my expertise is on Ansible, not netapp. So, please forgive any mistake.
So, back to the basics. Our current script do the following:
- Creates storage export policy and Volume(s)
- Initiates an LS mirror sync
- Creates SL volumes
- Creates Export Policies for
Part 1 is completed.
Now I need to move to part 2 and I believe I am a bit lost.
The PS script uses the following command:
Invoke-NcSnapmirrorLsUpdate -SourceCluster $SrcCluster -SourceVserver $srcSVM -SourceVolume $srcRootVol -ErrorAction SilentlyContinue | Out-Null
My initial thought was to use the netapp.ontap.na_ontap_snapmirror module, but I believe this is wrong.
Then someone mentioned that I don't need to initiate an LS snapmirror update because this is automatically done when I create the volume (since I use the junction_path).
So my questions:
- Do I have to initiate the LS Snapmirror update?
- If so, is the
netapp.ontap.na_ontap_snapmirror modulethe right module to use? - If it is, how do I use it?
- If it's not, how do I initiate the LS Snapmirror update? Using the
rest-cli?