Data Domain:如何删除保留锁定治理 MTree
Summary: 本文档旨在提供删除 RLG Mtree 所需步骤的简要说明。
Instructions
该范围与删除保留锁定治理的常见错误有关。
在禁用 RL MTree 之前,务必恢复位于 RL MTree 上的文件。
如果文件保留期尚未到期,则必须“恢复”RL。
请始终参阅与 Retention Lock 相关的官方文档 常见问题:
Data Domain:Retention Lock 常见问题
通常,日志会报告以下警报:
-
如果文件被保留锁定,则无法删除,则会显示:
Cannot delete or modify a retention locked file10/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)
-
如果文件夹不为空则无法删除,则显示:
rmdir failed (nfs: Directory not empty10/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 的步骤如下:
-
重新启用治理(如果 Mtree 是 RLGD,则 revert 命令不会执行任何操作,因此我们必须再次将其设置为 RLGE)
# mtree retention-lock enable mtree [mtree]
-
恢复 Mtree 上的治理锁定
# mtree retention-lock revert [mtree]
-
禁用治理
# mtree retention-lock disable mtree [mtree]
-
导出 DD NFS:
# nfs export add /data/col1/[mtree] clients [The Linux_Client_IP_Adr]
-
从 Linux 客户端装载分区:
# mount -o nolock DD_IP_Adr:/data/col1/[mtree] /mnt/dd-mount
-
删除 Mtree 上的所有内容,如同删除任何其他文件一样
-
从其他服务器卸载 Mtree
# umount /test_rlg
-
现在可以删除或移动 Mtree。[注意 MTree 可能是存储单元]
# ddboost storage-unit delete Storage_Unit_name # mtree delete /data/col1/Mtree_Name
例
Assuming:
LSU: test_rlg
DD IP:10.10.10.31
Linux 客户端:10.10.10.30
步骤:
-
重新启用治理(如果 Mtree 是 RLGD,则 revert 命令不会执行任何操作,因此我们必须再次将其设置为 RLGE)
# mtree retention-lock enable mtree test_rlg
-
恢复 Mtree 上的治理锁定
# mtree retention-lock revert test_rlg
-
禁用治理
# mtree retention-lock disable mtree test_rlg
-
导出 DD NFS:
# nfs export add /data/col1/test_rlg clients 10.10.10.30
-
从 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
-
删除所有内容 [使用时务必注意
rm -rf命令]# rm -rf /mnt/test_rlg/
-
从其他服务器卸载 Mtree
# umount /test_rlg
-
现在可以删除 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
无法使用合规性模式
恢复针对 MTree 中的文件的保留锁定 [RLC]。
RLC MTree 必须为空,并且在删除 MTree 之前,保留必须到期。