Quota and advanced file system management
1. The application and practice of disk quota (Quota)
1.1 What is Quota
Common usage of quota:
- For WWW server, for example: each person's web space capacity limit!
- For mail server server
- For FTP server
The above is the design of some network services. If it is for the settings on the Linux host, the usage can be as follows:
- Limit the maximum disk quota that some groups can use (use group limit);
- Limit the maximum disk quota of a user (using user limit);
- Limit the maximum disk quota for a directory.
1.1.1. Limits on the use of quota
- The ext file system can only target the entire file system;
- The core must support quota:
- Only valid for general users;
- If SELinux is enabled, not all directories can be set to quota.
1.1.2, Quota's specification setting items
Quota The restricted items for the XFS file system are mainly divided into:
- Respectively for users, groups or individual directories;
- Capacity limit or file quantity limit (block or inode);
- Limit the number of inodes: you can manage the "number of files" that users can create;