Skip to main content
NetApp Knowledge Base

If users have both a large user quota and a small group quota, which one is prioritized?

Views:
97
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

Applies to

  • Clustered Data ONTAP
  • ONTAP 9

Answer

In situations where both quota rule apply, the smaller value becomes the limit.

Example:

  1. Check current quota report:

                                    ----Disk----  ----Files-----   Quota
Volume   Tree      Type    ID        Used  Limit    Used   Limit   Specifier
-------  --------  ------  -------  -----  -----  ------  ------   ---------
treeX    tree1     user    5000
                                  10.05MB  100MB       1       -   5000
treeX    tree1     group   2240
                                  10.05MB   70MB       1       -   2240
treeX    tree1     group   2250
                                  20.09MB   50MB       2       -   2250
3 entries were displayed.    

  1. Write 25MB to tree1 by uid 5000, gid 2250:

:~#id
uid=5000(treeX) gid=2250(GtreeX) groups=2250(GtreeX)

:~# ls -l /mnt/treeX/tree1
-rw-r--r-- 1 treeX  GtreeX  10485760  Mar  5 12:13 10m.dummy
-rw-r--r-- 1 treeX2 GtreeX  10485760  Mar  5 12:12 10m.dummy2
-rw-r--r-- 1 treeX3 GtreeX2 10485760  Mar  5 12:21 10m.dummy3

:/mnt/treeX/tree1$ dd if=/dev/zero of=25m.dummy bs=1M count=25
26214400 bytes (26 MB, 25 MiB) copied, 0.439348 s, 59.7 MB/s

  1. Check quota report:

                                    ----Disk----  ----Files-----   Quota
Volume   Tree      Type    ID        Used  Limit    Used   Limit   Specifier
-------  --------  ------  -------  -----  -----  ------  ------   ---------
treeX    tree1     user    5000
                                  35.15MB  100MB       2       -   5000
treeX    tree1     group   2240
                                  10.05MB   70MB       1       -   2240
treeX    tree1     group   2250
                                  45.20MB   50MB       3       -   2250
3 entries were displayed.

  1. Write 7MB to tree1 by uid 5000, gid 2250. it fails:

:/mnt/treeX/tree1$ dd if=/dev/zero of=7m.dummy bs=1M count=7
dd: error writing ‘/mnt/treeX/7m.dummy’

Additional Information

additionalInformation_text

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.
Scan to view the article on your device