Technical guide for Hovixa users on using the cPanel Disk Usage tool to identify storage bottlenecks and resolve inode (file count) exhaustion in web hosting accounts.

Disk Usage Tool: Locating Large Files and Clearing Inode Exhaustion

Efficient storage management is critical for server performance. On Hovixa’s shared and semi-dedicated platforms, you are governed by two distinct limits: Disk Space (the total size of files in MB/GB) and Inodes (the total number of individual files and folders). This guide explains how to identify and prune the data causing these limits to be reached.

1. Analyzing Consumption with the Disk Usage Tool

The Disk Usage tool provides a hierarchical view of your directory structure, making it easy to spot which specific folder (e.g., mail, backups, or logs) is consuming your quota.

  1. Log in to cpanel.hovixa.com.
  2. Navigate to the Files section and click Disk Usage.
  3. Scroll to the bottom of the page where directories are listed in a collapsible tree.
  4. Click the plus (+) icons to drill down into subdirectories.
  5. Sort by Disk Usage to find the largest folders.

2. Understanding and Resolving Inode Exhaustion

An "Inode" is a data structure in a Unix-style file system that describes a file or directory. One file equals one inode. If you reach your Inode limit, you cannot create new files, even if you have gigabytes of disk space remaining. This often results in "Session start" errors or failed email deliveries.

Common Culprits of High Inode Counts:

  • Application Caches: Frameworks like Laravel or plugins like WP Rocket can generate tens of thousands of small cache files in /storage/framework/views or /wp-content/cache.
  • Email Trash/Spam: Large quantities of unpurged emails in the .Trash or .Spam folders of your mail accounts.
  • Session Files: Temporary PHP session files that haven't been purged by garbage collection (found in /tmp).

How to Clear Inodes:

  1. Identify the folder with the most files using the Disk Usage tool (look for deep directory nests).
  2. Use File Manager to navigate to that directory.
  3. Delete unnecessary cache files or temporary logs.
  4. Empty your cPanel trash: In File Manager, click View Trash and then Empty Trash. Files in the trash still count toward your quota.

3. Automated Cleanup via Cron Jobs

For applications that generate heavy logs or caches, you should implement an automated cleanup script. This prevents sudden inode exhaustion.

Example: Deleting files older than 7 days in a cache folder:

find /home/username/public_html/path/to/cache -type f -mtime +7 -exec rm -f {} \;
    

Note: Replace the path with your actual application cache directory. Test this via SSH before setting it as a Cron job.

4. Technical Implementation Details

  • Real-time Stats: The Disk Usage stats in the cPanel sidebar are cached and may take up to 4–24 hours to update after you delete files. The Disk Usage tool inside the interface provides more frequent updates.
  • Hidden Files: Remember that hidden files (like .error_log) can grow to several gigabytes if an application is constantly crashing. Check for these in your document roots.
  • Mailbox Quotas: If your disk usage is high due to mail, consider using the Email Disk Usage tool specifically to batch-delete emails older than a certain date.
Hasznosnak találta ezt a választ? 0 A felhasználók hasznosnak találták ezt (0 Szavazat)