• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue My Partition "/" utilization disk space is growing fast

larryk

Regular Pleskian
OS ‪CentOS Linux 7.4.1708 (Core)‬
Product Plesk Onyx
Version 17.5.3 Update #40, last updated on Feb 13, 2018 03:08 AM

My disk space on this drive is growing at about .3% or .4 % a day? (note: drive is 220GB)
I know a few client's email accounts are large, but its been about the past month... where its growing at this fast pace?

I'm thinking some log file is being written too?
Or something else is wrong???

I'm at a loss how to find or identify the reason the disk space is getting filled at high pace?

Do you have any thoughts how I find the issue?
THANKS!
 
Find Site Logs Over 10Mb

find /var/www/vhosts/*/statistics/logs/* -size +10M -exec ls -lh {} ; | awk '{print $5 , $9}'

Find Server Logs Over 10Mb

find /var/log/* -size +10M -exec ls -lh {} ; | awk '{print $5 , $9}'

Find Mail Logs Over 10Mb:

find /usr/local/psa/var/log/* -size +10M -exec ls -lh {} ; | awk '{print $5 , $9}'
 
thanks Mark!

question : is there a way to view (easily) all database sizes on my plesk server?
 
From CLI, log into MySQL as admin;

mysql -uadmin -p`cat /etc/psa/.psa.shadow`

Once logged in, run the following query to calculate all databases size;

SELECT table_schema "Database Name", SUM(data_length+index_length)/1024/1024"Database Size (MB)" FROM information_schema.TABLES GROUP BY table_schema;
 
Find Site Logs Over 10Mb

find /var/www/vhosts/*/statistics/logs/* -size +10M -exec ls -lh {} ; | awk '{print $5 , $9}'

Find Server Logs Over 10Mb

find /var/log/* -size +10M -exec ls -lh {} ; | awk '{print $5 , $9}'

Find Mail Logs Over 10Mb:

find /usr/local/psa/var/log/* -size +10M -exec ls -lh {} ; | awk '{print $5 , $9}'

I tried the commands above and found that they return "syntax error near unexpected token `|'" on CentOS. They need some changes for CentOS. At that time I made some changes to paths that apply to all Plesk installations, too. Here are the same with slight changes:

Find Site Logs Over 10Mb [path corrected, backslash added before ;]
find /var/www/vhosts/*/logs/* -size +10M -exec ls -lh {} \; | awk '{print $5 , $9}'

Find Server Logs Over 10Mb [backslash added before ;]
find /var/log/* -size +10M -exec ls -lh {} \; | awk '{print $5 , $9}'

Find Mail Logs Over 10Mb:
find /var/log -name "maillog*" -size +10M -exec ls -lh {} \; | awk '{print $5 , $9}'
 
Thanks Peter - I haven’t used those since Plesk 10 so wasn’t sure exactly if they were still accurate
 
great.. thanks again... i found old files and **** and stuff .... server disk space is getting lean/clean :)

QUESTION: what are these things? does this look normal?

38M /var/log/btmp
32M /var/log/httpd/access_log-20180204
33M /var/log/httpd/access_log-20180129
34M /var/log/httpd/access_log-20180211
35M /var/log/httpd/access_log-20180219
11M /var/log/maillog.processed
26M /var/log/messages
38M /var/log/messages-20180129.gz
27M /var/log/messages-20180204.gz
33M /var/log/messages-20180211.gz
37M /var/log/messages-20180219.gz
38M /var/log/mysqld.log
178M /var/log/plesk/httpsd_access_log.processed
23M /var/log/plesk/httpsd_access_log.processed.1
50M /var/log/plesk-php54-fpm/error.log-20170731.gz
27M /var/log/plesk-php54-fpm/error.log-20170806.gz
12M /var/log/plesk-php54-fpm/error.log-20170723.gz



NOTE: sad... i thought all my databases were NOT using 5.4 :(

access_log = is a raw server log file for 1 domain?
messages = what is that?
mysqld.log = so a mysql database also has a log file?

thanks!
 
It all looks normal. The .gz files are the log files in a compressed format. Old logs are rotated and compressed to save space. You can delete these old files, but the server will create new ones on the next log rotation.

access_log in this location is the general Apache access_log, not for a specific domain, but for the host.
messages logs all system events.
mysqld.log is a log of the database daemon.
 
Back
Top