From 53734b333f0dbdf9a519f8bfa7cebdc2f339a89e Mon Sep 17 00:00:00 2001
From: Branislav Jansik <branislav.jansik@vsb.cz>
Date: Mon, 5 Jun 2017 09:02:32 +0200
Subject: [PATCH] Include it4i-disk-usage for Anselm storage

---
 docs.it4i/anselm/storage.md | 46 +++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 25 deletions(-)

diff --git a/docs.it4i/anselm/storage.md b/docs.it4i/anselm/storage.md
index 2bc141c24..17f0d680d 100644
--- a/docs.it4i/anselm/storage.md
+++ b/docs.it4i/anselm/storage.md
@@ -156,39 +156,35 @@ The SCRATCH filesystem is realized as Lustre parallel filesystem and is availabl
 
 ### Disk Usage and Quota Commands
 
-User quotas on the file systems can be checked and reviewed using following command:
+Disk usage and user quotas can be checked and reviewed using following command:
 
 ```console
-$ lfs quota dir
+$ it4i-disk-usage
 ```
 
-Example for Lustre HOME directory:
-
-```console
-$ lfs quota /home
-Disk quotas for user user001 (uid 1234):
-    Filesystem kbytes   quota   limit   grace   files   quota   limit   grace
-         /home 300096       0 250000000       -    2102       0 500000    -
-Disk quotas for group user001 (gid 1234):
-    Filesystem kbytes   quota   limit   grace   files   quota   limit   grace
-        /home 300096       0       0       -    2102       0       0       -
-```
-
-In this example, we view current quota size limit of 250GB and 300MB currently used by user001.
-
-Example for Lustre SCRATCH directory:
+Example:
 
 ```console
-$ lfs quota /scratch
-Disk quotas for user user001 (uid 1234):
-     Filesystem kbytes   quota   limit   grace   files   quota   limit   grace
-          /scratch       8       0 100000000000       -       3       0       0       -
-Disk quotas for group user001 (gid 1234):
- Filesystem kbytes quota limit grace files quota limit grace
- /scratch       8       0       0       -       3       0       0       -
+$ it4i-disk-usage -h
+# Using human-readable format
+# Using power of 1024 for space
+# Using power of 1000 for entries
+
+Filesystem:    /home
+Space used:    112G
+Space limit:   238G
+Entries:       15k
+Entries limit: 500k
+
+Filesystem:    /scratch
+Space used:    0
+Space limit:   93T
+Entries:       0
+Entries limit: 0
 ```
 
-In this example, we view current quota size limit of 100TB and 8KB currently used by user001.
+In this example, we view current size limits and space occupied on  the /home and /scratch filesystem, for a particular user executing the command.
+Note that limits are imposed also on number of objects (files, directories, links, etc...) that are allowed to create.
 
 To have a better understanding of where the space is exactly used, you can use following command to find out.
 
-- 
GitLab