Table of Contents

Quota

Quotas are applied on the available directories home directories , /scratch and /projects. This means that there is a limit on how much data and how many files you can store. To find information about the space available you can use the commands df for the home directories, or lfs with the arguments quota and /scratch or /projects for the /scratch and /projects file systems.

All commands are explained below.

hbquota

The hbquota tool can be used on Hábrók to display your quota overview for the different file systems:

Quotas for: p123456
/home1
###############====================================    27% 
  Quota:	50.0 GiB
  Hard Limit:	50.0 GiB
  Usage:	13.7 GiB
  File Quota:	1000000
  File Limit:	1000000
  Files:	371741
/projects
#===================================================    0% 
  Quota:	250.0 GiB
  Hard Limit:	275.0 GiB
  Usage:	4.0 KiB
  File Quota:	512000
  File Limit:	537600
  Files:	1
/scratch
#####===============================================    8% 
  Quota:	250.0 GiB
  Hard Limit:	275.0 GiB
  Usage:	21.3 GiB
  File Quota:	512000
  File Limit:	537600
  Files:	11135

df

The df tool can be used for the home directories. An example is given below for disk space:

$ df -h $HOME
Filesystem               Size  Used Avail Use% Mounted on
172.23.15.201:/nfs/home   50G   15G   36G  29% /home1

You can use the -i option for number of files:

$ df -i $HOME
Filesystem               Inodes  IUsed  IFree IUse% Mounted on
172.23.15.201:/nfs/home 1000000 158540 841460   16% /home1

In these examples df will show the space available in the given location, where $HOME is your home directory. You can replace this path by another directory on the home directory storage, if you need information about that directory.

lfs

An example command, how to check quota for the /scratch or /projects directory using lfs:

lfs quota -hp $( id -g ) /scratch

Where $( id -g ) will be replaced by your numerical group id and in this case the output is for /scratch.

The output of the command will look as follows:

Disk quotas for prj 10123456 (pid 10123456):
     Filesystem    used   quota   limit   grace   files   quota   limit   grace
       /scratch  1.019G    250G    275G       -       4  204800  215040       -

There are limits for both the amount of data and for the number of files: the columns used, quota, and limit show the current usage and the soft and hard limits, while the columns files, quota, and limit on the right show the same information for the number of files.
The number beneath quota is a soft limit: you can go over this limit for about a week. After this you can no longer write data.
The second limit is a hard limit: you can never go above this limit. In general you should try to stay beneath the first soft limit.
Note that the output shows a quota for both user and group level. Only one of them should be set, either for your user, or for your private group.

Group quota

In the example above, information is shown for the private group belonging to your account, and its corresponding private directory/folder. You will be the only person in this group. If you collaborate with other users of the cluster you may also share a group with them. The command id can be used to find information about the groups you belong to:

id


The output will look as follows:

uid=10123456(p123456) gid=10123456(p123456) groups=10123456(p123456),55102132(pg-mygroup),55103524(pg-othergroup)

This will show information about your user id, including the groups you belong to. In this case the groups are p123456 (private), hb-mygroup and hb-othergroup.
In order to obtain information about the quota for these groups you can supply the numerical id for the group to lfs quota. The numerical id is listed before the group name. E.g. for pg-mygroup:

lfs quota -p 55102132 /scratch


You can combine this with -h using the combined option -hp.