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.

Prerequisites

You have created a file system.

Precautions

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

Procedure

  1. Choose Services > File Service > Tiering.

    After the tiering function is enabled, you can log in the CLI and run the change tier_global_parameter tier_switch=off service_type=nas command to disable it.

  2. Click Create Policy.

    The Create Policy page is displayed.

  3. Select Placement policy or Migration policy 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 can contain 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 Select. On the File System page that is displayed, select a desired file system and click OK.

      Dtree

      Indicates the dtree for which the placement policy takes effect. Click Select. On the Dtree page that is displayed, select a desired dtree and click OK.

      Filter Policy

      Indicates the file filtering policy. Possible values are By file name and By user or user group.

      • By file name

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

        NOTE:
        • 1 to 1023 characters can be entered in the text box.
        • Wildcard (*) can match any character. The following formats are supported: *, *example*, *example, example*, and example*example.
        • Multiple file names are separated using commas (,).
      • By user or user group

        Select the type of the desired user or user group from the User or User Group Type drop-down list and then select Including or Excluding in User Name Filtering to determine whether files of the specified user or user group are included or excluded in the placement policy.

        • If you select LDAP domain user, LDAP domain user group, NIS domain user, or NIS domain user group in User or User Group Type, specify the user or user group name in Username or User Group Name.
        • If you select Local UNIX authentication user or Local UNIX authentication user group, click Select next to Username or User Group Name. On the Local UNIX Authentication User or Local UNIX Authentication User Group page that is displayed, select the desired user or user group and click OK.

      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

      Select Migration policy in Policy Type.

      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 can contain only letters, digits, hyphens (-), and underscores (_).
      • The name contains 1 to 63 characters.

      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.

      File System

      Indicates the file system for which the migration policy takes effect. Click Select. On the File System page that is displayed, select a desired file system 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 file system. 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.

      • By file name

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

        NOTE:
        • 1 to 1023 characters can be entered in the text box.
        • 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 size

        Specify the size of files to be filtered for. The migration policy takes effect for files that meet the size requirements.

      • 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 file access time.
      • By user or user group

        Select the type of the desired user or user group from the User or User Group Type drop-down list and then select Including or Excluding in User Name Filtering to determine whether files of the specified user or user group are included or excluded in the migration policy.

        • If you select LDAP domain user, LDAP domain user group, NIS domain user, or NIS domain user group in User or User Group Type, specify the user or user group name in Username or User Group Name.
        • If you select Local UNIX authentication user or Local UNIX authentication user group, click Select next to Username or User Group Name. On the Local UNIX Authentication User or Local UNIX Authentication User Group page that is displayed, select the desired user or user group and click OK.

      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.

  4. Click OK.