Enabling And Disabling; Reporting On Disk Quotas - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

7.2.1. Enabling and Disabling

It is possible to disable quotas without setting them to 0. To turn all user and group quotas off, use the
following command:
quotaoff -vaug
If neither the -u or -g options are specified, only the user quotas are disabled. If only -g is specified,
only group quotas are disabled. The -v switch causes verbose status information to display as the
command executes.
To enable quotas again, use the quotaon command with the same options.
For example, to enable user and group quotas for all file systems, use the following command:
quotaon -vaug
To enable quotas for a specific file system, such as /home, use the following command:
quotaon -vug /home
If neither the -u or -g options are specified, only the user quotas are enabled. If only -g is specified,
only group quotas are enabled.

7.2.2. Reporting on Disk Quotas

Creating a disk usage report entails running the repquota utility. For example, the command
repquota /home produces this output:
*** Report for user quotas on device /dev/mapper/VolGroup00-LogVol02 Block grace time:
7days; Inode grace time: 7days
File limits User
---------------------------------------------------------------------- root
0
0
0
0 testuser
To view the disk usage report for all (option -a) quota-enabled file systems, use the command:
repquota -a
While the report is easy to read, a few points should be explained. The -- displayed after each user
is a quick way to determine whether the block or inode limits have been exceeded. If either soft limit is
exceeded, a + appears in place of the corresponding -; the first - represents the block limit, and the
second represents the inode limit.
The grace columns are normally blank. If a soft limit has been exceeded, the column contains a
time specification equal to the amount of time remaining on the grace period. If the grace period has
expired, none appears in its place.
used
soft
4
0
0 kristin
--
440400
500000
550000
Block limits
hard
grace
used
--
540
37418
Enabling and Disabling
soft
hard
grace
--
0
0
0
0
36
125
83

Advertisement

Table of Contents
loading

Table of Contents