跳转到主内容

错误:13303866:不支持将指定的SnapMirror策略与此SnapMirror关系相关联

Views:
28
Visibility:
Public
Votes:
0
Category:
snapmirror<a>SnapMirror</a><a>REST API</a>
Specialty:
dp
Last Updated:

适用场景

  • ONTAP 9.7
  • ONTAP 9.8
  • ONTAP 9.9
  • ONTAP 9.10
  • REST API

问题描述

  • 在尝试通过REST API创建新的SnapMirror关系时、如果同时在创建期间尝试应用SnapMirror策略、则会遇到错误:

DEBUG: SnapmirrorRelationship({'destination': {'path': 'volume1:misc1'}, 'source': {'path': 'vserver_dr:misc1'}, 'policy': {'name': 'volume1'}})
ERROR: 13303866: Associating the specified SnapMirror policy with this SnapMirror relationship is not supported.

  • 已用REST API代码:

snapmirror_dict = {
 'source': {'path': f'{svmname}_dr:{volname}'},
    'destination': {'path': f'{svmname}_vault:{volname}'},
    'policy': {'name': f'{svmname}_vault'},
    #'state': 'snapmirror',
    }
snapmirror = SnapmirrorRelationship.from_dict(snapmirror_dict)
snapmirror.set_connection(connection=vault_connection)
debug(snapmirror)
snapmirror.post()

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.