From: Wang Shilong Date: Mon, 5 Jul 2021 14:38:59 +0000 (+0800) Subject: LUDOC-393 quota: include lfs project interface X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F44137%2F5;p=doc%2Fmanual.git LUDOC-393 quota: include lfs project interface lfs-project should be recommended to set/list project quota since chattr is server side RPMS. Since 2.14.51, project quota feature is enabled by default. Signed-off-by: Wang Shilong Change-Id: Id3e35776a3f489ec423e7633494fb074c7fc2971 Reviewed-on: https://review.whamcloud.com/44137 Tested-by: jenkins Reviewed-by: Andreas Dilger --- diff --git a/ConfiguringQuotas.xml b/ConfiguringQuotas.xml index 3035828..346ad60 100644 --- a/ConfiguringQuotas.xml +++ b/ConfiguringQuotas.xml @@ -200,7 +200,7 @@ usage database. Lustre filesystems formatted with a Lustre release prior to 2.10 can be still safely upgraded to release 2.10, but will not - have project quota usage reporting functional until + have project quota usage reporting functional until 2.15.0 or tune2fs -O project is run against all ldiskfs backend targets. This command sets the PROJECT feature flag in the superblock and runs e2fsck (as a result, the target must be offline). See @@ -409,10 +409,14 @@ $ lfs quota -g eng /mnt/testfs To limit quota usage for a specific project ID on a specific directory ("/mnt/testfs/dir" in this example), run: -$ chattr +P /mnt/testfs/dir -$ chattr -p 1 /mnt/testfs/dir +$ lfs project -s -p 1 -r /mnt/testfs/dir $ lfs setquota -p 1 -b 307200 -B 309200 -i 10000 -I 11000 /mnt/testfs + Recursively list all descendants'(of the directory) project attribute on + directory ("/mnt/testfs/dir" in this example), run: + +$ lfs project -r /mnt/testfs/dir + Please note that if it is desired to have lfs quota -p show the space/inode usage under the directory properly (much faster than du), then the