Specifying a Storage Tier Policy
Explains how to associate a storage tier policy with a tiering-enabled volume using either the Control System or the CLI.
Specifying a Storage Tier Policy Using the Control System
About this task
- Creating a volume by clicking Create Volume in the page.
NOTEThe Volumes page is under the Volumes menu in the Kubernetes version of the Control System.
- Editing the tiering-enabled volume by clicking Edit Volume button in the volume information page.
Procedure
- Click the Browse link associated with the Storage Policy field to display the Browse Storage Policies window.
- Review the name and detail of each storage policy and choose a storage policy from the list.
- Click Select to associate the storage policy with the volume.
- Complete the steps for creating or editing the volume.
Specifying a Storage Tier Policy Using the CLI and REST API
About this task
tieringrule
parameter with the volume create
or volume modify
command. Run a command similar to the following to associate a rule when:
- Creating a volume:
For the list of all other required and optional parameters, seemaprcli volume create -name <volName> -path <mountPath> -tieringenable true -tiername <tierName> -tieringrule <ruleName> -json
volume create
. - Editing the volume:
For the list of all other required and optional parameters, seemaprcli volume modify -name <volName> -tieringrule <ruleName> -json
volume modify
.
Send a request of type POST. For example, to associate a rule when:
- Creating a volume:
For the list of all other required and optional parameters, seecurl -X POST 'https://<host>:8443/rest/volume/create?name=<volName>&path=<mountPath>&tieringenable=true&tiername=<tierName>&tieringrule=<ruleName>' --user <username>:<password>
volume create
. - Editing the volume:
For the list of all other required and optional parameters, seecurl -k -X POST 'https://<host>:8443/rest/volume/modify?name=<volName>&tieringrule=<ruleName>' --user mapr:mapr
volume modify
.