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.)
To see the current values of the GFS tunable parameters, including
quota_enforce
, you can
use the
gfs_tool gettune
, as described in
Section 4, “Displaying GFS Tunable Parameters”
.
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
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.
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
5.5. Disabling/Enabling Quota Accounting
By default, quota accounting is enabled; therefore, GFS keeps track of disk usage for every
user and group even when no quota limits have been set. Quota accounting incurs unnecessary
overhead if quotas are not used. You can disable quota accounting completely by setting the
Disabling/Enabling Quota Accounting
23
Содержание GLOBAL FILE SYSTEM 5.2
Страница 4: ...Global File System...
Страница 6: ...vi...