System information

none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol02 /home ext3 defaults,usrquota,grpquota
1 2
/dev/VolGroup00/LogVol01 swap swap defaults 0 0 . . .
In this example, the /ho me file system has both user and group quotas enabled.
Note
The following examples assume that a separate /ho me partition was created during the
installation of Red Hat Enterprise Linux. The root (/) partition can be used for setting quota
policies in the /etc/fstab file.
16.1.2. Remount ing t he File Syst ems
After adding the usrq uo ta and/or g rpq uo ta options, remount each file system whose fstab entry
has been modified. If the file system is not in use by any process, use one of the following methods:
Issue the umo unt command followed by the mo unt command to remount the file system. Refer to
the man page for both umo unt and mo unt for the specific syntax for mounting and unmounting
various file system types.
Issue the mo unt -o remo unt file-system command (where file-system is the name of the
file system) to remount the file system. For example, to remount the /ho me file system, the
command to issue is mo unt -o remo unt /ho me.
If the file system is currently in use, the easiest method for remounting the file system is to reboot the
system.
16.1.3. Creat ing t he Quot a Dat abase Files
After each quota-enabled file system is remounted run the q uo tacheck command.
The quo tacheck command examines quota-enabled file systems and builds a table of the current
disk usage per file system. The table is then used to update the operating system's copy of disk
usage. In addition, the file system's disk quota files are updated.
To create the quota files (aq uo ta. user and aq uo ta. gro up) on the file system, use the -c option
of the q uo tacheck command.
Examp le 16 .3. Creat e q u o t a files
For example, if user and group quotas are enabled for the /ho me file system, create the files in the
/ho me directory:
# q uo tacheck -cug /ho me
The -c option specifies that the quota files should be created for each file system with quotas
enabled, the -u option specifies to check for user quotas, and the -g option specifies to check for
group quotas.
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
120