Disabling/Enabling Quota Enforcement; Disabling/Enabling Quota Accounting - Red Hat GFS 6.0 Administrator's Manual

Hide thumbs Also See for GFS 6.0:
Table of Contents

Advertisement

98

9.4.4. Disabling/Enabling Quota Enforcement

Enforcement of quotas can be disabled for a file system without clearing the limits set for all users
and groups. Enforcement can also be enabled. Disabling and enabling of quota enforcement is
done by changing a tunable parameter,
parameter must be disabled or enabled on each node where quota enforcement
quota_enforce
should be disabled/enabled. Each time the file system is mounted, enforcement is enabled by default.
(Disabling is not persistent across unmounts.)
9.4.4.1. Usage
gfs_tool settune MountPoint quota_enforce {0|1}
MountPoint
Specifies the GFS file system to which the actions apply.
quota_enforce {0|1}
0 = disabled
1 = enabled
9.4.4.2. Comments
A value of 0 disables enforcement. Enforcement can be enabled by running the command with a value
of 1 (instead of 0) as the final command line parameter. Even when GFS is not enforcing quotas, it
still keeps track of the file system usage for all users and groups so that quota-usage information does
not require rebuilding after re-enabling quotas.
9.4.4.3. Examples
This example disables quota enforcement on file system
gfs_tool settune /gfs quota_enforce 0
This example enables quota enforcement on file system
gfs_tool settune /gfs quota_enforce 1

9.4.5. Disabling/Enabling Quota Accounting

By default, GFS keeps track of disk usage for every user and group even when no quota limits have
been set. This accounting incurs some overhead that is unnecessary if quotas are not used. This quota
accounting can be completely disabled by setting the
must be done on each node and after each mount. (The 0 setting is not persistent across unmounts.)
Quota accounting can be enabled by setting the
9.4.5.1. Usage
gfs_tool settune MountPoint quota_account {0|1}
, with the
quota_enforce
.
/gfs
.
/gfs
quota_account
quota_account
Chapter 9. Managing GFS
command. The
gfs_tool
tunable parameter to 0. This
tunable parameter to 1.

Advertisement

Table of Contents
loading

Table of Contents