98
Chapter 9. Managing GFS
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,
quota_enforce
, with the
gfs_tool
command. The
quota_enforce
parameter must be disabled or enabled on each node where quota enforcement
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
.
gfs_tool settune /gfs quota_enforce 0
This example
enables
quota enforcement on file system
/gfs
.
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
quota_account
tunable parameter to 0. This
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
quota_account
tunable parameter to 1.
9.4.5.1. Usage
gfs_tool settune
MountPoint
quota_account {0|1}
Summary of Contents for GFS 6.0 -
Page 1: ...Red Hat GFS 6 0 Administrator s Guide...
Page 8: ......
Page 88: ...74 Chapter 6 Creating the Cluster Configuration System Files...
Page 98: ...84 Chapter 7 Using the Cluster Configuration System...
Page 102: ...88 Chapter 8 Using Clustering and Locking Systems...
Page 128: ...114 Chapter 9 Managing GFS...
Page 134: ...120 Chapter 10 Using the Fencing System...
Page 144: ...130 Chapter 12 Using GFS init d Scripts...
Page 148: ...134 Appendix A Using Red Hat GFS with Red Hat Cluster Suite...
Page 184: ...170 Appendix C Basic GFS Examples...
Page 190: ......