Associating a Tier, Tiering Rule, and/or Schedule with a Volume

You can associate a tier, tiering rule, and/or schedule with a new volume or with an already tiering-enabled volume using MCS, CLI, and REST API.

Associating a Tier, Tiering Rule, and/or Schedule with a Volume Using the MapR Control System

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

Associating a Tier, Tiering Rule, and/or Schedule with a Volume Using the CLI

Run the following command to associate a tier, tiering rule, and/or schedule with:
  • A new volume:
    $maprcli volume create -name <vol_name> -path <vol_mount_path> -tieringenable true -tiername <tier_name> -tieringrule <rule_name> -offloadschedule <schedule_ID>
    For more information, see volume create.
  • An already tiering-enabled volume:
    $maprcli volume modify -name <vol_name> -tiername <tier_name> -tieringrule <rule_name> -offloadschedule <schedule_ID>
    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, and/or Schedule with a Volume Using the REST API

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