From b7a084f50d3b4c6fd65951f5701182ac0b0635c8 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Tue, 9 Jul 2019 13:40:01 -0400 Subject: [PATCH] LUDOC-405 quota: add default quota Add documentation for default quota. Change-Id: I63c3a7ea6d410e22c4d2706c294ea2cde2661fce Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/34720 Tested-by: jenkins Reviewed-by: James Nunez Reviewed-by: Joseph Gmitter --- ConfiguringQuotas.xml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/ConfiguringQuotas.xml b/ConfiguringQuotas.xml index d299d78..bc5d215 100644 --- a/ConfiguringQuotas.xml +++ b/ConfiguringQuotas.xml @@ -492,6 +492,62 @@ lctl get_param osd-*.*.quota_slave.limit* limits previously set by the administrator. +
+ + <indexterm> + <primary>Quotas</primary> + <secondary>default</secondary> + </indexterm>Default Quota + The default quota is used to enforce the quota limits for any user, + group, or project that do not have quotas set by administrator. + The default quota can be disabled by setting limits to + 0. +
+ + <indexterm> + <primary>Quotas</primary> + <secondary>usage</secondary> + </indexterm>Usage + +lfs quota [-U|--default-usr|-G|--default-grp|-P|--default-prj] /mount_point +lfs setquota {-U|--default-usr|-G|--default-grp|-P|--default-prj} [-b block-softlimit] \ + [-B block_hardlimit] [-i inode_softlimit] [-I inode_hardlimit] /mount_point +lfs setquota {-u|-g|-p} username|groupname -d /mount_point + + To set the default user quota: + +# lfs setquota -U -b 10G -B 11G -i 100K -I 105K /mnt/testfs + + To set the default group quota: + +# lfs setquota -G -b 10G -B 11G -i 100K -I 105K /mnt/testfs + + To set the default project quota: + +# lfs setquota -P -b 10G -B 11G -i 100K -I 105K /mnt/testfs + + To disable the default user quota: + +# lfs setquota -U -b 0 -B 0 -i 0 -I 0 /mnt/testfs + + To disable the default group quota: + +# lfs setquota -G -b 0 -B 0 -i 0 -I 0 /mnt/testfs + + To disable the default project quota: + +# lfs setquota -P -b 0 -B 0 -i 0 -I 0 /mnt/testfs + + + + If quota limits are set for some user, group or project, it will use + those specific quota limits instead of the default quota. Quota limits for + any user, group or project will use the default quota by setting its quota + limits to 0. + + +
+
<indexterm> -- 1.8.3.1