1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Finding large files

Discussion in 'Plesk for Linux - 8.x and Older' started by neil, Jan 31, 2005.

  1. neil

    neil Guest

    0
     
    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
     
  2. Mr. Pink

    Mr. Pink Guest

    0
     
    Hi,

    try

    Code:
    find / -size +102400k -exec du -hs {} \;
    to find anything above 100mb ...

    Regards,

    Pink
     
  3. neil

    neil Guest

    0
     
    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
     
  4. sammykona

    sammykona Guest

    0
     
    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

     
  5. CBiLL

    CBiLL Guest

    0
     
    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
     
Loading...