Plesk server running out of space

Problem:

Plesk is running out of space

Solution:

  1. SSH into the server
  2. Run du -h to see what’s eating up space
  3. Or run du -sh * | sort -rh per folder to narrow down the file size
(du -x / |sort -rnb |more)
  1. In this case, it was /var/log file
  2. I found a log file called modsec_audit.log-202010120.gz
  3. Deleted the file
  4. 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)

  1. Drilled down to problematic folders using du -sh * | sort -rh
  2. System mailbox had 26GB
  3. In CPanel went to the mailbox, clicked Manage and emptied it out
  4. Went back into the problematic folders and the next item was the logs folder
  5. Deleted all the compressed logs using rm -rf *.gz