Linux disk quota configuration: Quota command

Source: Internet
Author: User

Linux also has disk quotas similar to those used by Windows NTFS, using quota to implement
Determine if installed by Rpm-q quota
With quota can only to patation do limit, to do for a directory to do only rely on ln-s to achieve. So it's important to plan for use at the outset.

For example, increase the quota for the user yuyii:
1. Vi/etc/fstab, will need to make a quota label that line to make changes, after defaults add, Usrquota,grpquota
2. Set up in a directory of Mount points, like I do/
3. Reboot or remount to load the configuration, recommended re-mount, Mount-o remount/
4. Quotacheck-avug do a check, the first run may appear "Quotacheck:warning-quotafile/var/quota.user was probably truncated. Can ' t save Quota Settings ... "ignored.
5. Start Quota:quotaon-avug (off to Quotaoff)
6. Edit a user's quota: edquota-u yuyii
As long as the modification of soft and hard,soft represents a soft quota, exceeding the grace given a certain number of days, hard relative, said absolutely cannot exceed. I set the soft to 90000,hard to 100000, which is 90M and 100M
Edit Grace Days: Edquota-t, the default is 7 days, the block grace under the change, changed to 1 days, when the soft quota to give a grace of 1 days, if not reduced space will no longer allow the account to increase the use of space (has not yet confirmed the function)
7. View your configured and used space: Quota-vu yuyii (Repquota-aug can see all users)

http://sookk8.blog.51cto.com/455855/224374/

Http://www.linuxidc.com/Linux/2015-01/111845.htm

Linux disk quota configuration: Quota command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.