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.
For a directory, if it is created with a policy, such policy is applied preferentially. If the directory is not created with a policy, it inherits the policy created for its parent directory.
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 period 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. |
Compression Mode |
Whether to compress or decompress specified files.
NOTE:
|
Filter Policy |
File filtering policy. The options are By file name, By file size, By file operation time, and By user or user group.
NOTE:
|
Tier Grade |
Tier grade of the migration policy. That is, the grade of the disk pool to which files are migrated. A disk pool's tier grade is specified during disk pool creation. |