Red Flag asianux Server 3 System Management: Configuring Disk quotas

Source: Internet
Author: User
Keywords Asianux configuring disk quotas
Tags aliyun configuring disk quotas disk disk space file force group html

To prevent a user or user group from consuming too much disk http://www.aliyun.com/zixun/aggregation/17325.html "> storage space, you need to limit the available storage space for users or groups of users. Disk quotas are meant to force users to keep their system disk occupied for most of the time under the quota, and to eliminate their ability to use disk space indefinitely.

In Linux systems, quotas are set for file systems, and quota settings that need to start the file system are supported before they are set. The disk quota service currently supports the ext2 and ext3 two file formats.

Red Flag asianux Server 3 system provides a graphical disk quota management tool--rfquota. This section first describes how to use the command line to manage disk quotas, and then introduce the use of Rfquota.

Disk quota support for the 2.7.1 profile system

First, determine which partition in your system is going to disk quotas and add the Usrquota and Grpquota options to the file system in the Fstab file.

If you want to set both the user-level and user-group-level disk quotas for the filesystem partition, locate the filesystem line in the Fstab file:

/dev/hda5/home ext2 Defaults 1 2

Then make the following modifications to the line:

/dev/hda5/home ext2 Defaults,usrquota,grpquota 1 2

Do the following for each partition that requires disk quotas to be set. After you add the UserQuota and Grpquota options, mount each modified file system again. If the file system is not used by any process, use the Umount command to reload the file system with the Mount command, otherwise you can reboot the system.

When a quota-enabled file system is mounted again, the Quotacheck command is run to create a disk quota file on the file system.

# Quotacheck-cug/home

The-c option creates quota files (Aquota.user and Aquota.group) for the quota-enabled file system, the-u option represents checking user quotas, and the-G option represents the group quota. When the system runs a quota check, disk usage information is created in the quota file.

Next, run the following command to build the current Disk usage table for the quota-enabled file system.

# Quotacheck–vug

The-v option indicates that detailed status information is displayed during the check quota process.

Related Article

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.