Linux Disk Quota Operations Guide

Source: Internet
Author: User
Tags file system

Mount | grep partition name to see if the partition supports disk quotas

Mount-o Remount,usrquota,grpquota/home temporarily enabled quota

Vim/etc/fstab

Default,usrquota,grpquota permanently Enable quota

Quotacheck-avug scan file system and create quota log

-A: Scan all/etc/mtab, containing quota support filesystem, plus this parameter,/mount_point do not have to write, because scan all filesystem!

-U: for user scan file and directory usage, create Aquota.user

-G: For group scan file and directory usage, will create Aquota.group

-V: Information to display the scanning process;

Quotaon-avug Start Quota Service

-U: Start quota for consumer (aquota.user)

-G: Start quota for group (Aquota.group)

-V: Displays information about the startup process;

-A: Start the related quota according to the filesystem configuration within the/etc/mtab, if not plus-a,

Then you need to add a specific filesystem Oh!

Quotaoff-a to shut down all file systems quota

Quotaoff-ug/mount_point

-A: All filesystem quota are closed (according to/etc/mtab)

-U: Turn off user quota only for the/mount_point that follows

-G: Closes the group quota only for the/mount_point that follows

Edquota-u Username Configuration username Limit value

edquota-g groupname configuration GroupName limit value

Edquota-t to modify the width of the limited room

Edquota-p Template Account-U new Account

Quota: A single user's quota report

Quota-uvs username

Quota-gvs GroupName

-U: The username can be followed to indicate the quota limit value of the consumer. If the username is not connected, the quota limit value of the performer is displayed.

-G: GroupName can be followed to indicate the quota limit value of the group.

-V: Displays the quota value of each user in filesystem;

-S: Use 1024 as a multiple to specify units, will display such as M units!

Repquota: Reporting on file system limits

repquota-a [-vugs]

-A: Direct to/etc/mtab search for filesystem with quota signs and report quota results;

-V: The output data will contain filesystem-related detail information;

-U: Displays the user's quota limit (this is the default value);

-G: Displays the quota limit for individual groups.

-S: Display results using M,G

Configure quota quotas in the Setquota command

Setquota [-u|-g] name block (soft) (hard) inode (soft) inode (hard) file system

For example: Setquota-u quota1 10000 20000 0 0/home

Warnquota issued a warning letter to those exceeding the limit

Templates for vim/etc/warnquota.conf warning letters

Vim/etc/cron.daily/warnquota

/usr/sbin/warnquota

Automatically send a warning letter to the exceeding limit user every day

This article is from the "Sunsky" blog, please be sure to keep this source http://sunsky.blog.51cto.com/4824967/1293293

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.