Chapter 7. Implementing Disk Quotas
Disk quotas for user testuser (uid 501):
inodes
soft
hard
0
To verify that the quota for the user has been set, use the command:
quota testuser
7.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, then save the file.
To verify that the group quota has been set, use the command:
quota -g devel
7.1.6. Setting the Grace Period for Soft Limits
If soft limits are set for a given quota (whether inode or block and for either users or groups) the grace
period, or amount of time a soft limit can be exceeded, should be set with the command:
edquota -t
While other edquota commands operate on a particular user's or group's quota, the -t option
operates on every filesystem with quotas enabled.
7.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 exceed their quotas or consistently reach 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.
82
Filesystem
/dev/VolGroup00/LogVol02
blocks
soft
hard
440400
0
440436
500000
inodes
soft
0
37418
0
blocks
soft
hard
550000
37418
hard
0
0