Disk quota
Introduction
Disk Quota is a feature that helps to limit disk usage for each user.
Linux OS has special tools to limit disk usage for specific users and groups.
How to setup disk quota?
To control Disk Quota in FASTPANEL® it is required to install Quota application. When using a virtual server it is required to note your virtualization system type. Some of them, like OpenVZ, requires additional settings on the host server.
You can set up a disk quota for a user in the user creation wizard or in the website creation wizard on user creation stage.
Setting up Disk Quota on a user creation stage
Disk quota can be specified in the User Creation Wizard in the Quota field.
-
Go to side menu → "Settings" → "Users"
-
Click "Create" button
-
In the "Quota" field specify maximum disk space available for the user files
Zero value means no limit.
Changing Disk Quota value
To change Disk Quota value:
- Go to side menu → "Settings" → "Users"
- Click "Edit user"
- Set the desired value in the corresponding field.
Setting Disk Quota in the website creation wizard
On a user creation stage, the second step, if "New" was chosen in the Site Owner field, an option to set Disk Quota will become available.
How often does it check the amount of space used by a user?
Disk space usage is being checked instantly. OS will not allow a user to upload more than it was allowed.
What to do if there are errors with Disk Quota?
In this case, you simply need to run Quota recalculation:
- Go to side menu → "Settings" → "Users"
- Click "Recalculate disc quota"
- Confirm quota recalculation
Quota recalculation can increase the load on the disk subsystem and, as a result, the whole server.
Technical features of Disk Quotas
For Disk Quotas to work usrjquota=aquota.user
and grpjquota=aquota.group
params are specified in /etc/fstab
aquota.user
and aquota.group
files are created in root partition.
To view disk quota statistics run the following command in the terminal:
repquota -au