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 Utility Node。

使用下列命令決定用戶端的路徑:

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 用戶端的備份清單:

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.