Problem:
Plesk is running out of space
Solution:
- SSH into the server
- Run du -h to see what’s eating up space
- Or run du -sh * | sort -rh per folder to narrow down the file size
(du -x / |sort -rnb |more)
- In this case, it was /var/log file
- I found a log file called modsec_audit.log-202010120.gz
- Deleted the file
- Do not delete modsec_audit.log
Update (2022)
The journal file was 4.3GB
Run this: journalctl –disk-usage (it’ll tell you how large the journal is)
Run this: journalctl –vacuum-size=200M (it’ll clean up the journal)
Update (2024)
- Drilled down to problematic folders using du -sh * | sort -rh
- System mailbox had 26GB
- In CPanel went to the mailbox, clicked Manage and emptied it out
- Went back into the problematic folders and the next item was the logs folder
- Deleted all the compressed logs using rm -rf *.gz