How To Use Initial Quota Setup To Enable Disk Quotas In WHM?
Disk quotas are used to manage server storage. They allow you to monitor the disk space used by each user and further place limits on user accounts. In case quotas were not configured at the time of your first server set-up, then this guide will demonstrate how to activate these restrictions.
In the absence of quotas, a single user could fill your entire hard drive and crash the system. VPS and dedicated servers require you to enable these settings on the OS level in the majority of cases. Proper quota management ensures that all accounts stay within their assigned storage plan.
What is Initial Quota Setup?
The Initial Quota Setup searches your system to identify directories that belong to cPanel users. It prepares the file system to start measuring and restricts data in every folder. These quotas only track files; they do not include MySQL database sizes.
Enabling quotas enables you to maintain a balanced hosting environment for all your clients. It avoids resource wastage and allows you to plan future storage upgrades. Cantech servers have a user-friendly interface to manage these limits without a thorough technical understanding.
Steps to Enable Quotas in WHM
To modify the disk management settings of the server, one needs root access. These are the steps to start the quota initialization.
- Access WHM: Open your administrator and log in using your root user.
- Go to Initial Quota Setup: Go to the left sidebar in the Server Configuration menu and select the Initial Quota Setup link.
- Read the Warning: The system will show a warning about kernel support for quotas. Most standard kernels include this support by default, so it is usually safe to continue.
- Click Proceed: Press the Proceed button and start scanning your drives.
- Wait for Completion: The server will now scan all files and folders to calculate current usage; this can take several minutes based on disk size.
- Verify the Finish: Once the scan has been successful, you will see a “Done” message. Our disk quotas are now active for all user accounts.
Enable Quotas via SSH Terminal
You can fix or enable quotas quickly using the command line. Experienced server administrators find this method more speedy.
- SSH login: Use root access credentials to connect to your server through a terminal application.
- Fix Quotas Script: Run /scripts/fixquotas to begin the quota configuration.
- Reboot CloudLinux: Once the script has been run on CloudLinux 7, restart the server to ensure the kernel makes the changes to the file system.
Conclusion
The use of disk quotas is a necessary step for maintaining a professional hosting server. It provides you with complete control over hardware resources and avoids unintentional disk overflows. You should run the quota setup whenever you see that the user’s disk usage is not updating properly.
Frequently Asked Questions
Why does my cPanel show 0MB usage for all accounts?
This normally occurs due to the fact that the disk quotas are turned off or the quota file is damaged. Running the Initial Quota Setup or the fixquotas script will refresh the calculations. When the scan is complete, the disk usage statistics should appear properly.
Will the quotas slow down my server?
The initial scan might use some CPU power for a few minutes while it reads all the files. Nevertheless, the daily operation of quotas has very little effect on server performance. It is an effective method of keeping your storage organized.
Does this limit apply to the root user too?
Disk quota is typically limited to regular cPanel user accounts. The root user can still use as much space as the physical hard drive allows, hence the administrators will always be able to carry out maintenance work.
Can I set different quotas for different folders?
Standard cPanel quotas apply to the total usage of a specific user account. You can set a global limit for the entire account through the “Edit Package” or “Modify an Account” sections. This includes all of the files in the home directory of that user.