This is an old revision of the document!


Quota

Quotas are applied on the available directories /home and /scratch. 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 command hbquota or lfs with the arguments quota and /scratch for the /scratch file system. Both commands are explained below.

The quota tool has not yet been ported to Hábrók.

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

lfs quota -h /scratch

The output of the command will look as follows:

Disk quotas for user p123456 (uid 123456):
     Filesystem  used   quota   limit   grace   files   quota   limit   grace
          /scratch 786.2M       0       0       -   28418       0       0       -
Disk quotas for group beheer (gid 500):
     Filesystem  used   quota   limit   grace   files   quota   limit   grace
          /scratch  786.2M  20971520 23068672       -    6042  204800  225280       -

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.

In the example above, information is shown for the private group belonging to your account. 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), pg-mygroup and pg-othergroup.
In order to obtain information about the quota for these groups you can supply the option -g to lfs quota. E.g.:

lfs quota -g pg-mygroup /scratch


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