Managing Disk Space and Resolving Quota Issues Print

  • 0

Disk Space Management Guide

Learn how to monitor disk usage, identify space-consuming items, and resolve quota exceeded errors.

Common Disk Space Error Messages

  • "There is not enough space on the disk" (Error 0x80070070)
  • "Disk quota exceeded"
  • "HTTP Error 500 - Insufficient disk space"
  • "Cannot write to file - disk full"

Checking Your Disk Usage in Plesk

  1. Log into Plesk
  2. Look at the Statistics section on the home page
  3. View Disk space used vs Disk space limit
  4. For detailed breakdown: Statistics > Disk Space by Service

Disk Space Breakdown:

Category What's Included Common Culprits
Website Files httpdocs, subdomains Log files, uploaded content, temp files
Databases SQL Server, MariaDB Large log files (.ldf), accumulated data
Email Mailboxes, attachments Old emails with attachments
Backups Plesk backup files Multiple old backups

How to Free Up Disk Space

1. Clean Up Log Files

Log files can grow large quickly. Safe to delete:

  • Old .log files in your application folders
  • stdout_*.log files (ASP.NET Core logs)
  • IIS log files (contact support)

2. Remove Temporary Files

Check these folders for temp files:

  • /httpdocs/App_Data/temp/
  • /httpdocs/bin/roslyn/ (can be large)
  • Any /temp/ or /tmp/ folders

3. Clean Old Backups

  1. Go to Backup Manager
  2. Delete old backup files you no longer need
  3. Keep only recent backups

4. Optimize Databases

Database log files (.ldf) can grow very large:

  • Contact support to shrink database log files
  • Consider changing recovery model to Simple
  • Remove old data you no longer need

5. Clean Email Storage

  • Delete old emails with large attachments
  • Empty spam and trash folders
  • Archive old mail to local client

Identifying Large Files

Using Plesk File Manager:

  1. Go to Files
  2. Sort by Size (descending)
  3. Look for unexpectedly large files
  4. Check subdirectories for accumulated content

Common Large Files to Check:

  • *.log files - Application and error logs
  • *.bak files - Old backup files
  • *.ldf files - Database transaction logs
  • Uploaded media (images, videos, documents)

Preventing Future Space Issues

1. Implement Log Rotation

For ASP.NET Core apps:

// Program.cs - Configure log file limits
builder.Logging.AddFile("logs/app-{Date}.log", options =>
{
    options.FileSizeLimitBytes = 10_000_000; // 10MB max
    options.RetainedFileCountLimit = 5; // Keep 5 files
});

2. Monitor Upload Sizes

Limit file uploads in your application:

// Limit upload size in web.config
<requestLimits maxAllowedContentLength="10485760" /> <!-- 10MB -->

3. Regular Cleanup Schedule

  • Weekly: Check disk usage in Plesk
  • Monthly: Clean old logs and temp files
  • Quarterly: Review and clean old backups

Upgrading Disk Space

If you consistently need more space:

  1. Review your hosting plan's disk allocation
  2. Contact sales to discuss upgrade options
  3. Consider database-specific storage add-ons

Emergency: Site Down Due to Disk Space

  1. Open support ticket immediately
  2. Mention "disk space" in subject for priority handling
  3. Support can temporarily free space or increase quota
  4. Then follow cleanup steps above

Was this answer helpful?

« Back