错误:13303866:不支持将指定的SnapMirror策略与此SnapMirror关系相关联
适用场景
- 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()