如果用户同时具有大型用户配额和小型组配额,则以下哪一项优先级较高?
适用于
- 集群模式 Data ONTAP
- ONTAP 9
解答
如果同时应用这两个配额规则,则较小的值将成为限制。
示例:
- 检查当前配额报告:
----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.
- 通过 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
- 检查配额报告:
----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.
- 通过 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