Creating a Tiering Policy

This operation enables you to create a tiering policy. Tiering policies include placement policies and migration policies. A placement policy determines the disk pool to which file system data is written. A migration policy determines the disk pool to which specific files are migrated.

Precautions

For a directory, if it is created with a tiering policy, such policy is applied preferentially. If the directory is not created with a tiering policy, it inherits the policy created for its parent directory.

Procedure

  1. Choose Services > HDFS Service > Tiering.

    By default, the tiering policy function is disabled by the storage system. When you go to the Tiering page for the first time, you need to click Enable to enable the tiering policy function.

  2. Click Create Policy.

    The Create Policy page is displayed.

  3. Select the Placement Policy or Migration Policy tab in Policy Type and set basic information about the policy.

    • Placement Policy
      Table 1 describes related parameters.
      Table 1 Placement policy parameters

      Parameter

      Description

      Name

      Indicates the name of the placement policy.

      NOTE:
      • The name must be unique.
      • The name contains only letters, digits, hyphens (-), and underscores (_).
      • The name contains 1 to 63 characters.

      File System

      Indicates the file system for which the placement policy takes effect. Click Choose. On the File System page that is displayed, select a desired file system and click OK.

      File Directory

      Indicates the file directory for which the placement policy takes effect. If no file directory is specified, the placement policy takes effect for the entire file system.

      Tier Grade

      Indicates the tier grade of the placement policy. That is, the tier grade of the disk pool to which data is written. A disk pool's tier grade is specified during disk pool creation.

    • Migration Policy

      Click the Migration Policy tab.

      Table 2 describes related parameters.

      Table 2 Migration policy parameters

      Parameter

      Description

      Name

      Indicates the name of the migration policy.

      NOTE:
      • The name must be unique.
      • The name contains only letters, digits, hyphens (-), and underscores (_).
      • The name contains 1 to 63 characters.

      File System

      Indicates the file system for which the migration policy takes effect. Click Choose. On the File System page that is displayed, select a desired file system and click OK.

      File Directory

      Indicates the file directory for which the migration policy takes effect. If no file directory is specified, the migration policy takes effect for the entire file system.

      File Filtering

      Indicates a file filtering policy. Possible options are File Name and By file operation time.

      • File Name

        Select Including or Excluding in File Name Filtering to determine whether files with the specified name are included or excluded in the migration policy. Then, specify the file names to be filtered for or filtered.

        NOTE:
        • A file name contains 1 to 1023 characters.
        • Wildcard (*) can match any character. The following formats are supported: *, *example*, *example, example*, and example*example.
        • Multiple file names are separated using commas (,).
      • By file operation time

        Specify a specific operation time. Then, the migration policy takes effect on files whose history operation times meet all of the specified times, including crtime, mtime, ctime, and atime.

        • crtime: indicates the file creation time.
        • mtime: indicates the file modification time.
        • ctime: indicates the file property modification time.
        • atime: indicates the last access time.

      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.

      Execution Mode

      Indicates the execution mode of the migration policy. Possible options are Periodical or One-off.

      NOTE:

      If Execution Mode is set to Periodical, the execution period of the migration policy is 24 hours. If Execution Mode is set to One-off, the migration policy is executed immediately.

  4. Click OK.