System information

The first column is the name of the file system that has a quota enabled for it. The second column
shows how many blocks the user is currently using. The next two columns are used to set soft and
hard block limits for the user on the file system. The i no d es column shows how many inodes the
user is currently using. The last two columns are used to set the soft and hard inode limits for the
user on the file system.
The hard block limit is the absolute maximum amount of disk space that a user or group can use.
Once this limit is reached, no further disk space can be used.
The soft block limit defines the maximum amount of disk space that can be used. However, unlike the
hard limit, the soft limit can be exceeded for a certain amount of time. That time is known as the grace
period. The grace period can be expressed in seconds, minutes, hours, days, weeks, or months.
If any of the values are set to 0, that limit is not set. In the text editor, change the desired limits.
Examp le 16 .4 . Ch an ge d esired limit s
For example:
Disk quotas for user testuser (uid 501):
Filesystem blocks soft hard inodes soft
hard
/dev/VolGroup00/LogVol02 440436 500000 550000 37418 0
0
To verify that the quota for the user has been set, use the command:
# quota username
Disk quotas for user username (uid 501):
Filesystem blocks quota limit grace files quota limit
grace
/dev/sdb 1000* 1000 1000 0 0 0
16.1.5. Assigning Quot as per Group
Quotas can also be assigned on a per-group basis. For example, to set a group quota for the d evel
group (the group must exist prior to setting the group quota), use the command:
# ed q uo ta -g d evel
This command displays the existing quota for the group in the text editor:
Disk quotas for group devel (gid 505):
Filesystem blocks soft hard inodes soft
hard
/dev/VolGroup00/LogVol02 440400 0 0 37418 0
0
Modify the limits, then save the file.
To verify that the group quota has been set, use the command:
# q uo ta -g d evel
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
122