Free Space Check
myquota is a command available on the cluster that allows you to check
- how much space you use,
- how much space remains
on the different storage spaces you have access on the cluster, that is your home, your different project spaces on Zeus and the temporary scratch workspace.
Command line help#
You can access the short help directly on the command line
myquota help (text)
login@maestro-submit ~ $ myquota -h
usage: myquota.py [-h] [-u USER] [-b] [-c]
[-s {filesystem,type,size,used,mod>60days,acc>60days,avail,use%,mod%>60days,acc%>60days,inodes}]
[-d] [-r REPLACE] [-D]
[needle]
Get your filesystem usage
optional arguments:
-h, --help show this help message and exit
selection (optional):
-u USER, --user USER specify user (current user by default)
needle search for a string in filesystem pathname
output (optional):
-b, --bytes output size using bytes instead of powers of 1024
-c, --csv csv output
-s {filesystem,type,size,used,mod>60days,acc>60days,avail,use%,mod%>60days,acc%>60days,inodes}, --sort {filesystem,type,size,used,mod>60days,acc>60days,avail,use%,mod%>60days,acc%>60days,inodes}
Sort by field
-d, --details More detailed output
internal (optional and advanced usage):
-r REPLACE, --replace REPLACE
replace string in the form 'old,new'. Can be used
multiple time
help:
-D, --description Get a short description of each output column
Disk usage of a user#
By default, you have access to the information concerning yourself:
myquota default usage (text)
login@maestro-submit ~ $ myquota
Filesystem (2023-09-19 11:40) Type Size Used Avail Use%
/pasteur/appa/homes/login user 100.00G 15.85G 84.15G 15.8%
/pasteur/zeus/projets/p01/project1 project 10.00T 4.91T 5.09T 49.1%
/pasteur/zeus/projets/p02/project2 project 500.00G 374.44G 125.56G 74.9%
/pasteur/zeus/projets/p02/project3 project 1.00T 0B 1.00T -
Filesystem (2023-09-19 04:00) Type Size Used Avail Use%
/pasteur/appa/scratch/OtherProject group - 10.84G - -
/pasteur/appa/scratch/login group - 393.58G - -
Disk usage update
As you can see, the date of the last disk usage collection is displayed in the header for each file system.
zeusdisk usage is updated every 5 minutes. It includes/pasteur/appa/homes/pasteur/zeus/projets/p01/pasteur/zeus/projets/p02/pasteur/appa/scratchdisk usage is updated at least once a day depending on the usage.
As a consequence, even if you don't see the effect of your mv or rm immediately in myquota, it doesn't mean that the space hasn't been freed.
On the temporary space /pasteur/appa/scratch, you can also check the space usage of your colleagues using option -u. This way you can coordinate with them and ensure that your unit won't take too much space:
myquota -u to check someone else disk usage (text)
login@maestro-submit ~ $ myquota -u userB
Filesystem (2023-09-19 11:50) Type Size Used Avail Use%
/pasteur/appa/homes/userB user 100.00G 97.84G 2.16G 97.8%
/pasteur/zeus/projets/p01/project1 project 10.00T 4.91T 5.09T 49.1%
/pasteur/zeus/projets/p02/project4 project 97.00T 60.86T 36.14T 62.7%
Filesystem (2023-09-19 04:00) Type Size Used Avail Use%
/pasteur/appa/scratch/userB group - 45.10T - -
/pasteur/appa/scratch/userB_OtherDir user - 72.19G - -
/pasteur/appa/scratch/OtherProject group - 10.84G - -
Disk usage of a space#
You can also obtain the disk usage of a project space. You don't need to provide the full name of the space if you don't remember it. In that case, just provide a string contained in the name of the space. In the following example, we want to know the disk usage of a space containing the string HPC:
Quota of a space (text)
login@maestro-submit ~ $ myquota HPC
Filesystem (2023-09-19 04:00) Type Size Used Avail Use%
/pasteur/appa/scratch/hpc group - 393.58G - -
Filesystem (2023-09-19 14:30) Type Size Used Avail Use%
/pasteur/zeus/projets/p01/hpc project 10.00T 4.91T 5.09T 49.1%
/pasteur/zeus/projets/p02/CSD_hpc project 20.00T 16.81T 3.19T 84.1%
/pasteur/zeus/projets/p02/Projets_Mph_HPC project 20.00T 1.65T 18.35T 8.3%
/pasteur/zeus/projets/p02/naat-hpc project 20.00T 1.78T 18.22T 8.9%
As you can see the search is case insensitive. Every project space containing the string HPC is listed whatever:
- the file system that hosts it,
- the user who executes the command belongs to the unix group or not.
Related articles#
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
false5FAQAfalsemodifiedtruepagelabel in ("free","space","quota","disk","storage") and type = "page" and space = "FAQA"quota space disk free storage
true
| Related issues |