Skip to main content

volume quota policy create

Contributors
Suggest changes

Create a quota policy

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

A quota policy is collection of quota rules for all the volumes in a specific Vserver. This command creates a quota policy for a specific Vserver. Multiple quota policies can be created for a Vserver, but only one of them can be assigned to the Vserver. A Vserver can have a maximum of five quota policies. If five quota policies already exist, the command fails and a quota policy must be deleted before another quota policy can be created.

When you turn on quotas for a volume, the quota rules to be enforced on that volume will be picked from the quota policy that is assigned to the Vserver containing that volume. The quota policy for clustered volumes is equivalent to the /etc/quotas file in 7G.

You must enter the following information to create a quota policy:

  • Vserver name

  • Policy name

Parameters

-vserver <vserver name> - Vserver

This parameter specifies the Vserver for which you are creating the quota policy. You can create a quota policy only for a data Vserver. Quota policies cannot be created for a node or admin Vserver.

-policy-name <text> - Policy Name

This parameter specifies the name of the quota policy you are creating. The quota policy name cannot be more than 32 characters long and must be unique within the Vserver.

Examples

The following example creates a quota policy named quota_policy_0 on Vserver vs0.

cluster1::> volume quota policy create -vserver vs0 -policy-name quota_policy_0