How to fix disk quotas in cpanel?

  WHM

Introduction:

The `/scripts/fixquotas` command in cPanel is a powerful tool designed to fix disk quota issues on your server. When users encounter disk quota discrepancies or inconsistencies, this command can help rectify them efficiently. This document provides a step-by-step guide on utilizing the `/scripts/fixquotas` command effectively.

Prerequisites:

Before proceeding with the utilization of the `/scripts/fixquotas` command, ensure the following prerequisites are met:

1. Access to Server: You should have SSH access to the server where cPanel is installed.

2. Root Access: You must have root access or sufficient privileges to execute commands as root.

3. cPanel Installed: The server should have cPanel installed and properly configured.

4. Understanding of Disk Quotas: Basic knowledge of disk quotas and their management is recommended.

Steps to Execute `/scripts/fixquotas` Command:

Follow these steps to utilize the `/scripts/fixquotas` command effectively:

1. SSH into the Server:

   – Open your preferred SSH client.

   – Connect to your server using the provided credentials.

2. Access the Command Line Interface (CLI):

   – Once connected, access the command line interface (CLI) of your server.

3. Navigate to the cPanel Script Directory:

   – Change your current directory to the cPanel script directory where the `fixquotas` script is located:

     cd /scripts

4. Execute the Command:

   – Run the `/scripts/fixquotas` command:

     /scripts/fixquotas

5. Reboot the Server:

   – After running the script, initiate a server reboot:

     reboot

6. Verify Quotas After Reboot:

   – Once the server is back online, verify whether the disk quotas are properly displayed.

   – If quotas are still not properly displayed, proceed to the next step.

7. Rerun the Script:

   – SSH back into the server and navigate to the cPanel script directory.

   – Execute the `/scripts/fixquotas` command again:

     cd /scripts

     /scripts/fixquotas

8. Monitor the Output:

   – After rerunning the script, monitor the output for any relevant information or error messages.

9. Final Verification:

   – Verify whether the disk quota issues have been resolved by checking user quotas after rerunning the script.

Conclusions:

The `/scripts/fixquotas` command in cPanel serves as a valuable tool for resolving disk quota issues efficiently. By following the steps outlined in this document, users can effectively utilize this command to rectify disk quota discrepancies and ensure smooth server operations.

LEAVE A COMMENT