Skip to content

Commit c4359b9

Browse files
amadioesindril
authored andcommitted
DOC: Update documentation about quota set command
1 parent 21c68ab commit c4359b9

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

doc/diopside/manual/interfaces.rst

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,19 +1711,29 @@ a **quota** command in the EOS shell:
17111711
# ==> Quota Node: /eos/dev/2rep/
17121712
# _______________________________________________________________________________________________
17131713
user used bytes logi bytes used files aval bytes aval logib aval files filled[%] vol-status ino-status
1714-
adm 2.00 GB 1.00 GB 8.00 - 1.00 TB 0.5 TB 1.00 M- 0.00 ok ok
1714+
adm 2.00 GB 1.00 GB 8.00 - 2.00 TB 1.00 TB 1.00 M- 0.00 ok ok
17151715
17161716
The above configuration defines user quota for user ``adm`` with 1 TB of volume
17171717
quota and 1 Mio inodes under the directory subtree ``/eos/dev/plain``.
17181718
As you may notice EOS distinguishes between logical bytes and (physical) bytes.
17191719
Imagine a quota node subtree is configured to store 2 replica for each file,
1720-
then a 1 TB quota allows you effectivly to store 0.5 TB (aval logib = 0.5 TB!).
1721-
1722-
.. warning::
1723-
1724-
All quota set via the 'quota set' command is defining the (physical) bytes
1725-
and EOS displays the logical bytes value based on the layout definition on
1726-
the quota node.
1720+
then a 1 TB quota allows you effectivly to store 2 TB of raw data.
1721+
1722+
.. important::
1723+
All quotas set via the 'quota set' command define volume in raw bytes
1724+
by default, and EOS displays both logical and raw bytes values, based
1725+
on the layout definition on the quota node. The environment variable
1726+
'EOS_MGM_QUOTA_SET_BY_LOGICAL', when set, changes this default to be
1727+
in terms of logical bytes instead.
1728+
1729+
.. important::
1730+
If a quota node contains files with mixed layout, say 2 replica and RAID 6,
1731+
the raw and logical bytes usage will reflect it accordingly, i.e., you'd see
1732+
less than twice the logical bytes as raw bytes used. The quota system
1733+
enforces the *logical bytes usage*, such that in a directory with RAID6 layout,
1734+
adding files of 2 replica layout may cause the raw usage to exceed the amount
1735+
set in the quota node without actually running out of quota. You only run out
1736+
of quota when the logical space is exceeded.
17271737

17281738
The volume and inode status is displayed as 'ok' if there is quota left for
17291739
volume/inodes. If there is less than **5%** left, 'warning' is displayed,

0 commit comments

Comments
 (0)