---
title: "Running Out of Disk Space on VPS"
description: "Running out of disk space on your InMotion Hosting VPS can trigger a cascade of issues: MySQL/MariaDB errors, PHP script failures, email delivery problems, and even service crashes that affect every..."
url: https://www.inmotionhosting.com/support/product-guides/vps-hosting/running-out-of-disk-space-on-vps/
date: 2026-06-30
modified: 2026-06-30
author: "Carrie Smaha"
categories: ["VPS Hosting"]
type: post
lang: en
---

# Running Out of Disk Space on VPS

Running out of disk space on your InMotion Hosting VPS can trigger a cascade of issues: MySQL/MariaDB errors, PHP script failures, email delivery problems, and even service crashes that affect every website on the server. With InMotion’s high-performance NVMe SSD storage, you have fast and reliable disk resources, but proactive management is essential to avoid downtime.

This updated guide covers modern best practices for [InMotion VPS plans](/vps-hosting) (running AlmaLinux, Ubuntu, or Debian) including:

- Checking disk usage correctly as root
- Preventing backup-related space issues
- Identifying and cleaning junk files & logs
- Advanced troubleshooting and prevention tips
- Monitoring tools and automation

## Why Accurate Disk Monitoring Matters on InMotion VPS

InMotion VPS accounts include dedicated resources with NVMe storage, but the operating system and core services (Apache/Nginx, MariaDB, cPanel/WHM, etc.) consume baseline space that may not appear accurately in limited user views. Always check from the **root** account or via WHM for reliable data.

## Step-by-Step: Check Disk Space via SSH (Recommended)

1. Log in as root (or use sudo):
   - `ssh root@your-vps-ip`
2. Use the `df` command for a high-level overview (human-readable format):
   - `df -h`
   - Look at the `/` (root) filesystem usage percentage. Aim to keep it under 80-85% for safety.
3. Identify large directories with `du`:
   - `du -sh /* | sort -hr`
   - Common culprits:
     - `/home` (user accounts & websites)
     - `/var/log` (logs)
     - `/var/mail` or `/home/*/mail` (email)
     - `/backup` or `/home/backup` (cPanel backups)
4. For deeper analysis:
   - `du -sh /home/* | sort -hr`
   - `du -sh /var/* | sort -hr`

**Pro Tip**: On InMotion Managed VPS, you can also monitor via WHM → Home → Server Information or use tools like `ncdu` (install with `dnf install ncdu` on AlmaLinux or `apt install ncdu` on Ubuntu).

## Preventing Backup Turnover Issues in WHM/cPanel

WHM/cPanel backups are a frequent cause of sudden disk exhaustion on VPS servers.

### **How the Problem Occurs**

- WHM creates a new backup before removing the oldest one.
- During this window, temporary space usage spikes, potentially pushing you over limits and blocking cleanup.

### **Best Practices for **Backup Storage Management

- In WHM → Backup Configuration:
  - Set “Backup Retention” to the minimum you actually need (e.g., 1-2 copies).
  - Enable “Use Local Directory” only if you have sufficient headroom.
  - Schedule backups during low-traffic periods.
- Download backups regularly to local/external storage and remove them from the server.
- Consider InMotion’s offsite backup options or third-party tools like rsync for efficient incremental backups.
- Leave at least 20-30% free space buffer to accommodate the “extra” backup during rotation.

**Warning**: Never let backups fill your NVMe drive. Full disks can make SSH/WHM access difficult. If locked out, contact InMotion Support for assistance.

## Managing Junk Files, Logs, and Client Usage

Websites, emails, and temporary files grow quickly. On multi-site VPS setups, this is especially impactful.

### Common Sources of Bloat

- Large email inboxes (IMAP clients that never delete)
- Old backups and cache files (`/tmp`, WordPress caches, session files)
- Uncompressed logs in `/var/log`
- Developer temporary uploads or unused media

### **Cleanup Commands (Run as Root)**

```
# Clear old logs (adapt for your OS)
journalctl --vacuum-time=2weeks   # AlmaLinux/Ubuntu systemd
find /var/log -type f -mtime +30 -exec rm {} \;   # Older files

# Empty /tmp safely
rm -rf /tmp/*   # Only when services are not heavily using it

# Find large files
find /home -type f -size +100M -exec ls -lh {} \;
```

### **Client & Site Management Best Practices**

- Set disk quotas per cPanel account in WHM.
- Educate clients on emptying trash, limiting email retention, and using external storage (e.g., S3-compatible) for large media.
- Schedule regular maintenance with cron jobs or use InMotion’s managed support for optimization.
- For WordPress/Laravel sites: Enable object caching (Redis) and clean plugin/theme caches.

## Additional Troubleshooting & Prevention Tips

- **Monitor Trends**: Install `htop`, `iotop`, or use InMotion’s server monitoring tools. Set up alerts for high disk usage.
- **Database Optimization**: Run `mysqlcheck` or optimize tables regularly to reduce bloat.
- **Upgrade Storage**: InMotion VPS plans offer scalable NVMe options. Contact support or upgrade via your Client Area when nearing limits.
- **Security Note**: Regularly update your system (`dnf update` on AlmaLinux or `apt update && apt upgrade` on Ubuntu) and use Fail2Ban to prevent abuse that could fill logs.
- **If You’re Out of Space Now**:
  1. Delete unnecessary files immediately.
  2. Suspend heavy accounts in WHM.
  3. Reach out to InMotion’s 24/7 support for emergency help.

## Final Recommendations for InMotion VPS Customers

Effective disk management keeps your sites fast, secure, and reliable on InMotion’s NVMe-powered VPS infrastructure. Combine root-level monitoring, conservative backup policies, and routine cleanups for the best results.

For more VPS resources, explore our full [Managed VPS Hosting Product Guide](https://www.inmotionhosting.com/support/product-guides/vps-hosting/).

Need personalized assistance? Our Launch Assist and 24/7 technical support team is ready to help optimize your server.
