Users are able to check quotas and usage for home and project directories
as well as Panasas scratch directories using the iquota tool
What do quotas limit?
These spaces all have a quota for usage AND number of files. This is to prevent an errant processes from creating so many files it crashes the system or makes it unstable for others. If you are getting 'out of space' or I/O errors, please verify you are not over quota in either space or number of files.
Please see this article for current file limit quotas on the various storage and directories.
Your user quota (home directory - /user/<username>):
ccrkinit
NOTE: You will see "Enter OTP Token Value:" - Enter your password AND one-time token all in the same line here
iquota
or
iquota -p /user/username
Your group's shared project directory quota:
NOTE: You must specify the full path of your directory. Not all project directories are in /projects/academic
ccrkinit
NOTE: You will see "Enter OTP Token Value:" - Enter your password AND one-time token all in the same line here
iquota -p /projects/academic/YourGroupName
HINT: Do not include the trailing slash in the directory name
Your group's shared Panasas scratch directory quota:
ccrkinit
NOTE: You will see "Enter OTP Token Value:" - Enter your password AND one-time token all in the same line here
iquota -p /panasas/scratch/grp-YourGroupName
HINT: Do not include the trailing slash in the directory name
NOTE: iquota only reports the total number of files for the group on the Panasas storage. If you're getting 'out of space' or I/O errors and the group is not over the file limit, it could be your individual limit has been reached. Please email CCR help to request a quota check.
iquota usage:
The iquota command has much more built into it than former versions. Use iquota -h to see all the options.
NOTE: You will need to get a kerberos key before running the command, with: kinit
[ccruser@vortex1:~]$ iquota -h
NAME:
iquota - displays CCR quotas
USAGE:
iquota [global options] command [command options] [arguments...]
AUTHOR:
Andrew E. Bruno <aebruno2@buffalo.edu>
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--conf value, -c value Path to conf file
--debug, -d Print debug messages
--user, -u Print user quota
--long, -l display long listing
--show-user value Print user quota for specified user (super-user only)
--show-group value Print group quota for specified group
-p value, --path value, -f value, --filesystem value report quota for filesystem path
--help, -h show help
Calculating disk usage at the Linux command line:
Knowing your quota and how much of it you've used is helpful, but often we want to know where the disk usage is actually taking place. You can run this command to calculate the total size of each file and sub-directory and then sort it from largest to smallest. You will only be able to run this where you have permission to read files, so it's appropriate to run in your home directory: /user/[ubit_username] or your group's project directory.
ncdu
There are many options for sorting as well as the ability to delete files within this interface: