3 checking quota limits, Checking quota limits -41, Section 5.7.3 f – HP StorageWorks Scalable File Share User Manual
Page 125

Managing quotas
5–41
You must run the command on a client node that has been configured as described in Section 5.7.2.3, and
where the file system is mounted. Note also that the
lfs setquota
command will not succeed if the
lfs
quotacheck
command has not been run first to activate quota functionality on the file system, as described
CAUTION:
Do not run the
lfs setquota
command while there are applications performing
I/O operations on the file system; otherwise, the block hard limit may not be correctly enforced.
For example, to limit the user
fred
to approximately 10GB of storage and 2M inodes in the
/data
file
system, enter the following command:
# lfs setquota -u fred 0 10000000 0 2000000 /data
Note that you only need to run this command once, on one client node. When the
lfs setquota
command has been run once against a file system, as described here, user and/or group quotas are set on
the file system for all client nodes.
If the
lfs setquota
command fails with the following error message, this indicates that quota functionality
has not yet been activated on the file system (that is, the
lfs quotacheck
command has not yet been run
as described in Section 5.7.2.5):
setquota failed: No such process
When the user or group limits have been set, you can use the
lfs quotacheck
command to verify the
limits, as described in Section 5.7.3.
5.7.3 Checking quota limits
Ordinary users can display their own file system usage and limits using the standard
quota
(1) command.
The
root
user can use the
lfs quotacheck
command to resynchronize the quota statistics with the actual
usage in the file system, as described here.
The first time the
lfs quotacheck
command is run against a file system, it activates quota functionality
on the file system, as described in Section 5.7.2.5. After that, the
lfs quotacheck
command can be run
(on any client node where the file system is mounted) to resynchronize the quota statistics with the actual
block and inode usage in the file system.
CAUTION:
Do not run the
lfs quotacheck
command while there are applications performing
I/O operations on the file system; otherwise, the statistics in the quota files may be wrong.
The syntax of the
lfs quotacheck
command is as follows:
lfs quotacheck -[a] [v] [u] [g] mountpoint
Where:
-a
Checks all the quota-enabled file systems.
-v
Displays status information as the command executes.
-u
Checks the user quota data.
-g
Checks the group quota data.
-mountpoint
Is the mount point of a file system.
For example, assuming that quotas have already been enabled on the
data
file system and you want to
synchronize the user and group quotas on the file system, enter the following command:
# lfs quotacheck -ug /data