#svm-DR

1 messages · Page 1 of 1 (latest)

fathom musk
#

I am trying to setup a snapmirror relation for svm-DR with the following playbook:

  • name: "{{ task_description }}"
    netapp.ontap.na_ontap_snapmirror:
    <<: *auth
    state : present
    hostname : "{{ cluster.destination.management_ip }}"
    source_endpoint :
    cluster : "{{ cluster.destination.name }}"
    path : "{{ svm.destination.name }}" #+ ':/' }}" #" + ':' + snapmirror.source.volume.name }}"
    destination_endpoint :
    cluster : "{{ cluster.source.name }}"
    path : "{{ svm.source.name }}" #+ ':/' }}" #" + ':' + snapmirror.destination.volume.name }}"
    #identity_preserve : "{{ svmDR.identity_preserve | default(omit) }}"
    initialize : "{{ svmDR.initialize | default(omit) }}"
    policy : "{{ svmDR.policy | default(omit) }}"
    relationship_state : "{{ svmDR.relationship_state | default(omit) }}"
    schedule : "{{ svmDR.schedule | default(omit) }}"
    use_rest : always

We are using OnTAP 9.14.

I have 2 questions:
when running above I get 'fatal: [localhost]: FAILED! => changed=false
msg: 'Error creating SnapMirror: calling: snapmirror/relationships: got {''message'': "Invalid character ''-'' in volume name. It can have ''_'' and alphanumeric characters.", ''code'': ''917888'', ''target'': ''source.path''}.''

2: If i try to activate 'identity_preserve' I get:
identity_preserve not suppoted in rest.

How do I resolve those issues?

fathom musk
#

Hi,
It seemed that I switched source and destination in the playbook.
After further test the following playbook was created:

  • name: "{{ task_description }}"
    netapp.ontap.na_ontap_snapmirror:
    <<: *auth
    state : present
    hostname : "{{ cluster.destination.management_ip }}"
    source_endpoint :
    cluster : "{{ cluster.source.name }}"
    path : "{{ svm.source.name + ':' }}" #" + ':' + snapmirror.source.volume.name }}"
    destination_endpoint :
    cluster : "{{ cluster.destination.name }}"
    path : "{{ svm.destination.name + ':' }}" #" + ':' + snapmirror.destination.volume.name }}"
    identity_preservation : "{{ svmDR.identity_preservation | default(omit) }}"
    initialize : "{{ svmDR.initialize | default(omit) }}"
    policy : "{{ svmDR.policy | default(omit) }}"
    relationship_state : "{{ svmDR.relationship_state | default(omit) }}"
    schedule : "{{ svmDR.schedule | default(omit) }}"
    use_rest : always