Chapter 13. Implementing Disk Quotas
13.1.5. Assigning Quotas per Group
Quotas can also be assigned on a per-group basis. For example, to set a group quota for the devel
group (the group must exist prior to setting the group quota), use the command:
edquota -g devel
This command displays the existing quota for the group in the text editor:
Disk quotas for group devel (gid 505):
Filesystem
/dev/VolGroup00/LogVol02
Modify the limits, save the file, and then configure the quota.
To verify that the group quota has been set, use the command:
quota -g devel
13.1.6. Assigning Quotas per File System
To assign quotas based on each file system enabled for quotas, use the command:
edquota -t
Like the other edquota commands, this one opens the current quotas for the file system in the text
editor:
Grace period before enforcing soft limits for users:
Time units may be: days, hours, minutes, or seconds
Filesystem
/dev/mapper/VolGroup00-LogVol02
Change the block grace period or inode grace period, save the changes to the file, and exit the text
editor.
13.2. Managing Disk Quotas
If quotas are implemented, they need some maintenance — mostly in the form of watching to see if
the quotas are exceeded and making sure the quotas are accurate. Of course, if users repeatedly
exceeds their quotas or consistently reaches their soft limits, a system administrator has a few choices
to make depending on what type of users they are and how much disk space impacts their work. The
administrator can either help the user determine how to use less disk space or increase the user's disk
quota if needed.
13.2.1. Enabling and Disabling
It is possible to disable quotas without setting them to be 0. To turn all user and group quotas off, use
the following command:
quotaoff -vaug
120
blocks
soft
hard
440400
0
Block grace period
7days
inodes
soft
0
37418
0
Inode grace period
7days
hard
0