This section describes how to create a deletion policy. The system periodically deletes specific files that meet the deletion policy.
A namespace has been created.
By default, the SmartTier feature is disabled by the storage system. When you go to the SmartTier page for the first time, you need to click Enable to enable the SmartTier feature. After SmartTier is enabled, you can log in to the CLI and run the following command to disable it.
change tier_global_parameter tier_switch=off service_type=Service type
The Create Policy page is displayed.
Table 1 describes related parameters.
Parameter |
Description |
|---|---|
Name |
Name of the deletion policy.
NOTE:
|
Execution Mode |
Execution mode of the deletion policy. Possible options are Periodical or One-off.
NOTE:
If you set Execution Mode to Periodical, the deletion policy is executed based on the configured period. The default execution time is 00:00 every day. You can modify the execution period in Setting a Deletion Period. If you set Execution Mode to One-off, the deletion policy is executed immediately. |
Namespace |
Namespace for which the deletion policy takes effect. Click Select. On the Namespace page that is displayed, select a desired namespace and click OK. |
Dtree |
Dtree for which the deletion policy takes effect. Click Select. On the Dtree page that is displayed, select a desired dtree and click OK.
NOTE:
If the Dtree parameter is not specified, the deletion policy takes effect for the entire namespace. |
Filter Policy |
File filtering policy. Possible values are By file name, By file size, By file operation time, and By user or user group.
NOTE:
|
Table 2 describes related parameters.
Parameter |
Description |
|---|---|
Current Version |
Expiration policy of objects of the current version. Possible options are By days after creation and By specified date.
|
Noncurrent Version |
An object will be deleted after it becomes a non-current version for the specified number of days. |
The deletion policy takes effect for files that meet both the filtering policy and object expiration policy.