跳转到主内容

将ANF与SnapCenter备份脚本和Snapshot锁定结合使用需要使用单独的锁定类型

Views:
165
Visibility:
Public
Votes:
0
Category:
azure-netapp-files
Specialty:
cloud
Last Updated:

适用场景

  • Azure NetApp Files (ANF)
  • 适用于自定义创建程序的SnapCenter插件(SCC)

问题描述

在使用SnapCenter前处理脚本和后处理脚本时、前处理脚本会使用Curl命令解除ANF上的Snapshot删除锁定、后处理脚本会以类似方式再次锁定它、
锁定工作正常(在SnapCenter外部测试了脚本)、但解锁无法解锁、从而导致保留无法删除快照。
 
错误消息为:
Retention: The scope '/subscriptions/<SUB_UUID>/resourceGroups/<RG_NAME>/providers/Microsoft.NetApp/netAppAccounts/<ACCOUNT>/capacityPools/<STORAGE_POOL>volumes/<VOLUME>/snapshots/<SNAPSHOT_NAME>'cannot perform delete operation because the following scipes are locked: '/subscriptions/<SUB_UUID>/resourcegroups/<RG_NAME>'.  Please remove the lock and try again.
Status: 409 (Conflict)
ErrorCode: ScopeLocked
 

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.