How to Reduce Disk Space Usage
-
Set Control Panel API Server Logs to Warn:
- Action: Update the Control panel API logs to only record warnings and errors, preventing unnecessary internal trace messages from being logged.
- Steps:
- Select Settings from the left menu.
- Click Platform and scroll to Logs.
- Select Warn from the drop-down menu.
-
Clear Out Old Logs:
- General Action: Look for large files that may be contributing to disk space usage.
- Steps:
- Find large files within
/var/www
:find /var/www -name "*.zip" -size +100M find /var/www -name "*.sql" -size +100M find /var/www -name "*.gz" -size +100M
- Check large container log files:
find /var/lib/docker/containers -name "*.log*" -size +100M
- Inspect large databases:
du -hs /var/local/enhance/mysqlcd-data/data/*
- Find large files within
These actions will help reduce disk space usage by removing unnecessary logs and large files.