+9 votes
5.8k views
asked in Linux by (1.2k points)

My VPS shutdown because the HDD is filling up and I realized that the microcache.log file is becoming 12GB after I delete it. The content of microcache.log file is:

23.88.110.68 - - [12/Jun/2014:16:09:45 -0400] "GET ib.adnxs.com/ttj?id=2168123&position=below HTTP/1.0" 502 166 "battercar.com/?p=436" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/528.4+ (KHTML, like Gecko) Version/4.0dp1 Safari/526.11.2" nocache:

173.208.213.94 - - [12/Jun/2014:16:09:45 -0400] "GET ib.adnxs.com/tt?id=2962937 HTTP/1.0" 502 568 "existeducation.com/tag/tap/" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.202.0 Safari/532.0" nocache:

(continues thousans of lines...)

How can I repair my VPS? I got tired to delete this file everyday.

VPS : Centos 6 with nginx


1 Answer

+2 votes
answered by (15.2k points)
 
Best answer

First you have detect large files with this command : 

# find /  -type f -size +50M -exec ls -lh {} \; | awk '{ print $5":" $6 $7 " : " $9 }' |sort -n

it will give some outputs like this : 
51M:Jun16 : /usr/local/cpanel/whostmgr/bin/whostmgr
52M:Jun16 : /home/virtfs/newandro/usr/local/cpanel/whostmgr/bin/xml-api
52M:Jun16 : /usr/local/cpanel/whostmgr/bin/xml-api
52M:Jun18 : /home/virtfs/newandro/var/log/chkservd.log
52M:Jun18 : /var/log/chkservd.log
53M:Jun16 : /home/virtfs/newandro/usr/local/cpanel/whostmgr/bin/whostmgr2
53M:Jun16 : /usr/local/cpanel/whostmgr/bin/whostmgr2
57M:May6 : /home/newandro/public_html/326.zip
 
then you have delete thele large files with this command
 
 find  /.file..path../ -name 'microcache.log'  -exec rm {} \;
 

 


commented by (15.2k points)
cd  /usr/local/apache/logs/archive/
rm -rf *

clean GB access logs on CENTOS!!!!
commented by
Hi, I deleted my /home/virtfs/userreseller/usr/local/cpanel/whostmgr/bin/xml-api . everything works except for the backup restoration. i get the error : Could not add “bambootr” to the restoration queue (No response from subprocess (whostmgr (xml-api)): The subprocess exited with status 2 (ENOENT).).
How do i get the deleted file back?
Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.

Categories

...