Disk quotas made easy!

Published: April 11th, 2017

Category: DiBiG News, FrontPage

code2

Checking your group’s disk quota on HiPerGator is somewhat painful, since the lfs quota command is not exactly user-friendly. You need to remember to specify a path under the /ufrc filesystem, and if you belong to multiple groups you need to specify each one separately with -g, the output is hard to read and expressed in kilobytes, which is not a very useful unit these days.

The qu command is meant to make checking your quotas easier. If you call it with no arguments, it will display the quota status for all groups you belong to. For example:

$ qu

Group        Used         Total        Perc    Over?
============ ============ ============ ======= =====
john              4585 GB      3221 GB  142.3%   *
paul             13373 GB     17179 GB   77.8%   
george           20548 GB     37580 GB   54.7%    
ringo             8458 GB         0 GB    0.0%

(Group names changed to members of a somewhat famous British band for privacy). In the above table, the first group (john) is over quota, and this is indicated by a * in the last column. The last group (ringo) has no quota, so its percentage will always be 0%.

If you want to see the status of only a subset of your groups, you can specify them on the command line:

$ qu john ringo

Group        Used         Total        Perc    Over?
============ ============ ============ ======= =====
john              4585 GB      3221 GB  142.3%   *
ringo             8458 GB         0 GB    0.0%

You can put the following lines in your .bash_profile file to see your quotas every time you log in:

module load dibig_tools
echo \#\#\# Quotas:
qu

The source code for this script is at /apps/dibig_tools/1.0/bin/qu.py. Please contact Alberto Riva for more information.

Leave a comment (Gatorlink Required)

Message