This section describes how to create a migration policy. A migration policy determines the disk pool to which specific files are migrated.
A namespace has been created.
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 migration policy.
NOTE:
|
Execution Mode |
Execution mode of the migration policy. Possible options are Periodical or One-off.
NOTE:
If you set Execution Mode to Periodical, the migration 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 Migration Period. If you set Execution Mode to One-off, the migration policy will be executed immediately. |
Namespace |
Namespace for which the migration policy takes effect. Click Select. On the Namespace page that is displayed, select a desired namespace and click OK. |
Dtree |
Dtree for which the migration policy takes effect. Click Select. On the Dtree page that is displayed, select a desired dtree and click OK. |
File Directory |
File directory for which the migration policy takes effect. If you do not select a dtree or file directory, the migration policy takes effect for the entire namespace. If you select a dtree but no file directory, the migration policy takes effect for the entire dtree.
NOTE:
This parameter is available only when Execution Mode is set to One-off. |
Scenario-Specific SmartCompression Mode |
Whether to compress or decompress specified files based on scenarios.
NOTE:
|
Policy Type |
Description |
|---|---|
Intelligent tiering |
The system executes the migration task by identifying hot and cold files based on attributes such as file access frequency, operation time, and file sizes. If you select Intelligent tiering, only files whose hot and cold grades match the tier grade can be migrated. |
Custom |
NOTE:
|
Parameter |
Description |
|---|---|
Current version |
Set a migration policy for objects of the current version. Possible options are By days after creation and By specified date.
|
Noncurrent version |
Set a migration policy for objects of noncurrent version. Objects will be migrated after becoming noncurrent version for the specified number of days. The value ranges from 1 to 1096 days. |
The migration policy takes effect for files that meet all filter policies and object version migration policies.
Heterogeneous device can be selected only when Tiered Storage is enabled for the selected namespace and a heterogeneous device is bound to the namespace.
Migration Type |
Associated Parameter |
Description |
|---|---|---|
Migrate to a heterogeneous device |
Compression |
After this function is enabled, files to be migrated will be compressed before being stored on the heterogeneous device. |
Aggregation |
After this function is enabled, small files will be aggregated before being stored on the heterogeneous device. |
|
Data Encryption |
After this function is enabled, software-based encrypted files will be stored in ciphertext on the heterogeneous device.
NOTE:
|
|
Retrieve from a heterogeneous device |
Retention Period After Retrieval |
Retention duration for files retrieved from the heterogeneous device. If no modification is made to the file data, after the retention period expires, the local data is deleted and the data on the heterogeneous device is retained. Otherwise, the data on the heterogeneous device is deleted, and the local data is retained.
NOTE:
|