How quotas work with multiple users
When you place multiple users in the same quota target, the limits defined by the quota are not applied to each individual user. Rather, the quota limits are shared among all users in the quota target.
Unlike with commands for managing objects, such as volumes and qtrees, you cannot rename a quota target, including a multi-user quota. This means that after a multi-user quota is defined, you cannot modify the users in the quota target, and you cannot add users to a target or remove users from a target. If you want to add or remove a user from a multi-user quota, then the quota containing that user must be deleted and a new quota rule with the set of users in the target defined.
If you combine separate user quotas into one multi-user quota, you can activate the change by resizing quotas. However, if you want to remove users from a quota target with multiple users, or add users to a target that already has multiple users, you must reinitialize quotas before the change takes effect. |
In the following example, there are two users listed in the quota entry. The two users can use up to 80MB of space combined. If one uses 75MB, then the other one can use only 5MB.
cluster1::> volume quota policy rule create -vserver vs0 -volume vol1 -policy-name default -type user -target "jsmith,chen" -qtree "" -disk-limit 80m cluster1::> volume quota policy rule show -vserver vs0 -volume vol1 Vserver: vs0 Policy: default Volume: vol1 Soft Soft User Disk Disk Files Files Type Target Qtree Mapping Limit Limit Limit Limit Threshold ----- -------- ------- ------- -------- ------- ------ ------- --------- user "jsmith,chen" "" off 80MB - - - -