Associating a Tier Tiering Rule with a Volume

About this task

You can associate a tier tiering rule with a new volume or with an already tiering-enabled volume using the Control System, CLI, and the REST API.

Associating a Tier Tiering Rule with a Volume Using the Control System

Procedure

Perform the steps in the following topics to associate a tier, tiering rule, and/or schedule with:

Associating a Tier Tiering Rule with a Volume Using the CLI

Procedure

Run the following command to associate a tier tiering rule with:
  • A new volume:
    $maprcli volume create -name <vol_name> -path <vol_mount_path> -tieringenable true -tiername <tier_name> -tieringrule <rule_name>
    For more information, see volume create.
  • An already tiering-enabled volume:
    $maprcli volume modify -name <vol_name> -tiername <tier_name> -tieringrule <rule_name>
    For more information, see volume modify.
NOTE
You cannot change the tier type or the tier for a volume after it is set.

Associating a Tier Tiering Rule with a Volume Using the REST API

Procedure

Send a request of type POST to associate a tier tiering rule with:
  • A new volume. For example:
    curl -X POST 'https://<host>:8443/rest/volume/create?name=<vol_name>&path=<vol_mount_path>&tieringenable=true&tiername=<tier_name>&tieringrule=<rule_name>' --user <username>:<password>
    For more information, see volume create.
  • An already tiering-enabled volume. For example:
    curl -X POST 'https://<host>:8443/rest/volume/modify?name=<vol_name>&tiername=<tier_name>&tieringrule=<rule_name>' --user <username>:<password>
    For more information, see volume modify.
NOTE
Volume's data tiering properties like tiername, ectopology, ecscheme, etc. cannot be modified after they are set.