• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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