Log Re-Location Adviced Needed...

nitromax

Well-Known Member
Feb 12, 2002
189
0
316
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?
 

nitromax

Well-Known Member
Feb 12, 2002
189
0
316
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??? :)
 

mooony

Well-Known Member
Nov 9, 2002
82
0
156
Hi,

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

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

Ronald
 

taivu

Well-Known Member
Nov 22, 2001
65
0
306
[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 {} \;
 

Tom Pyles

Well-Known Member
Apr 26, 2002
254
0
316
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.