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 migration policy, such policy is applied preferentially. If the directory is not created with a migration 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 |
Indicates the name of the migration policy.
NOTE:
|
Execution Mode |
Indicates the execution mode of the migration policy. Possible options are Periodical or One-off.
NOTE:
If the value is set 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 the value is set to One-off, the migration policy is executed immediately. |
Namespace |
Indicates the 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 |
Indicates the 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 |
Indicates the 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 do not select a 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. |
Filter Policy |
Indicates the file filtering policy. Possible values are By file name, By file size, By file operation time, and By user or user group.
NOTE:
The migration policy takes effect for the files that meet all filtering policies. |
Tier Grade |
Indicates the 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. |