When your VPS runs out of disk space, it can slow down significantly or stop working altogether. To maintain performance and system stability, it’s essential to regularly check and free up disk space. This article will help you identify the causes and provide effective solutions.
Common Causes of Full Disk on VPS
1. Web Server Log Files
Log files from Apache or Litespeed can grow over time and occupy large amounts of disk space.
-
Apache logs are usually found in:
/var/log/httpd/domain/
-
Litespeed logs are usually found in:
/var/log/lsws/logs/
2. Mail Queue Folder
The folder /var/spool/exim/input/
stores outgoing emails. If unmanaged, it can consume a lot of space.
3. Backup Files
Backup files, especially with DirectAdmin, are often stored at /home/admin/admin_backups/
. Without regular deletion, they can quickly fill up the disk.
4. Website Data in /home
The /home
directory often stores source code and web data. Without control, it can lead to disk overload.
How to Fix Full Disk on VPS
Step 1: Check Disk Usage
Use a disk usage check tool to view total, used, and available space across partitions.
Step 2: Identify Large Folders
Analyze which directories are taking up the most space, then investigate subfolders like /var
or /home
to find specific heavy usage areas.
Step 3: Empty or Delete Log Files
Instead of deleting logs, you can empty large files while keeping them:
Clear contents of error logs to free up space.
Or, if the log is no longer needed, you may delete it entirely.
Step 4: Clear Mail Queue
Check the mail queue size in /var/spool/exim/input/
.
If it’s large, consider removing its contents to reclaim space.
Step 5: Remove Unused Backups
With DirectAdmin, navigate to /home/admin/admin_backups/
and remove outdated backups.
If you use other backup tools, locate their storage paths and delete unneeded backups.
Step 6: Clean Unused Data in /home
Use FTP or SSH to download and safely remove files that are no longer needed.
If everything is important and cannot be deleted, consider upgrading your VPS storage.
Conclusion
A full disk on VPS can disrupt your website and services. By regularly monitoring and managing disk usage, you can ensure stable and efficient VPS operation.
Need help? Contact our support team at https://upnet.com.vn — available 24/7.