Avamar:如何在启用保留锁定(治理模式)时删除备份

Summary: 在 Avamar 和 Data Domain 集成解决方案上启用保留锁定(治理模式)的情况下删除备份。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

要在启用保留锁定(治理模式)的情况下删除备份,必须按此特定顺序执行这些步骤。

警告:命令在 Avamar 和 Data Domain (DD) 之间交替执行。请密切注意命令的运行位置。
 
注意:如果未准确遵循这些步骤,可能会解锁受保护的数据或导致数据丢失。
 
 

步骤 1 — Avamar:

以“管理员”身份登录到 Avamar 实用程序节点。

使用以下命令确定客户端的路径:

avmgr getl --path=<domain path to client> | grep -i '<client name>'
 

示例:

avmgr getl --path=/clients/physical | grep -i 'testclientA'
1  testclientA.company.com      location: d057f520d4f5ab5b26c2b754714c9f21f50255c2      pswd: c1015019cf10175d15984d7cc9c833754f3cff3e
 

记下位置。这也称为客户端 ID (CID)。

在后续步骤中查找 Data Domain 上的完整路径需要此信息。

步骤 2 — Avamar:

要删除整个客户端或客户端中的所有备份,请转至步骤 3。

要删除单个备份、多个(但不是全部)备份,请运行以下命令以检索该 Avamar Client 的备份列表:

avmgr getb --path=<full path to client> --format=xml
 

示例:

avmgr getb --path=/clients/physical/testclientA.company.com --format=xml
1  Request succeeded
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<backuplist version="3.0">
  <backuplistrec flags="19922945" labelnum="488" label="1800-phy-file_srv_phy-1576465200020" created="1576466965" roothash="23f00d475c58c8ff95b5f1d298e01a1d4a632f72" totalbytes="4775684341760.00" ispresentbytes="0.00" pidnum="3001" percentnew="1" expires="0" created_prectime="0x1d5b3c104506658" partial="0" retentiontype="daily,weekly" backuptype="Full" ddrindex="1" locked="0" direct_restore="1" tier="0" appconsistent="not_available" sealstate="COMPLETE" imu_locked="false" imu_locked_weeks="0" force_no_imulock="false"/>
  <backuplistrec flags="19922945" labelnum="481" label="1800-phy-file_srv_phy-1575860400016" created="1575862022" roothash="895eae1260310a6e27316d29e8d52fdff562cb76" totalbytes="4779966201856.00" ispresentbytes="0.00" pidnum="3001" percentnew="1" expires="0" created_prectime="0x1d5ae4085e092a0" partial="0" retentiontype="daily,weekly" backuptype="Full" ddrindex="1" locked="0" direct_restore="1" tier="0" appconsistent="not_available" sealstate="COMPLETE" imu_locked="false" imu_locked_weeks="0" force_no_imulock="false"/>
  <backuplistrec flags="24117249" labelnum="474" label="1800-phy-file_srv_phy-1575255600018" created="1575257228" roothash="fadf73cd92ce3d97d4e5223c13255aca49716631" totalbytes="4774015008768.00" ispresentbytes="0.00" pidnum="3001" percentnew="1" expires="0" created_prectime="0x1d5a8c060960b04" partial="0" retentiontype="daily,weekly,monthly" backuptype="Full" ddrindex="1" locked="0" direct_restore="1" tier="0" appconsistent="not_available" sealstate="COMPLETE" imu_locked="false" imu_locked_weeks="0" force_no_imulock="false"/>
  <backuplistrec flags="19922945" labelnum="467" label="1800-phy-file_srv_phy-1574650800019" created="1574652417" roothash="afafe01c88300c5376a4042c4323d066a8c49cc2" totalbytes="4766955470848.00" ispresentbytes="0.00" pidnum="3001" percentnew="1" expires="0" created_prectime="0x1d5a3403120cb82" partial="0" retentiontype="daily,weekly" backuptype="Full" ddrindex="1" locked="0" direct_restore="1" tier="0" appconsistent="not_available" sealstate="COMPLETE" imu_locked="false" imu_locked_weeks="0" force_no_imulock="false"/>
</backuplist>
 
记下”created_prectime“值或值。这是备份创建时间或 BID(以及备份在 Data Domain 服务器上的密封方式)。 
      • 该值始终显示为“0x”,后跟时间戳(例如“0x1d5a8c060960b04”)。 
      • “0x”后的值是此输出所需的值(在此示例中为“1d5a8c060960b04”)。 
 

步骤 3 — Data Domain:

在 Data Domain 上,以 sysadmin 身份登录。

运行以下命令以列出 mtrees

mtree list
 

示例:

mtree list
Name                           Pre-Comp (GiB)   Status
----------------------------   --------------   -------
/data/col1/avamar-1234567890           9080.1   RW/RLGE
/data/col1/backup                         0.0   RW
----------------------------   --------------   -------
 D    : Deleted
 Q    : Quota Defined
 RO   : Read Only
 RW   : Read Write
 RD   : Replication Destination
 IRH  : Retention-Lock Indefinite Retention Hold Enabled
 ARL  : Automatic-Retention-Lock Enabled
 RLGE : Retention-Lock Governance Enabled
 RLGD : Retention-Lock Governance Disabled
 RLCE : Retention-Lock Compliance Enabled
 M    : Mobile
 m    : Migratable
 

记下 Avamar mtree。而 mtree 在此过程的后面部分恢复保留锁定需要名称。

步骤 4 — Avamar:

验证 Avamar mtree 通过运行以下命令来命名:

avmaint hfscreate 
 

输出示例:

1234567890
 

然后在前面加上字符串”/data/col1/avamar-

在此示例中,生成的 mtree 名称为 /data/col1/avamar-1234567890, 与步骤 3 中的输出匹配。

步骤 5 — Data Domain:

  • Dell Technologies Avamar 技术支持团队成员

有关后续步骤,请参阅“内部备注”部分。

 

  • 所有其他:

运行以下命令以生成 Data Domain 上所有保留锁定文件的报告:
(这用于查找要删除的客户端和备份。)

mtree retention-lock report generate retention-details mtrees /data/col1/<avamar-xxxxxxxx> output-file <filename.txt>

(其中“mtree”是 Avamar mtree 之前确定的(在此示例中为:/data/col1/avamar-1234567890)

示例:

mtree retention-lock report generate retention-details mtrees /data/col1/avamar-1234567890 output-file dd_retentionlock.txt
 

这将生成包含所有锁定文件的报告。

输出将发送到 /ddvar/log/debug/retention-lock-reports/ 目录(或运行命令时指定的目录)。 

使用从步骤 1 收集的客户端 ID (CID),并从生成的输出文件(在此示例dd_retentionlock.txt中)查找 Data Domain 上的备份路径

步骤 6 — Data Domain:

找到路径后,运行以下命令以恢复备份锁定(使其可以删除):

mtree retention-lock revert <path to client/backup>
 

命令将提示输入 sysadmin 密码以完成恢复过程。

根据要删除的内容,命令会稍有不同:

如果删除所有备份或客户端,该命令将使用步骤 1 中的客户端 ID (CID)。

示例:

mtree retention-lock revert /data/col1/avamar-1234567890/cur/d057f520d4f5ab5b26c2b754714c9f21f50255c2
The 'mtree retention-lock revert' command removes retention-lock on this path thereby making it unprotected.
        Are you sure? (yes|no) [no]: yes

ok, proceeding.

Please enter sysadmin password to confirm 'mtree retention-lock revert':
 

如果删除单个备份,则命令同时包含步骤 1 中的客户端 ID (CID) 和步骤 4 中的备份 ID(必须以大写字母输入):

示例:

mtree retention-lock revert /data/col1/avamar-1234567890/cur/d057f520d4f5ab5b26c2b754714c9f21f50255c2/1D5A8C060960B04
The 'mtree retention-lock revert' command removes retention-lock on this path thereby making it unprotected.
        Are you sure? (yes|no) [no]: yes

ok, proceeding.

Please enter sysadmin password to confirm 'mtree retention-lock revert':
 

必须为要删除的每个单独备份运行单独的命令。

例如,要删除其中两个备份,请执行以下作:

mtree retention-lock revert /data/col1/avamar-1234567890/cur/d057f520d4f5ab5b26c2b754714c9f21f50255c2/1D5A8C060960B04
mtree retention-lock revert /data/col1/avamar-1234567890/cur/d057f520d4f5ab5b26c2b754714c9f21f50255c2/1D5A3403120cB82
 

步骤 7 — Avamar:

锁定恢复完成后,在 Avamar 网格上运行以下命令以暂时禁用治理模式:

avmaint config governancemode=false --ava
 

步骤 8 — Avamar(UI、AUI 或 MCCLI):

禁用治理模式后,可以使用 Avamar Web 界面 (AUI)、管理控制台 (MC UI) 删除备份或客户端,或 mccli

步骤 9 — Avamar:

删除客户端或备份后,运行以下命令在 Avamar 网格上重新启用治理模式:

avmaint config governancemode=true --ava

Affected Products

Avamar, Avamar, Avamar Server
Article Properties
Article Number: 000227152
Article Type: How To
Last Modified: 10 Nov 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.