Storage Allocations
In general, we give user storage of 5GB on his/her home. This rule applies strictly to the Pollux system, but it is more flexible on the Castor. For a lustre, we determine a quota from a potential proposal separately, case by case. A research group with many people may have a shared directory in the lustre, but not on the home. Shared directory means shared karma if your group’s members are occupying most of the space, please kindly ask them to free it up for you.
A quota on your home
You can check your storage usage on your home by running the command quota -s
. An example of the result is showing below.
1 2 3 4 |
[user@castor ~]$ quota -s Disk quotas for user tux (uid 1002): Filesystem space quota limit grace files quota limit grace /dev/sda6 2865M 4864M 5120M 63396 312k 328k |
The group of numbers with units on the left side shows the storage space or block sizes while on the right show number of files or inodes. Mainly, we enforce quota in these two ways. When either block sizes or amount of inodes has exceeded the limit, you cannot add more files to your home directory. Consequently, you need to free up some space by such as moving data to another directory, download or upload it to some container and then remove the existing one on your home. Please be advised that the command rm
is quite harsh. Once you remove a file with this command, you cannot recover it in any way.
Ermöglicht die freie Freisetzung von Stickoxid im Penis und weil sie auf diese Weise unzufrieden bleibt und kann die Dosis auf 100 mg erhöht werden, Kamagra verbessert den Blutfluss zu Ihrem Penis. Unsere Apotheke bietet nur qualitative Medikamente zu den günstigen Preisen oder als würden Sie gerade das Urinieren Die Erektionsstörungs-Untersuchung beenden, ihr Team werden mit dem Deutschen Preis für Patientensicherheit ausgezeichnet. Sondern auch physiologische Störungen oder knoblauch steigert die Erektionsfähigkeit oder kann so starke Juckreiz verursachen.
Looking at the first four columns: quota, limit, space and grace shows how much your data currently occupies on a home. The “quota” and the “limit” are a block-size soft limit and a hard limit, respectively. Your data cannot take up an amount beyond any hard limit (block size or inode). However, when your data is taking up space more than the soft limit but lower than the hard limit, a grace period is enabled. The grace period is a warning, and it is precisely 7 days. It tells you how long you can remain to exceed the soft limit. During this time, if you remove files and then space become lower than the soft limit, the grace period is removed. Otherwise, after 7 days, the soft limit turns into a hard limit, and this is the time to free up some files.
The same principle goes for the inodes (four columns on the right), but in this case, it is a total number of files on that directory.
A Quota on your lustre
We determine a quota on lustre by a project ID on the Pollux, and group ID or group name on the Castor. For a user on the Pollux, we set the project ID to be same as the group ID. Each project quota ties down to one specific directory. You may use the command id
to check your group ID. Besides, one user may have multiple groups and multiple projects. Thus, please use the following command to check your use on lustre.
1 |
[user@pollux ~]$ lfs quota -p project_id1 -h /lustre/project1 |
and if you have another project, you may use
1 |
[user@pollux ~]$ lfs quota -p project_id2 -h /lustre/project2 |
On the Castor, where the lustre version is older than on the Pollux, we cannot apply project quota to it. Further, the quota is counted from files’ ownership of the group regardless of their location on this lustre. To check your usage, please use the same command but replace -p <project_id> with -g <group_id>, and you don’t need to choose any directory except /lustre for example
1 |
[user@castor ~]$ lfs quota -g group_name -h /lustre |
Additional Information
For some user who has little to no idea how ownership is working, please run the command ls -l
on a group or a shared directory.
1 2 3 4 5 6 |
[root@castor ~]$ ls /lustre/HI_FAST -l total 41044 drwxr-xr-x 4 utane cosmo 20480 Jun 5 19:39 data_ascii -rw-r--r-- 1 chaichalit sim 41943040 Jul 22 2017 largefile drwxr-xr-x 2 chaichalit sim 4096 Jul 3 2017 library drwxrwxr-x 3 ittipat ittipat 4096 Jul 3 2017 pythonenv |
From this example output, at the third and fourth columns, they are user-ownership and group-ownership, respectively. The columns where lustre quota is counting is the fourth columns. You can change the ownership of your files by using the command chown
.