1752565 Members
5856 Online
108788 Solutions
New Discussion юеВ

Disk Quota

 
Daniel Ubeda
Frequent Advisor

Disk Quota

Hi,

I need to limit the disk usage to several users.
Are there any command to do this ?
How can I configure the edquota ?
It is for HFS and VXFS filesystems ?

thanks
Daniel
2 REPLIES 2
Domenico_5
Respected Contributor

Re: Disk Quota

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.
To turn off quotas for a mounted file system, enter:

# umount /mount_point
# mount -F vxfs special /mount_point