Skip to content

chaos/rquota

Repository files navigation

rquota

rquota provides drop-in replacements for the quota and repquota utilities on Linux and other UNIX-like operating systems. Its configuration file makes it possible to limit the file systems queried to only those of interest, and to alias them for human readability in quota output. Block counts are converted to human readable units.

rquota supports remote NFS and, if configured --with-lustre, Lustre file systems. At this time it does not support quotas on local file systems.

Config file

/etc/quota.conf consists of one line per file system, with # indicating that the remainder of a line is a comment.

Each line consists of the following fields delimited by colons:

  • description: the path that will be displayed by the quota program, typically the local mount point
  • hostname: the name of the NFS server exporting the file system, or the lustre if the file system type is Lustre.
  • remote path: the NFS server-side path of file system, or the local mount point if the file system type is Lustre.
  • percent: the percentage of hard quota which, when exceeded, causes quota to warn the user. This can be used as a simpler alternative to soft quotas if desired. Set to zero to disable.
  • nolimit: an optional flag that indicates that this file system has no limits set so don’t bother querying it when quota is run without the -v option.

Origin

This utility was originally written for California State University, Chico in the mid 1990s, for a network of Sun and HP-UX systems in the Computer Science and Engineering department. It allowed NFS quotas to be displayed compactly at login without delaying the login process waiting for irrelevant mounted file systems to respond to quota requests. CSU, Chico graciously allowed it to be released as open source.