You can use default quotas to apply a quota to all instances of a given quota type. For example, a default user quota affects all users on the system for the specified FlexVol volume or qtree.. In addition, default quotas enable you to modify your quotas easily.
You can use default quotas to automatically apply a limit to a large set of quota targets without having to create separate quotas for each target. For example, if you want to limit most users to 10 GB of disk space, you can specify a default user quota of 10 GB of disk space instead of creating a quota for each user. If you have specific users for whom you want to apply a different limit, you can create explicit quotas for those users. (Explicit quotas—quotas with a specific target or list of targets—override default quotas.)
In addition, default quotas enable you to use resizing rather than reinitialization when you want quota changes to take effect. For example, if you add an explicit user quota to a volume that already has a default user quota, you can activate the new quota by resizing.
Default quotas can be applied to all three types of quota target (users, groups, and qtrees).
Default quotas do not necessarily have specified limits; a default quota can be a tracking quota.
The following command creates a default user quota to apply a 50-MB limit for each user in vol1:volume quota policy rule create -vserver vs1 -policy-name quota_policy_vs1_1 -volume vol1 -type user -target "" -disk-limit 50MB -qtree ""
The volume quota policy rule show command displays the following output:
Vserver: vs1 Policy: quota_policy_vs1_1 Volume: vol1 Soft Soft User Disk Disk Files Files Type Target Qtree Mapping Limit Limit Limit Limit Threshold ----- -------- ------- ------- -------- ------- ------ ------- --------- user "" "" off 50MB - - - -
If any user on the system performs an action that would cause that user's data to take up more than 50 MB in vol1 (for example, writing to a file from an editor), the command fails.