通过ddutil.exe工具清除Mtree下的备份文件

1、清除unit_pacs前

sysadmin@ddve# mtree list
Name                      Pre-Comp (GiB)   Status
-----------------------   --------------   ------
/data/col1/backup                    0.0   RW    
/data/col1/soft                     47.0   RW    
/data/col1/unit_bingan            8500.2   RW    
/data/col1/unit_bingli           12309.7   RW    
/data/col1/unit_emr              45480.3   RW    
/data/col1/unit_his              15194.1   RW    
/data/col1/unit_lis              11726.1   RW    
/data/col1/unit_pacs             21789.4   RW    
/data/col1/unit_shouma             606.6   RW    
/data/col1/unit_veeam                0.6   RW    
/data/col1/unit_xindian              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

2、清除中。。。

cd C:\RMANAgent\bin
ddutil.exe -C
Data Domain server name:172.16.10.110
DD Boost username:pacs
Password:
Re-enter password:
Successfully set the DD Boost credentials in the lockbox.


ddutil -f -z 172.16.10.110:/unit_pacs
Type      Perm      Size              Time                                         Path
---------------------------------------------------------------------------------
dir       777       165               Tue Mar 16 15:10:18 2021 (1615878618)        /unit_pacs
dir       750       110718            Fri Apr 09 05:07:08 2021 (1617916028)        /unit_pacs/win-5hj63njl9un


ddutil -d -x -z 172.16.10.110:/unit_pacs  win-5hj63njl9un
Delete '/unit_pacs/win-5hj63njl9un' (Y/N)? y

3、清除后:

sysadmin@ddve# mtree list
Name                      Pre-Comp (GiB)   Status
-----------------------   --------------   ------
/data/col1/backup                    0.0   RW    
/data/col1/soft                     47.0   RW    
/data/col1/unit_bingan            8500.2   RW    
/data/col1/unit_bingli           12309.7   RW    
/data/col1/unit_emr              45480.3   RW    
/data/col1/unit_his              15194.1   RW    
/data/col1/unit_lis              11726.1   RW    
/data/col1/unit_pacs                 0.0   RW    
/data/col1/unit_shouma             606.6   RW    
/data/col1/unit_veeam                0.6   RW    
/data/col1/unit_xindian              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

4、DDVE可清除空间情况:

sysadmin@ddve# filesys
sysadmin@ddve# df -h

Active Tier:
Resource           Size GiB   Used GiB   Avail GiB   Use%   Cleanable GiB*
----------------   --------   --------   ---------   ----   --------------
/data: pre-comp           -    93864.5           -      -                -
/data: post-comp     3620.4     3620.4         0.0   100%            608.2
/ddvar                 49.1       11.1        35.5    24%                -
/ddvar/core           158.3        0.1       150.2     0%                -
----------------   --------   --------   ---------   ----   --------------
 * Estimated based on last cleaning of 2021/04/06 10:19:36.
sysadmin@ddve# filesys clean watch 
Beginning 'filesys clean' monitoring.  Use Control-C to stop monitoring.

Cleaning: phase 3 of 6 (pre-enumeration)
    4.7% complete,     0 GiB free; time: phase  0:03:24, total  0:13:20
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注