The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/user 91%

Discussion in 'General Discussion' started by tangowebs, Apr 10, 2008.

  1. tangowebs

    tangowebs Well-Known Member

    Joined:
    Oct 12, 2004
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    0
    HI, into my server there is some information we dont need that is taking lot of space.
    /usr appears 91% full. Do you know how can we clean this? domlogs specially.

    Which comands in SSH we should use?
     
  2. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    Hey there,

    There used to be a cPanel command called /scripts/trimdomlogs but it's not there anymore, seemingly, on newer servers.

    To make sure you're looking at the right files that are bulky, you can find them using this command, example:

    Code:
    [root@server ~]# cd /usr
    [root@server usr]# du -cksh *
    28K     aquota.user
    173M    bin
    76K     doc
    12K     etc
    8.0K    games
    108M    include
    172K    kerberos
    567M    lib
    18M     libexec
    2.0G    local
    16K     lost+found
    124K    man
    4.0K    quota.user
    26M     sbin
    645M    share
    176M    src
    4.0K    tmp
    501M    tmpDSK
    24K     X11R6
    4.2G    total
    
    As I can see, the /usr/local folder is 2.0G in size, so I would change directory to it, and issue the command again to see what specific folder is problematic.

    For the domlogs, if you REALLY don't care about them, at all, and just want to clear space...

    cd /usr/local/apache/domlogs
    rm -rf *
    service httpd restart

    This is not recommended, but, you know, options are limited. :) Don't forget to restart Apache, sometimes it likes to cache data and so the disk might still seem full.

    Warmest regards,
     
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    hi, interesting thread.

    I'm curious about the content of files at domlogs: what are all that numbers supposed to be?
    I found filenames in my domlogs folder with references to some deleted domains. Aren't they supposed to be deleted when the domains are deleted?
     
  4. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    Logically, yes. :)

    Then again, logic isn't always perfect. From what I can see, when a stat run happens, if you have selected the Delete each domain's access logs after stats run option from "Tweak Settings" in WHM, then it will create the pretty logs and delete the raw logs once it's done.

    Of course, if the domain isn't being processed, I assume it will not be deleted. This is, of course, my assumption. I've seen many residual logs in the past. Whenever traffic hits a VHost, the log file(s) is/are created if they don't exist.

    From time to time, I run a remove on all files to clean them out. Maybe at the end of this month, you should give it a try.

    My 0.02$, as usual. :)
     
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    May this be due to any kind of bug in cPanel? maybe any guy of cPanel staff can check this and give some advice.
     
Loading...

Share This Page