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:
For more information, see$maprcli volume create -name <vol_name> -path <vol_mount_path> -tieringenable true -tiername <tier_name> -tieringrule <rule_name> -offloadschedule <schedule_ID>
volume create
. - An already tiering-enabled volume:
For more information, see$maprcli volume modify -name <vol_name> -tiername <tier_name> -tieringrule <rule_name> -offloadschedule <schedule_ID>
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:
For more information, seecurl -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
volume create
. - An already tiering-enabled volume. For example:
For more information, seecurl -k -X POST 'https://<host>:8443/rest/volume/modify?name=<vol_name>&tiername=<tier_name>&tieringrule=<rule_name>&offloadschedule=<schedule_ID>' --user mapr:mapr
volume modify
.
Note: Volume's data tiering properties like tiername, ectopology, ecscheme, etc. cannot be modified
after they are set.