92
Chapter 9. Managing GFS
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}
MountPoint
Specifies the GFS file system to which the actions apply.
quota_account {0|1}
0 = disabled
1 = enabled
9.4.5.2. Comments
To enable quota accounting on a file system, the
quota_account
parameter must be set back to 1. Af-
terward, the GFS quota file must be initialized to account for all current disk usage for users and groups
on the file system. The quota file is initialized by running:
gfs_quota init -f
MountPoint
.
Note
Initializing the quota file requires scanning the entire file system and may take a long time.
Содержание GFS 5.2.1 -
Страница 1: ...Red Hat GFS 5 2 1 Administrator s Guide...
Страница 8: ......
Страница 14: ...vi Introduction...
Страница 24: ...10 Chapter 1 GFS Overview...
Страница 36: ...22 Chapter 4 Initial Configuration...
Страница 84: ...70 Chapter 6 Creating the Cluster Configuration System Files...
Страница 96: ...82 Chapter 8 Using Clustering and Locking Systems...
Страница 126: ...112 Chapter 10 Using the Fencing System...
Страница 132: ...118 Chapter 11 Using GNBD...
Страница 144: ...130 Appendix A Upgrading GFS...
Страница 184: ...170 Appendix B Basic GFS Examples...
Страница 190: ......
Страница 192: ...178...