跳转到主内容

如果用户同时具有大型用户配额和小型组配额,则以下哪一项优先级较高?

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

适用于

  • 集群模式 Data ONTAP
  • ONTAP 9

解答

如果同时应用这两个配额规则,则较小的值将成为限制。

示例:

  1. 检查当前配额报告:

                   ----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. 通过 uid 5000 , gid 2250 将 25 MB 的数据写入 tree1 :

:~#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. 检查配额报告:

                   ----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. 通过 UID 5000 , GID 2250 向 tree1 写入 7 MB 。失败:

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

其他信息

附加信息 _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.