How to configure quotas (including a tracking quota) in Data ONTAP Cluster-Mode
Applies to
- ONTAP 9
- Setup Configuration
Description
Quotas can be configured to allow specific users, groups or qtrees a specific disk limit or number of files limit.
Notes:
- The quota policy rules are supported only for tracking and tree quota types in 8.0 Cluster-Mode, the users and groups options are available in 8.1 and later.
- In 7-mode there is an * wildcard that allows you to set a quota for all users of a qtree or volume. In Cluster-Mode, the equivalent to this is two empty double-quotes: ""
Without a volume wide tracking quota, changes in specific quotas will take a while to take effect (as all quota information needs to be analyzed by the storage system and quotas might need to be turned off and back on to collect that). To avoid a risk of quota's being reached by a user before taking effect during a quota change, it is recommended to have a tracking quota on any volume where more specific quotas will be applied.
Consider an environment comprising a Vserver named 'vs1' and a volume named 'volume' with a number of qtrees (qtree1, qtree2, qtree3 and so on).
cmodebr1Node1::*> qtree show
(volume qtree show)
Virtual
Server Volume Qtree Style Oplocks Status
---------- ------------- ------------ ------------ --------- --------
vs1 vs1_root "" unix enable normal
vs1 volume "" unix enable normal
vs1 volume qtree1 unix enable normal
vs1 volume qtree2 unix enable normal
vs1 volume qtree3 unix enable normal
Any changes to the quota on a volume require at least one quota rule on a Vserver to apply to that volume, otherwise errors such as the following might occur:
cmodebr1Node1::*>
vol quota resize -vserver vs1 -volume
volume
(volume quota resize)
Error: command failed: No valid quota rules found in quota policy default for
volume volume in Vserver vs1.
cmodebr1Node1::*>
vol quota on -vserver vs1 -volume
volume
(volume quota on)
Error: command failed: No valid quota rules found in quota policy default for
volume volume in Vserver vs1.
For these commands to work, ensure that the Vserver has at least one policy, and the policy has a rule that applies to the volume.
The following are the steps on how to create a policy, how to implement the optional recommended initial tracking rule, and how to create or modify qtree specific rules: