Previous  |  Next  >  
Product: File System Guides   
Manual: File System 4.1 Administrator's Guide   

Using Quotas

This section shows usage examples of the VxFS quota commands.

quotaon

To use the quota functionality on a file system, quotas must be turned on. You can turn them on at mount time or after a file system is mounted.


Note   Note    Before turning on quotas, the root directory of the file system must contain a file for user quotas named quotas owned by root.

To turn on quotas for a VxFS file system, enter:


 # quotaon /mount_point

mount

You can also turn on quotas for a file system at mount time by specifying the –o quota option to the mount command:


 # mount F vxfs o quota special /mount_point

edquota

You can set up user quotas using the edquota command. You must have superuser privileges to edit quotas:


 # 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 are applicable only after quotas are turned on for a given file system.

The soft and hard limits can be modified or assigned values. For any user, usage can never exceed the hard limit after quotas are turned on. 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.

quota

Use the quota command 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.

quot

Use the quot command to display the number of blocks owned by each user in a file system. The following command displays the number of files and the space owned by each user:


 # quot f filesystem

quotaoff

To turn off quotas for a mounted file system, enter:


 # quotaoff /mount_point
 ^ Return to Top Previous  |  Next  >  
Product: File System Guides  
Manual: File System 4.1 Administrator's Guide  
VERITAS Software Corporation
www.veritas.com