Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 10 of 10

This is a discussion on Disc Space near 80% (noob question) in the VPS & Dedicated forum
I'm using over 10GB of disc space while my current site + database is just about a few hundreds MB. So I wonder if it's ...

  1. #1
    spr
    spr is offline
    Loyal Client
    Join Date
    Jun 2006
    Posts
    71

    Disc Space near 80% (noob question)

    I'm using over 10GB of disc space while my current site + database is just about a few hundreds MB. So I wonder if it's the log files or some other junk stuffs that accumulated over time.

    How should I find out and clean up those files to clean my disc space?

    Any suggestion is greatly appreciated,
    spr

  2. #2
    :) MundoNetwork's Avatar
    Join Date
    Mar 2007
    Location
    Puerto Rico
    Posts
    6
    do you have awstats, webalizer or analog statistics software enabled?

  3. #3
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by spr View Post
    How should I find out and clean up those files to clean my disc space?

    Any suggestion is greatly appreciated...
    Do a 'DU'.

    Shell works best, but it's also available via cPanel...

    As MundoNetwork implied, the 'stats' are probably eating up your disk space!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by MundoNetwork View Post
    do you have awstats, webalizer or analog statistics software enabled?
    I *think* these proggies are enabled by default on all shared accounts, except VPS. They operator invisibly in the background.

    Matter of fact, I don't know if you can even disable them. I've deleted the folders before, only to have them return automagically in the future.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    spr
    spr is offline
    Loyal Client
    Join Date
    Jun 2006
    Posts
    71
    Thanks guys, especially for the "DU" command, I found out my apache log file was eating up some GB of my space, now it's back to 10%. Can't believe that log file got 70% of my disc space.

    Well, it's all good now.

  6. #6
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    You must have a hugely busy site for the logs to take up that much space!

    You can disable the saving of logs through CPanel if you really want to.
    Good luck

  7. #7
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    My signature points to various interesting stuff, one of those explains a bug in cPanel/WHM which allows the apache logs to become huge on busy servers. In there i explain how to fix the problem by adding the apache logs in the logrotate configs.

    Logs and logrotate:
    Logs and logrotate - important fix

    Clean your /var/log/messages
    Clean your /var/log/messages, move ftp logs to /var/log/ftp

    etc.

  8. #8
    spr
    spr is offline
    Loyal Client
    Join Date
    Jun 2006
    Posts
    71
    Actually I was having problems with eAccelerator, that's why the error was building up.
    I fixed that by "chmod 0777 /opt/lampp/tmp/eaccelerator" (yah, i'm using lampp)

    The log file is back to normal now.

  9. #9
    R45
    R45 is offline
    JPC Senior Member R45's Avatar
    Join Date
    Mar 2002
    Location
    Trinidad and Tobago
    Posts
    75
    Code:
    du -h --max-depth=1
    Is really easy to use, and just work into the subdirectories to find offenders.

    If you use any decent amount of MySQL, the bin-log is a massive contributor to disk space. Consider capping its size in your mysql configuration.
    Adam Alkins
    [website]

  10. #10
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    I don't think the Binary Log (mysql 4.1.3 or newer only) is enabled by default, so its not something most people will want to look for.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •