#Hi Team what policy does snapmirror REST

1 messages · Page 1 of 1 (latest)

unkempt bridge
#

I found this table under DOCS for /snapmirror/policies

mirror-vault                            async
async-mirror w/all_source_snapshots    async w/copy_all_source_snapshots


sync-mirror    sync    sync
strict-sync-mirror    sync    strict_sync
automated-failover    sync    automated_failover```
#

But it's a bit incomplete. What about the other combination for async-mirror? And ZAPI supports also vault. What is the mapping?

frank dock
#

I tried all policies in below list and for everything errors is this policy is not allowed with snapmirror relationship.

cluster2::> snapmirror policy show -type async-mirror -fields policy,type
vserver policy type


cluster2 DPDefault async-mirror
cluster2 MirrorAllSnapshots async-mirror
cluster2 MirrorAllSnapshotsDiscardNetwork async-mirror
cluster2 MirrorLatest async-mirror
4 entries were displayed.

#

I think ZAPI should work, but plan is to use REST APIs for the customer. which all failing

#

Let me get you the error

#

This is the error for all async-mirror type policies

median talon
#

All the policy types mentioned above are working in our environment as expected in REST.

frank dock
#

Thats interesting. ONTAP version I'm testing is 9.10. What is your environment version?

frank dock
#

Could you please share one sample execution log with -vvv?

median talon
frank dock
#

Thanks Dhivya! But can you give me output of version command in ONTAP? and ansible playbook execution log with -vvv

#

so I can compare the details

#

my bad missed the logs

frank dock
# median talon

Dhivya, I see this for snapmirror policy modify. But for me snapmirror create is failing.

median talon
#

Using play i created the new snapmirror policy

frank dock
#

@rough ice , could you please help on this?

frank dock
#

Hi @rough ice / @unkempt bridge I'm still waiting for an update on this. Could you please help on this?

unkempt bridge
#

sync-mirror and async-mirror are supported with REST using our Ansible module. We are updating the module to also support mirror-vault.