• 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

Finding large files

N

neil

Guest
Hi,

I've having problems with my server at the moment as the hard drive is constantly full. 1 Gb of hard drive space is being taken every day and this does not count log files!

The hard drive on the server is 60Gb, the total files for the sites is less than 15Gb including log files and all the emails. Is there anyway I can get a list of the largest files on the server and what size they are?

Any suggestions or advice would be very much appreciated.

Thanks
Neil
 
Hi,

try

Code:
find / -size +102400k -exec du -hs {} \;

to find anything above 100mb ...

Regards,

Pink
 
Thanks Pink,

My maillog is 28Gb which is obviously taking up a huge chunk of the hard drive space.

It is safe for me to simply delete the maillog?

Thanks
Neil
 
instead of deleting, I usually do:

cat>/usr/local/psa/var/log/maillog [hit enter]

then hit Control D

That will reset it to zero

Sam

Originally posted by neil
Thanks Pink,

My maillog is 28Gb which is obviously taking up a huge chunk of the hard drive space.

It is safe for me to simply delete the maillog?

Thanks
Neil
 
maillog shouldn't even get that big unless your log rotate somehow got disabled or not working anymore ..

Plesk already rotates and process maillog by default so something is wrong with your log rotate.

Bill
 
Back
Top