Data Domain:如何刪除保留鎖定治理 MTree

Summary: 本文件旨在簡明扼要地說明卸下 RLG Mtree 所需的步驟。

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

該範圍與移除保留鎖定治理的常見錯誤有關。
請務必先還原位於 RL MTree 上的檔案,然後再予以停用。
如果檔保留期尚未過期,則必須“還原”RL。

請務必參閱與保留鎖定常見問答集相關的官方說明文件:
Data Domain:保留鎖定常見問題

通常,記錄會報告下列警示:

  1. 如果檔案因保留鎖定,則無法移除,顯示: Cannot delete or modify a retention locked file

    10/08 08:59:46.764075 [b9956f0] ERROR: ddboost-<dda.lab.loc-51584>: ddboost_api ERROR: ddp_unlink() failed, su_name=Copia_dda.lab.loc, path_name=/Backups/.../vm-1-disk-key-2000-flat.vmdk, Err: 5520-nfs remove failed (nfs: Cannot delete or modify a retention locked file)
  2. 如果資料夾無法刪除,如果不是空,則會顯示: rmdir failed (nfs: Directory not empty

    10/08 08:59:46.898938 [7f095817bcb0] ERROR: ddboost-<dda.lab.loc-51584>: ddboost_api ERROR: ddp_rmdir() failed, su_name=Copia_dda.lab.loc, path_name=.../Backups/.../03971, Err: 5043-nfs rmdir failed (nfs: Directory not empty)

查看 Mtree 清單,RL MTree 即使並不為空,但仍已停用。

# mtree list:
/data/col1/test_rlg        RW/RLGD

在這種情況下,請務必注意,在禁用 RL 之前,必須還原文件,否則檔將保留配置,

還原和刪除 RLG MTree 的步驟如下:

  1. 重新啟用治理 (如果 Mtree 是 RLGD,則還原命令不會執行任何動作,因此我們必須再次將其設定為 RLGE)

    # mtree retention-lock enable mtree [mtree]
  2. 還原 Mtree 上的治理鎖定

    # mtree retention-lock revert [mtree]
  3. 停用治理

    # mtree retention-lock disable mtree [mtree]
  4. 匯出 DD NFS:

    # nfs export add /data/col1/[mtree] clients [The Linux_Client_IP_Adr]
  5. 從 Linux 用戶端掛接磁碟分割:

    # mount -o nolock DD_IP_Adr:/data/col1/[mtree] /mnt/dd-mount
  6. 像刪除任何其他檔案一樣刪除 Mtree 上的所有內容

  7. 從其他伺服器取消掛接 Mtree

    # umount /test_rlg
  8. 現在可以刪除或移動 Mtree。[請注意,MTree 可能是一個儲存單元]

    # ddboost storage-unit delete Storage_Unit_name
    # mtree delete /data/col1/Mtree_Name


假設:
LSU:test_rlg
DD IP:10.10.10.31
Linux 用戶端:10.10.10.30

步驟:

  1. 重新啟用治理 (如果 Mtree 是 RLGD,則還原命令不會執行任何動作,因此我們必須再次將其設定為 RLGE)

    # mtree retention-lock enable mtree test_rlg
  2. 還原 Mtree 上的治理鎖定

    # mtree retention-lock revert test_rlg
  3. 停用治理

    # mtree retention-lock disable mtree test_rlg
  4. 匯出 DD NFS:

    # nfs export add /data/col1/test_rlg clients 10.10.10.30
  5. 從 Linux 用戶端掛接 NFS 匯出

    cd /mnt
    # mkdir /mnt/test_rlg
    # chown 775 /mnt/test_rlg
    # mount -o nolock 10.10.10.31:/data/col1/test_rlg   /mnt/test_rlg
  6. 刪除所有內容 [使用 rm -rf 命令]

    # rm -rf /mnt/test_rlg/
  7. 從其他伺服器取消掛接 Mtree

    # umount /test_rlg
  8. 現在可以刪除 Mtree。

    # ddboost storage-unit delete test_rlg
    # mtree delete /data/col1/test_rlg

 

Additional Information

若要顯示保留鎖定檔案,請參閱下列命令:

mtree retention-lock report generate retention-details mtrees /data/col1/test_rlg

保留鎖定法規遵循 [RLC]
t 無法使用法規遵循模式還原 MTrees 中的檔案的保留鎖定。
RLC MTree 必須為空白,且保留時間必須到期,才能刪除 MTree。

 

Affected Products

Data Domain Deduplication Storage Systems
Article Properties
Article Number: 000234303
Article Type: How To
Last Modified: 12 Dec 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.