Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
habrok:data_management:quota [2020/10/21 11:30] – external edit 127.0.0.1 | habrok:data_management:quota [2023/04/18 09:45] (current) – [hbquota] admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== Quota ====== | ====== Quota ====== | ||
- | Quotas are applied on the [[storage_areas|available directories]] | + | Quotas are applied on the [[storage_areas|available directories]] home directories |
- | ===== pgquota ===== | + | All commands are explained below. |
- | This is a very simple wrapper around the '' | + | ===== hbquota ===== |
+ | |||
+ | The '' | ||
< | < | ||
- | pgquota | + | Quotas for: p123456 |
+ | /home1 | ||
+ | ############### | ||
+ | Quota: 50.0 GiB | ||
+ | Hard Limit: 50.0 GiB | ||
+ | Usage: 13.7 GiB | ||
+ | File Quota: | ||
+ | File Limit: | ||
+ | Files: | ||
+ | /projects | ||
+ | # | ||
+ | Quota: | ||
+ | Hard Limit: | ||
+ | Usage: 4.0 KiB | ||
+ | File Quota: | ||
+ | File Limit: | ||
+ | Files: 1 | ||
+ | /scratch | ||
+ | ##### | ||
+ | Quota: | ||
+ | Hard Limit: | ||
+ | Usage: 21.3 GiB | ||
+ | File Quota: | ||
+ | File Limit: | ||
+ | Files: | ||
</ | </ | ||
- | The output should look something like this: | + | ===== df ===== |
+ | The '' | ||
< | < | ||
- | Quotas for user p123456 | + | $ df -h $HOME |
- | /home | + | Filesystem |
- | ##### | + | 172.23.15.201:/nfs/ |
- | | + | |
- | Hard Limit: | + | |
- | Usage: | + | |
- | File Quota: 204800 | + | |
- | File Limit: | + | |
- | Files: | + | |
- | /data | + | |
- | # | + | |
- | Quota: | + | |
- | Hard Limit: | + | |
- | Usage: | + | |
- | File Quota: | + | |
- | File Limit: | + | |
- | Files: | + | |
- | /scratch | + | |
- | # | + | |
- | Quota: | + | |
- | Hard Limit: | + | |
- | Usage: | + | |
- | File Quota: | + | |
- | File Limit: | + | |
- | Files: | + | |
</ | </ | ||
- | 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: | ||
+ | You can use the '' | ||
< | < | ||
- | pgquota | + | $ df -i $HOME |
+ | Filesystem | ||
+ | 172.23.15.201:/ | ||
</ | </ | ||
+ | |||
+ | In these examples '' | ||
===== lfs ===== | ===== lfs ===== | ||
- | An example command, how to check quota for the /home directory using lfs: | + | An example command, how to check quota for the '' |
< | < | ||
- | lfs quota -h /home | + | lfs quota -hp $( id -g ) /scratch |
</ | </ | ||
+ | Where '' | ||
+ | |||
The output of the command will look as follows: | The output of the command will look as follows: | ||
< | < | ||
- | Disk quotas for user p123456 | + | Disk quotas for prj 10123456 |
- | | + | |
- | /home 786.2M | + | /scratch |
- | Disk quotas for group beheer (gid 500): | + | |
- | | + | |
- | | + | |
</ | </ | ||
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.\\ | 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.\\ | ||
Line 70: | Line 78: | ||
==== Group quota ==== | ==== Group quota ==== | ||
- | 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: | + | In the example above, information is shown for the private group belonging to your account, and its corresponding private directory/ |
< | < | ||
Line 81: | Line 89: | ||
uid=10123456(p123456) gid=10123456(p123456) groups=10123456(p123456), | uid=10123456(p123456) gid=10123456(p123456) groups=10123456(p123456), | ||
</ | </ | ||
- | This will show information about your user id, including the groups you belong to. In this case the groups are p123456 (private), | + | This will show information about your user id, including the groups you belong to. In this case the groups are p123456 (private), |
- | In order to obtain information about the quota for these groups you can supply the option -g to lfs quota. E.g.: | + | 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 -g pg-mygroup | + | lfs quota -p 55102132 |
</ | </ | ||
\\ | \\ | ||
- | You can combine this with '' | + | You can combine this with '' |