HP JFS 3.3 and HP OnLineJFS 3.3 VERITAS File System 3.3 System Administrator's Guide
124 Chapter7
Quotas
Using Quotas
Using Quotas
To use the quota functionality on a file system, quotas need to be turned
on. Quotas can be turned on either at mount time or any time after a file
system is mounted.
NOTE Before turning on quotas, the root directory of the file system must
contain a file owned by root, called quotas.
Quotas can be turned on for a file system at mount time by giving an
option to the mount command:
# mount -F vxfs -o quota
special
/
mount_point
edquota is a quota editor. User quotas can be set up with the edquota
command by the superuser:
# edquota
username
edquota creates a temporary file for the given user; this file contains
on-disk quotas for each mounted file system that has a quotas file. It is
not necessary that quotas be turned on for edquota to work. However,
the quota limits will be applicable only after quotas are turned on for a
given file system.
The soft and hard limits can be modified or assigned desired values. For
any user, usage can never exceed the hard limit.
Time limits can be modified using the command:
# edquota -t
Modified time limits apply to the entire file system and cannot be set
selectively for each user.
The quota command can be used to view a user’s disk quotas and usage
on VxFS file systems:
# quota -v
username
This displays the user's quotas and disk usage on all mounted VxFS file
systems where the quotas file exists.