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.

/usr/ 88%

Discussion in 'General Discussion' started by TRAIN YARD SOFTWARE, Mar 2, 2002.

  1. TRAIN YARD SOFTWARE

    TRAIN YARD SOFTWARE Well-Known Member

    Joined:
    Dec 20, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    What logs are there that can be deleted? also what is the correct comand line to delete these so server dont kick bucket from just deleting it. I know there is some special way to delete these but been so long I dont remember how.


    Thankx
    Ed

    TYS
     
  2. WeinBar

    WeinBar Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    Go into /usr/local/apache/domlogs

    type ls -alSH|more

    and see what the largest log files are. Either delete them, or tar them up. You must now restart apache to clear the space out, otherwise it will not reset.
     
  3. Curt

    Curt Well-Known Member

    Joined:
    Oct 16, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Before I delete any /usr/local/apache/domlogs I would like to understand what are they used for and will they just recreate again? Once they are gone what will now be changed?

    Thansk!
     
  4. Bravo

    Bravo Well-Known Member

    Joined:
    Oct 30, 2001
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    You can also move the log files to another drive (like the backup drive) and just create symlinks to them. I have done this and it works fine, of course if the b/u drive goes so do the log files, but I don't consider them critical.
     
  5. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    I have the same problem, my host then deleted the logs after which the server crashed.

    What should I do to prevent it from crashing?
     
  6. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    By the way it tells me this:

    Drive Critical: /sda3 (/var) is 92% full

    So that's not /usr but /var!!!
     
  7. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    To clean up /var the best is to go into /var/log and remove the files with a number on the end.

    For example;

    rm -f exim_mainlog.1 or .2 or .3

    etc...
     
  8. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    I just go into domlogs and rm -rf * and that cleans it all up, but for some reason my /usr partition fills up in less that a week.
     
  9. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    Try moving /usr/local/cpanel/logs/stats_log

    That 'll help you out I guess.
     
Loading...

Share This Page