where to make free space

zebbie

Verified User
Joined
May 30, 2007
Messages
34
Hello,

Every week I delete my error.log and my access_log to save some space on my server.
But somewhere else on my server, something is taking an amount of space.
Can someone help me what else instead of the logs to delete to save space on my server? And what files on my server is getting bigger every day like the log files?

Thank you....
 
Maybe mysql logs? :) Check for "-bin" files in /var/lib/mysql.
 
my bin files are not in the map /var/lib/mysql

so I search in /usr/local/mysql..... is this right? if yes there is only 165 Mb used.
But when I type in: df -h I get:

/dev/hda1 9.7G 7.9G 1.4G 86% /
tmpfs 64M 0 64M 0% /lib/init/rw
udev 64M 20K 64M 1% /dev
tmpfs 64M 4.0K 64M 1% /dev/shm

Something is taking 86% of my space
 
That is one reason you should look at seperate partitions for / /home /usr and /var at a minimum.

Particularly in the sense that if you fill up / you'll pretty much kill the machine. :(
 
Try something like this:

Code:
for i in /home /var /tmp
do
       echo "Top 20 files in $i"
       du -a $i | sort -nr | head -n 20
       echo ""
done
 
Thank you mattb!

It works

Now I can locate the biggest files on my server and remove them ;-)
 
Yes, you can. And you should want to remove log-bin from /etc/my.cnf.
 
Back
Top