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

You can associate a storage policy with a tiering-enabled volume when you are:
  • Creating a volume by clicking Create Volume in the Data > Volumes page.
    NOTE The 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.
To associate a storage policy with the volume, in the Create Volume or Edit Volume page:

Procedure

  1. Click the Browse link associated with the Storage Policy field to display the Browse Storage Policies window.
  2. Review the name and detail of each storage policy and choose a storage policy from the list.
  3. Click Select to associate the storage policy with the volume.
  4. Complete the steps for creating or editing the volume.

Specifying a Storage Tier Policy Using the CLI and REST API

About this task

You can associate a rule with a tiering-enabled volume by specifying the 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:
    maprcli volume create -name <volName> -path <mountPath> -tieringenable true -tiername <tierName> -tieringrule <ruleName> -json
    For the list of all other required and optional parameters, see volume create.
  • Editing the volume:
    maprcli volume modify -name <volName> -tieringrule <ruleName> -json
    For the list of all other required and optional parameters, see volume modify.
Send a request of type POST. For example, to associate a rule when:
  • Creating a volume:
    curl -k -X POST 'https://<host>:8443/rest/volume/create?name=<volName>&path=<mountPath>&tieringenable=true&tiername=<tierName>&tieringrule=<ruleName>' --user mapr:mapr
    For the list of all other required and optional parameters, see volume create.
  • Editing the volume:
    curl -k -X POST 'https://<host>:8443/rest/volume/modify?name=<volName>&tieringrule=<ruleName>' --user mapr:mapr
    For the list of all other required and optional parameters, see volume modify.