Linux Study Notes: Scanning

Source: Internet
Author: User

[-M] force Scan

Quota must be an independent partition. There must be two files, quota. user and quota. group. Add the following to/etc/fstab:

/Dev/hda3/home ext3 defaults, usrquota, kgquota 1 2

The chmod 600 quota * setting is complete and the restart takes effect.

Edquota edits the quota [u] user of a user or group, [g] group, [p] copy, and [t] sets the grace period.

Edquota-a yang edquota-p yang-u young Replication

Quotaon enable disk space limit quotaon-auvg start all filesystems with quota

Quotaoff disk space limit quotaoff-a disables the quota limit

Repquota-av check the limits of all filesystems with quota in the system

The main steps from preparing filesystem support for Quota to completing the configuration are as follows:

1. Set the partition filesystem to support the quota parameter:

Since quota must support the filesystem on partition, in general, ext2/ext3 is the best support level,

I have never tried other filesystem-type laruence! The easiest way to enable filesystem to support quota is to edit/etc/fstab,

So that the required quota disk can support quota;

2. Create a quota record file:

As mentioned earlier, the archive for recording the disk limit value of the entire quota is aquota. user/aquota. group,

To create these two files, you must first use quotacheck to scan them!

3. Edit the limit value of quota:

Then, edquota is used to edit the available space of each user or group;

4. Review and start quota:

After setting quota, we recommend that you perform quotacheck again, and then start it with quotaon!

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.