Setting Quotas - Red Hat ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2 Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2:
Table of Contents

Advertisement

Chapter 3. Managing GFS2
GFS2 uses its gfs2_quota command to manage quotas. Other Linux quota facilities cannot be used
with GFS2.

3.5.1. Setting Quotas

Two quota settings are available for each user ID (UID) or group ID (GID): a hard limit and a warn
limit.
A hard limit is the amount of space that can be used. The file system will not let the user or group use
more than that amount of disk space. A hard limit value of zero means that no limit is enforced.
A warn limit is usually a value less than the hard limit. The file system will notify the user or group
when the warn limit is reached to warn them of the amount of space they are using. A warn limit value
of zero means that no limit is enforced.
Limits are set using the gfs2_quota command. The command only needs to be run on a single node
where GFS2 is mounted.
By default, quota enforcement is not set on GFS2 file systems. To enable quota accounting, use the
quota= of the mount command when mounting the GFS2 file system, as described in
"Enabling/Disabling Quota
Usage
Setting Quotas, Hard Limit
gfs2_quota limit -u User -l Size -f MountPoint
gfs2_quota limit -g Group -l Size -f MountPoint
Setting Quotas, Warn Limit
gfs2_quota warn -u User -l Size -f MountPoint
gfs2_quota warn -g Group -l Size -f MountPoint
User
A user ID to limit or warn. It can be either a user name from the password file or the UID number.
Group
A group ID to limit or warn. It can be either a group name from the group file or the GID number.
Size
Specifies the new value to limit or warn. By default, the value is in units of megabytes. The
additional -k, -s and -b flags change the units to kilobytes, sectors, and file system blocks,
respectively.
MountPoint
Specifies the GFS2 file system to which the actions apply.
16
Enforcement".
Section 3.5.4,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Global file system 2

Table of Contents