跳转到主内容
Effective December 3 - NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources. For accounts that did not pre-register (prior to Dec 3) access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity. To learn more, Read the FAQ and Watch the video.

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

Views:
5
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