This is an old revision of the document!


Quota

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

This is a very simple wrapper around the lfs command that displays user quota. Simply type:

pgquota

The output should look something like this:

Quotas for user p123456
/home
#####===============================================    8%
  Quota:    20G
  Hard Limit:   22G
  Usage:    1.79G
  File Quota:   204800
  File Limit:   225280
  Files:    44966
/data
#===================================================    0%
  Quota:    250G
  Hard Limit:   275G
  Usage:    288.3M
  File Quota:   1024000
  File Limit:   1126400
  Files:    5
/scratch
#===================================================    0%
  Quota:    45T
  Hard Limit:   50T
  Usage:    4k
  File Quota:   5120000
  File Limit:   5632000
  Files:    1

By default the program only shows quota for the user, but if you wish to see quotas displayed for all your groups, simply add the ‘-a’ flag as follows:

pgquota -a

An example command, how to check quota for the /home directory using lfs:

lfs quota -h /home

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
          /home 786.2M       0       0       -   28418       0       0       -
Disk quotas for group beheer (gid 500):
     Filesystem  used   quota   limit   grace   files   quota   limit   grace
          /home  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 /data


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