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.

Log Re-Location Adviced Needed...

Discussion in 'General Discussion' started by nitromax, Feb 1, 2003.

  1. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    My 36GB SCSI drive is around 75% full, and it seems that about every few days the log files increase and it goes over 80-86% full which sends out a warning email, and I have to go in and delete the large log files.

    My question is this... I have an 80GB EIDE drive as a backup drive, and I was wondering if I could duplicate some of the log directories on it and then use symbolic links from the main drive over to the backup drive. That way the log files are being stored on the backup drive.

    Does that sound like a bad idea to anyone who has experience?
     
  2. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    Already do that myself. :)
     
  3. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for replying!

    Do you know a quick easy way to find say... all files above 50MB in size on the server? I used to be able to delete some of those big log files and my drive usage went down to about 75%. But now, I have deleted those files and I can't get it below 81%. I've been searching and searching, but after all... there are a lot of directories on the server.

    Right now I am mainly looking in the following directories:

    /usr/local/apache/logs
    /var/log
    /var/spool/*

    Any ideas??? Please??? :)
     
  4. mooony

    mooony Well-Known Member

    Joined:
    Nov 9, 2002
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Look in the /usr/local/apache/domlog directory.

    This is where domain logs are. Seeing that you did not write it.

    Ronald
     
  5. taivu

    taivu Well-Known Member

    Joined:
    Nov 22, 2001
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    [quote:9c5e7802f1][i:9c5e7802f1]Originally posted by nitromax[/i:9c5e7802f1]
    Do you know a quick easy way to find say... all files above 50MB in size on the server? [/quote:9c5e7802f1]

    Starting from the current directory:

    find . -size +51200k -exec ls -l {} \;
     
  6. Tom Pyles

    Tom Pyles Well-Known Member

    Joined:
    Apr 26, 2002
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    One thing to note about your back-up drive. If you have it set to mount/unmount, moving the logs there will not work (since there will be no /backup drive during that time). You either have to keep /backup mounted or choose another partitian.
     
Loading...

Share This Page