メインコンテンツまでスキップ

ユーザに大規模なユーザクォータと小規模なグループクォータの両方がある場合、どのクォータが優先されますか?

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

に適用されます

  • clustered 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 によって、ツリー 1 に 25MB を書き込みます。

:~#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 によって、ツリー 1 に 7MB を書き込みます。失敗:

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

追加情報

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.