RedHat5.4 Disk Quota (Quota) under VMware)

Source: Internet
Author: User
Quota is usually used in several situations: For WWWserver, for example, the size limit of each person's webpage space! For mailserver, for example, the email space limit for each person. For fileserver, for example, the maximum available network hard disk space for each person. the above is about the design of network services. If it is for the Linux system host settings, the following directions are used: 1. Restrict the maximum disk quota that a group can use (use group limit

Quota is usually used in the following situations:

For WWW server, for example, the size limit of each person's webpage space!

For mail server, for example, the email space limit for each person.

For file server, for example, the maximum available network hard disk space for each person.

The above is about the design of network services. If it is for the Linux system host settings, the following directions are used:

1. Restrict the maximum disk quota that a group can use (use group restrictions ):

2. Limit the maximum disk quota of a user (User restrictions ):

3. Use the Link Method to enable the mail to be used as the limit (change the/var/spool/mail path ):

The procedure is as follows:

1. First, I add a virtual hard disk to the virtual machine, or I can use the existing hard disk to limit the disk. Run the command fdisk-l to view the existing hard disk status.

2. Partition and format the new hard disk.

Partition command fdisk/dev/sdb

Format command mkfs-t ext3/dev/sdb

3. Mount the newly formatted Hard Disk/dev/sdb1 and create the mount point/mnt/sdb1.

Command mkdir/mnt/sdb1 mount command mount/dev/sdb1/mnt/sdb1

After mounting, you can run the mount command to view the mounting status or df-h to view the disk details.

4. Create a user in the corresponding quota directory

[Root @ localhost ~] # Useradd test1-d/mnt/sdb1

5. Use vim to modify the configuration file

[Root @ localhost ~] # Vim/etc/fstab

The specific modification is as follows. Save the modification and exit.

6. mount the file after modification.

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.