Creating a Placement Policy

This section describes how to create a placement policy. The placement policy determines the disk pool to which files in the namespace are written.

Prerequisites

A namespace has been created.

Precautions

The placement policy created for a dtree itself is preferentially used. If a dtree is not created with a placement policy, it inherits the placement policy of its parent namespace.

Procedure

  1. Choose Resources > Tuning > SmartTier.

    By default, the SmartTier feature is disabled by the storage system. When you go to the SmartTier page for the first time, you need to click Enable to enable the SmartTier feature. After the SmartTier feature is enabled, you can log in to the CLI and run the following command to disable it.

    change tier_global_parameter tier_switch=off service_type=Service type

  2. Select the desired account from the Account drop-down list in the upper left corner.
  3. Click Create Policy.

    The Create Policy page is displayed.

  4. Set Policy Type to Placement.

    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.

    Namespace

    Indicates the namespace for which the placement 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 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, 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.
    NOTE:

    The placement policy takes effect for the files that meet all filtering policies.

    Tier Grade

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

  5. Click OK.