Quota

From UMIACS
Jump to navigation Jump to search

Quotas

File systems that support RPC quotad quotas are reported to the user by the df command. Home directories that are mounted from our Isilon NAS will support these kinds of quotas.

To find out what your current quota is, run df . to find out what file system you are currently mounted from (in this example it is data.isilon.umiacs.umd.edu:/ifs/umiacs/homes/username).

$ df -h .
Filesystem                                            Size    Used  Avail Use% Mounted on
data.isilon.umiacs.umd.edu:/ifs/umiacs/homes/username  30G    3.2M  30G   1% /nfshomes/username

If you have hit your quota and haven't realized it, you may see some strange issues. For example, you will not be able to write-out files (although 'touch' and file concatenation will succeed). Some applications such as vi will throw "FSync" errors. Similarly, commands such as wget will appear to succeed but your files will be zero-length.

Calculating Space Usage

When you are looking to diagnose how much space you are using you often want to know how much storage the immediate directories are taking in a certain folder. The utility to do this is du. Since *NIX operating systems use the concept of .. for the previous directory simple file globs like .* don't provide exactly what you need since in certain places like your home directories there are a lot of dot files or hidden files (eg. .somename). To identify all files and directories from the current directory you can use something like du -hs .[^.]* *.

-bash-4.2$ du -hs .[^.]* *
48K     .bash_history
94M     .cache
160K    .compiz
3.0M    .config
32K     .gconf
64K     .gnupg
48K     .history
48K     .ICEauthority
4.2M    .local
29M     .mozilla
224K    .ssh
48K     .viminfo
48K     .Xauthority
48K     .xsession-errors
7.2M    catkin_ws
32K     Desktop
32K     Documents
57M     Downloads
32K     Music
32K     perl5
32K     Pictures
32K     Public
32K     Templates
32K     Videos